Commit graph

315 commits

Author SHA1 Message Date
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
Ben Halpern
4bff494adc
Ping comments to pre-warm new comment trees (#1755) 2019-02-06 21:45:24 -04:00
Ben Halpern
bf393c1323
Check for user exists in additional content box fetch (#1756) 2019-02-06 21:03:20 -04:00
Ben Halpern
2d97a5d837
Improve performance for additional content boxes and tags index (#1750)
* Improve performance for additional content boxes and tags index

* Modify followed_articles endpoint with new classic article api
2019-02-06 16:50:35 -04: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
rhymes
aad0a3fc97 Fix bug where comment template is undefined instead of empty string (#1700)
Closes #1698
2019-01-31 08:24:42 -05: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
Andrew Bone
5f5beabcab Make initializeUserSidebar shorter (#1640)
Make initializeUserSidebar() shorter to meet codeclimate requirements.
2019-01-24 18:42:19 -05:00
Ben Halpern
5b77b779a3
Comment muting tweaks (#1646) 2019-01-24 18:16:13 -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
rhymes
51a9e8be0a Order my tags by weight, popularity and name (#1583) 2019-01-20 11:29:37 -05:00
38elements
c6b09939d9 Remove unnecessary CSS property (#1581) 2019-01-17 12:22:24 -05:00
Ben Halpern
b1f18f5bbc
Improve feed and add more randomness (#1570)
* Improve feed and add more randomness

* Fix tests

* Fix test score calc

* Modify home page test criteria
2019-01-16 16:01:14 -05:00
Ben Halpern
0dac3b9662
Fix search page reading time issue (#1544) 2019-01-14 19:04:02 -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
Mario See
6ade962480 connect message spacing fix (#1259)
* style changes

* removed detail already in parent class

* Update chat.scss

width assertions

* mobile
2019-01-10 14:33:25 -05:00
Ben Halpern
ebc859f574
Fix user-select issue in comments (#1502) 2019-01-08 19:38:13 -05:00
Mario See
8bb1716935 connect chat message markdown styling (#1487)
* remove inline markdown rule

* broaden evaluate_inline_markdown

basically same as evaluate_markdown but without class attributes

* remove inline markdown parser

* change code block color and background

* even out code padding top/bottom
2019-01-08 17:48:12 -05:00
Ben Halpern
f626a3a2ad
Modify display and style of API tokens (#1490)
* Modify display and style of API tokens

* Delete accidentally-included slideshare tag
2019-01-08 16:17:00 -05:00
Ben Halpern
7333aa5436
Fix comment creation (#1495) 2019-01-08 14:29:49 -05:00
Ben Halpern
7c8f71251d
Add details to toggles and modify some styling (#1484)
* Add details to toggles and modify some styling

* Add details to child comments

* Finalize comment collapse in nested comments

* Modify styling on comment <details>
2019-01-08 12:53:48 -05:00
Timothy Ng
84bd3a69d7 ApiSecret model for Developer API (#1369)
* Add ApiSecret model scaffold

* Add relationships between ApiSecret, User, Organization

* Add placeholder template to account tab

* Add description column to ApiSecrets

* Add very basic access token generation

* Add basic access token deletion

* Show access token on success flash

* Add placeholder message when user has no secrets

* Use cta style on token generation button

* Add presence validation for ApiSecret description

* Add ApiSecrets factory

* Add pundit policy for ApiSecret

* Nest form field within api_secret hash to allow rails strong params

* Use pundit to authorize ApiSecretController actions

* Add error message flash for ApiSecretsController actions

* Add specs for ApiSecretsController

* Add length validation to api secret description

* Flash model error instead of generic message on save failure

* Truncate ApiSecret factory objects descriptions to prevent validation error

* Remove length restriction on ApiSecret.description

* Use darker font color for token creation date

* Consolidate ApiSecret migrations
2019-01-08 12:30:54 -05:00
Andrew Bone
9ea53d5669 Add --theme-container-color (#1479)
* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements
2019-01-07 15:56:01 -05:00
Andrew Bone
abc8aaf793 Missed --theme-container-border (#1480)
* Missed --theme-container-border

Adding --theme-container-border for missed elements

* Missed --theme-container-border

Adding --theme-container-border for missed elements

* Missed --theme-container-border

Adding --theme-container-border for missed elements
2019-01-07 11:27:02 -05:00
Andrew Bone
8cccc03b9a Add --theme-container-box-shadow places missed (#1420)
* Add --theme-container-box-shadow to footer

Add the --theme-container-box-shadow variable to the footer box shadow

* Add --theme-container-box-shadow to dashboard-analytics-header-wrapper

Add the --theme-container-box-shadow variable to the dashboard-analytics-header-wrapper

* Add --theme-container-box-shadow to query

Add the --theme-container-box-shadow variables to the no results query page

* Add --theme-container-box-shadow to widgets

Add the --theme-container-box-shadow variables to widgets
2019-01-06 15:15:38 -05:00
Andrew Bone
6b4b8b9c6a Add --theme-container-border (#1421)
* Add --theme-container-border

Add the --theme-container-border variable for styling.

* Add --theme-container-border

Add the --theme-container-border variable for styling.

* Add --theme-container-border

Add the --theme-container-border variable for styling.

* Add --theme-container-border

Add the --theme-container-border variable for styling.
2019-01-04 20:37:53 -05:00
Mac Siri
8e50e58844 Add list-style to Widget (#1448)
* Add list

* Remove retry
2019-01-04 17:48:12 -05:00
Ben Halpern
c6644f9e97
Create tag liquid tag (#1417)
* Create tag liquid tag

* Add tag embed to editor guide
2018-12-29 12:12:18 -05:00
Andrew Bone
9e18264f9f Add --theme-container-box-shadow (#1403)
* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements
2018-12-26 16:54:15 -05:00
Andrew Bone
e7770ac6ec Add --theme-background to new post page (#1402)
The background colour tag is different, by default, on the new post page so I missed it on my initial sweep
2018-12-26 16:53:25 -05:00
Some-Dood
f06225bd2f Fix flashing cursor when hovering over .wide-nav-links (#1404) 2018-12-26 13:19:29 -05:00
Andrew Bone
b920a68f04 Adding --theme-color (#1387)
Adding `--theme-color` to change the colour of the text in the body
2018-12-24 09:58:57 -05:00
Andrew Bone
1f5bc148e0 Add --theme-background to comments page (#1386)
The background colour tag is different, by default, on the comment page so I missed it on my initial sweep
2018-12-24 09:58:48 -05:00
Andrew Bone
724ae7a106 Added --theme-top-bar-write-* (#1388)
* Added --theme-top-bar-write-*

Adding both --theme-top-bar-write-color and --theme-top-bar-write-background to change the text/border colour and background colour of the write a post button.

* add --theme-top-bar-write-color to border

Added --theme-top-bar-write-color to border

* Revert theme changes

* Limit changes to write button

Styles were leaking but are now contained
2018-12-24 09:40:33 -05:00
Andrew Bone
7a5239efc1 CSS Variables: Support for IE (#1385)
* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.

* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.

* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.

* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.

* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.

* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.

* Support for IE

Make IE look alright again.
Won't be theme-able but will at least work.
2018-12-24 09:05:21 -05:00
Some-Dood
3c3c40b9f5 Fix wrong cursor pointer of search query filter buttons on hover (#1394)
* Fix wrong cursor pointer on hover

This commit changes the cursor to a pointer when the mouse hovers over one of the search query filter buttons.

* Moved rule outside the hover block to be consistent with the coding style
2018-12-24 09:04:08 -05:00