Commit graph

257 commits

Author SHA1 Message Date
Andrew Bone
d486536448 [Theme] Dashboard makeover (#2171)
* Bring variables to dashboard

* Add variables to dashboard posts
2019-03-22 09:55:22 -04:00
Andrew Bone
dd0cfcc30e Update reading list (#2151)
Change the reading list styles to work for night mode.
2019-03-21 15:34:53 -04:00
Andrew Bone
9045715986 Remove white border (#2146)
Remove the white border from the sidebars
2019-03-21 15:34:36 -04:00
Andrew Bone
1694048a1e Change comment form styles (#2149)
Update form styles to remove white border and add colour distinction to the background
2019-03-21 15:34:10 -04:00
Andrew Bone
354f7f8e0c Fix sidebar-profile-snapshot width (#2145) [ci skip]
Width was 1px too wide
2019-03-21 13:44:37 -04:00
rhymes
df2621a8c0 Implement image upload's error handling (#2018) 2019-03-21 12:31:51 -04:00
Ben Halpern
f70852d547
Make pull to refresh night theme, plus invert icons in night theme (#2135)
* Add night theme to pulltorefresh

* Adjust opacity of pulltorefresh for style

* Invert certain images
2019-03-20 18:42:52 -04:00
Ben Halpern
ce29fcc67c
Adjust ios theme background bottom (#2136) 2019-03-20 18:17:33 -04:00
Ben Halpern
5cc21f5238
Add night theme to article actions (#2132) 2019-03-20 17:07:21 -04:00
Tim Lange
d838f17f4b UX: Changed editor_version to a select field (#2107) 2019-03-20 13:34:02 -04:00
Ben Halpern
658be52814
Add night theme vars for notifications and org branding (#2127)
* Add night theme stuff to notifications

* Fix night theme for org branding on show pages
2019-03-20 13:18:39 -04:00
Ben Halpern
1a06096b6a
Add themes to main list, notifications, and chat (#2119) 2019-03-20 09:40:58 -04:00
Ben Halpern
9dfb363c86
Add theme to loading gradient, comment form, about author (#2117) 2019-03-19 14:52:04 -04:00
Ben Halpern
7bf37108b1
Night theme improvements + small fixes (#2114) 2019-03-19 13:36:30 -04:00
Andrew Bone
c7b24e0aec Add --theme-container-background-hover (#2113)
* Add --theme-container-background-hover

Add --theme-container-background-hover to sidebar-nav-element hover
Remove bacground from sidebar-nav-readinglist hover

* Add --theme-container-background-hover

Add --theme-container-background-hover to single-other-article hover
2019-03-19 11:01:07 -04:00
Will Soares
39c0cb47cc Allow users to resize edit comment textarea element (#1866) 2019-03-19 10:46:32 -04:00
Andrew Bone
2a20eedea3 Add secondary color to .sidebar-nav-subheader (#2110)
Add --theme-secondary-color to .sidebar-nav-subheader
2019-03-19 08:34:51 -04:00
Ben Halpern
2b2ecaa115
Add proper css vars to user style config (#2105) 2019-03-18 15:22:23 -04:00
Andy Zhao
8a3d3ae765 Enable Org Pro Dashboard View (#2060) 2019-03-18 11:58:44 -04:00
Mario See
d8709c0334 Implement open inbox for dev-connect (#1563) 2019-03-15 14:39:57 -04:00
Ben Halpern
73f5873e5e
Quick css adjustment on sans-serif config (#2073) 2019-03-15 13:48:18 -04:00
Ben Halpern
d6ab255a45
Allow users to configure to use night mode (beta) and sans-serif article body (#2072)
* Initial work for config

* Add config for users

* Fix schema
2019-03-15 13:11:53 -04:00
Ryan Killeen
365a3513dc add markup and styling for skip link (#2062) 2019-03-15 10:46:09 -04:00
Ali Spittel
e45f9cca03 give the pro dashboard a dashboard-y makeover (#2058)
* give the pro dashboard a dashboard-y makeover

* make background color for the cards white
2019-03-13 17:34:40 -04:00
Andy Zhao
be8e139e3e Fix charts and add nav buttons (#2044)
* Add navigation links for pro dashboard

* Move styles to stylesheet

* Use the correct dates for charts
2019-03-12 13:31:00 -07:00
Ben Halpern
ecb9f6da3d
Remove some hardcoded shecoded stuff (#2011) 2019-03-08 18:08:48 -08:00
Ben Halpern
138278462a
Add shecoded sidebar/homepage decorations (#2003)
* Add shecoded sidebar/homepage decorations

* Add additional functioanlity to /shecoded

* Fix typo
2019-03-08 04:47:31 -08:00
Ben Halpern
a17cfe7d33
Add time ago to recent posts in feed (#1981)
* Add time ago to recent posts in feed

* Modify time details
2019-03-05 13:40:27 -08:00
Andy Zhao
8b8dbd0172 Add Milestone Notifications (#1920)
* Test milestone notifications

* Add initial milestone notifications

* Add extra milestone goalposts

* Move send reaction milestone

* Use proper twilio-video package version

* Add random giphys gifs to milestones

* Make images responsive and add addl gifs

* Add guard statement for older articles

* Update app/views/notifications/_milestone.html.erb

Link to Giphy page instead of source page

* Generate gifs via class and factor in aspect ratio

* Add border radius to gifs

Co-Authored-By: Zhao-Andy <andyzhao.zhao@gmail.com>
2019-03-01 12:25:45 -08:00
Ali Spittel
704b7bce9c Feature/autosave editor (#1633)
* Add myself to core contributors

* add myself to the core contributors

* implement autosave in sessionStorage

* clear sessionstorage on save

* add new changes flag

* add clear  button and css for it

* add clear button functionality

* make clear session storage only run if save is successful

* update jest snapshot for autosave

* add a few tests

* add a few tests

* add test for clear button

* make autosave work for title, tags, and cover image

* remove console.log

* make clear button into a message instead

* move to button with no styling instead of span

* remove warning on refresh

* remove warning on refresh

* move to localstorage so that persists across tabs

* fix blip on change from HTML to JSX

* make confirm work properly

* fix css jump for v2 editor

* fix v2 editor height jump

* remove unused onKeyUp prop

* indent _v2_form.html.erb file

* indent v2 editor erb

* Update package.json with missing package
2019-02-28 07:00:58 -08:00
Mario See
ae484fbead add username to author info (#1912)
in both sticky nav on the side and about the author section at the end of the article
2019-02-27 08:25:47 -08:00
Andy Zhao
5ace9a5fc9 Organization Notifications (#1762)
* Add spec for org reaction notification

* Add organization_id to notifications

* Add validations for user and org IDs

* Move comment json_data out of loop

* Use actual column names instead

* Add organization filters

* Remove extra text-align

* Add organization filtering

* Refactor to reduce complexity

* Add receiver argument to handle orgs

* Add has_many notifications for orgs

* Add follow notifications for orgs

* Add comment notifications for orgs

* Rename some tests for specificity

* Add mark org notifications as read functionality

* Add radix to parseInt

* Define json_data outside of loop

* Notify org followers of a new post as well

* Move test to proper location

* Add test for aggregated method

* Make send org reaction notification more readable

* Test the rest of the notification model

* Refactor tag adjustment spec

* Fix extra html
2019-02-25 14:25:37 -08:00
Arnelle Balane
e6420800ce Fix mobile sidebar scrolling issue (#1787) 2019-02-21 15:52:21 -05:00
rhymes
f8359d98f6 Increase contrast for "reading time" info (#1689) 2019-02-18 13:06:22 -05:00
Carl Saunders
c1eecd1850 Added <kbd> tag support to markdown editors in article posts and comm… (#1761)
* Added <kbd> tag support to markdown editors in article posts and comments.

* Fixed typo in test.

* Fixed test - now compares against inner html.

* Removed .showpage-signi-cta as dead code was reinstated accidentally via git merge.

* Use sass placeholder as no need to output the .kbd class in the css.

* Reinstated original css as accidentally changed with merge.
2019-02-16 22:30:35 -04:00
Ben Halpern
bce0b4fff6
Remove harsh video restriction and add video duration (#1811)
* Remove harsh video restriction and add video duration

* Fix video meta data and tests

* Modify video tests

* Rescue video duration fetch error

* Change log to puts in test
2019-02-16 17:42:44 -04:00
Mac Siri
91848f0f85
[UI] Fix scrollbar overlapse bug (#1540) 2019-02-15 14:56:21 -05:00
Ali GOREN
b9279033a4 The issue 'Styling of Edit Post button on your own post' fixed. Close… (#1749)
* The issue 'Styling of Edit Post button on your own post' fixed. Closed #1740

* I changed margin top to 4 and media screens's max-width value change as 376px
2019-02-06 16:18:33 -04:00
Andrew Bone
9e4d9ecac1 Additional --theme-container-color (#1731)
* Additional --theme-container-color

Missed in initial pass

* Additional --theme-container-color

Missed in initial pass

* Additional --theme-container-color

Missed in initial pass

* Additional --theme-container-color

Missed in initial pass
2019-02-04 14:25:49 -04:00
Ali GOREN
4e09a95dae Fixes logn text doesn't wrap bug. #1710 (#1715) 2019-02-02 17:35:59 -04:00
Andrew Bone
9e8fbff5df Add --theme-container-color (#1706)
* Add --theme-container-color

Initial pass adding `--theme-container-color` for theming

* Add --theme-container-color

Initial pass adding `--theme-container-color` for theming
2019-02-01 12:29:31 -04:00
Ben Halpern
d7665fcc3f
Add comment template to post (#1692)
* add myself to the core contributors

* add comment template

* merge upstream

* make sure the template re-appears for top level comments after submission

* make interface admin only

* Adjust comment template form

* Fix merge conflicts

* Remove unnecessary comment template from json
2019-01-30 13:32:34 -05:00
Ben Halpern
ea63374408
Add below-article html variant (#1669)
* Add below-article html variant

* Fix tests for variant number

* Fix stories show tests for html_variants
2019-01-28 14:31:43 -05:00
Mario See
1404f0da5e adjust width calculations (#1652) 2019-01-26 13:08:32 -05:00
Andy Zhao
c4677071a7 Mute notifications for a comment thread (#1636)
* Use idempotent update instead of toggle

* Update editor guide with new comment instructions

* Render the settings button on page load

* Add settings button to comment dropdown

* Update styles to properly render

* Add comment mute function and settings page

* Clean up erb spacing

* Remove unneccessary user_id param

* Add receive_notifications for policy spec

* Update name for accuracy

* Add request spec for comments_mute

* Remove unused permitted attributes

* Add actually used permitted attributes
2019-01-24 17:20:38 -05:00
Mario See
0a1454dc97 quick css hiccup fix (#1523)
* remove max-width cap on .home

* remove max-width cap on .home

* Revert "Merge branch 'master' into article-css-extra-wide"

This reverts commit 3eff6e456e11f5fc74e30d25d6e01c237c3b0d83, reversing
changes made to 5e064676029f9ce630b5580e46b9d64c6f43e838.

* revert max-width and add max-width to article-show

based on andrew bone's suggestion. looks good thus far both on home and article page in various screen sizes

* Removed a modified file from pull request

* Removed a modified file from pull request

* Removed a modified file from pull request

* Removed a modified file from pull request

* Removed a modified file from pull request

* Update article-show.scss
2019-01-22 16:23:15 -05:00
Andy Zhao
9f6d00118f Mute notifications for your own article (#1594)
* Use a slightly faster call for user_id

* Remove unused file

* Test receive notifications functionality

* Notify when receive_notifications is true

* Test receiving reaction notifications

* Do not notify if receive_notifications is false

* Fix test for parent comment notification

* Add article mute notifications feature

* Remove deprecated specs

* Prevent email when receive_notification is false

* Update button messaging

* Use RESTful /article_mutes patch request

* Use parent or root article instead
2019-01-22 13:12:48 -05:00
38elements
c6b09939d9 Remove unnecessary CSS property (#1581) 2019-01-17 12:22:24 -05:00
Ben Halpern
d988bc71f9
Add reading time to articles (#1538)
* add comment template

* merge upstream

* Initial work

* make sure the template re-appears for top level comments after submission

* Small fix

* Fix git issues

* Account for missing reading times

* Add minimal score on sidebar

* Test for page to include min read

* rubocop cleanup

* Mess with test

* Add .to_i after score

* Modify search_score var
2019-01-14 15:58:33 -05:00
Ben Halpern
2fd314e40b
Fix chat css and banish logic (#1515) 2019-01-10 18:09:42 -05:00