seotts
14c7a7eae0
temporarily remove failing test
2021-01-22 13:16:44 -05:00
picklesrus
1326f71abe
Merge branch 'develop' into timeout-mute
2021-01-14 07:47:47 -05:00
seotts
c8373ab888
Revert "Revert "Add new mute message types""
...
This reverts commit 1575ed06cf
.
2021-01-07 14:04:48 -05:00
Sarah Otts
1575ed06cf
Revert "Add new mute message types"
2021-01-06 16:51:03 -05:00
Sarah Otts
b9892ff6d8
Merge branch 'develop' into automod-new-messaging
2021-01-04 11:09:29 -05:00
picklesrus
15a16e5b58
Merge branch 'develop' into timeout-mute
2020-12-21 08:38:37 -05:00
seotts
7e140b3832
add new mute messages
...
Get correct mute message info for modal
remove extra spapce
2020-12-18 10:24:43 -05:00
picklesrus
ad5dc31cc7
Have mute modal always show if you post a comment and showWarning is true.
2020-12-18 09:30:02 -05:00
picklesrus
d8ad0c38ea
Show warning message when user has been muted several times.
2020-12-17 15:43:07 -05:00
picklesrus
19b260a4a5
Add a timeout to stop displaying the mute status when a mute expires.
2020-12-15 14:49:35 -05:00
picklesrus
90ed44d6a8
Fix lint
2020-12-14 20:07:03 -05:00
picklesrus
2f2e95f3e2
Fix merge conflict.
2020-12-14 16:16:09 -05:00
picklesrus
a39244ea6c
Merge branch 'develop' into timeout-mute
2020-12-14 13:27:12 -05:00
picklesrus
242fedbfe6
Add a test that the constructor properly sets muteExpriresAtMs by converting from seconds to ms.
2020-12-14 08:45:08 -05:00
Chris Garrity
57a094179c
Fix tests again
2020-12-11 14:42:06 -05:00
Chris Garrity
015f036e93
Update tests
...
Tests needed to be updated after wrapping the MuteModal component in the Intl HOC.
2020-12-11 08:45:29 -05:00
picklesrus
110077e8e8
Rename state's muteExpiresAt to muteExpiresAtMs so units are explicit.
...
Also, fix isMuted so it doesn't do an extra unit conversion.
2020-12-11 08:14:15 -05:00
picklesrus
835a271be4
Show the comment status box on project page loads if the user is muted.
...
Don't show the compose box if they're muted, but do show it, but greyed
out, if they just posted a comment that resulted in a mute.
2020-12-08 07:28:40 -05:00
picklesrus
f4f6b70f2e
Merge branch 'develop' into readable-time
2020-12-07 16:05:02 -05:00
picklesrus
b450d36a64
Redo time based on new requirements.
2020-11-30 16:16:52 -05:00
picklesrus
aed0f024c0
Disable comment box functionality when you've just been muted.
...
Also, keep showing the blue comment status box based on when the mute
expires rather than basing it on the status of the commet box itself.
TODO: css for disabled state. The grey is there as a placeholder/proof
of concept.
2020-11-17 17:04:54 -05:00
picklesrus
6eb7504442
Initial time formatting pass. Does integer minutes, hours, days.
...
TODOS:
- set langauge appropriately
- do partial hours and days. e.g. 1 hour 5 minutes instead of just 1
hour.
Add a time formatting utility that formats a relative time in the future.
Use it in the mute modal & comment box.
2020-11-13 08:26:54 -05:00
picklesrus
e5f97d1f18
Skeleton of code to show mute modal and comment status.
...
Still todo:
- l10n
- Time needs formatting
- Compose box needs to be shown/formatted correctly based on mute status
- Blue comment status box need to be sticky
2020-11-09 11:01:42 -05:00
picklesrus
a567a593fe
Merge pull request #4495 from picklesrus/comment-status
...
Commenting status component.
2020-10-13 09:03:41 -04:00
picklesrus
0e6e49759c
Commenting status component.
2020-10-08 15:12:09 -04:00
picklesrus
eccf6be8d2
Add test for mute modal.
2020-10-05 11:09:54 -04:00
picklesrus
6e72f6b4ee
Add mute-step unit test.
2020-10-05 08:49:05 -04:00
picklesrus
a67a34a06c
remove stray debugger
2020-07-30 11:08:34 -04:00
picklesrus
0036550ae8
Move timeout id out of state to a member variable and add some unittests.
2020-07-30 10:55:18 -04:00
picklesrus
fac3ccad57
Make all times be in ms.
2020-07-17 14:44:36 -04:00
picklesrus
7eeb63cb3f
rename SetupMessagePolling to pollForMessages
2020-07-16 12:24:13 -04:00
picklesrus
5de96c373d
Exponentially back off the time between message polling instead of doing it every two minutes.
2020-07-06 17:44:28 -04:00
Ben Wheeler
924c862b9e
remove email opt-in from join flow
2020-06-12 12:35:34 -04:00
Ben Wheeler
d1366360f1
removed lodash.debounce, use onmouseleave instead
2020-04-14 10:33:59 -04:00
Ben Wheeler
5805d8a0fe
first take on toggleable open close state for info messages
...
make info button have large, invisible boundary
fix info button ref setting
WIP: experiment with more sophisticated mouseout handling
add lodash debounce
use lodash debounce to reduce info message flickering
tweak info message position per added padding
remove leftover function
update info button tests, add a bunch more
2020-04-13 17:06:33 -04:00
picklesrus
f9e48973bc
Move reCaptcha codeto a component so it can be used in another spot later.
2020-03-24 17:41:22 -04:00
Ben Wheeler
7b46ddf243
Revert "Merge pull request #3628 from LLK/revert-3618-hotfix/join-retry-session"
...
This reverts commit 7c9a098598
, reversing
changes made to 2c68f2041e
.
2020-01-14 21:58:38 -05:00
Benjamin Wheeler
1dbe89f2bc
Revert "[Develop] Hotfix/join retry session"
2020-01-09 08:44:27 -05:00
Benjamin Wheeler
6a97d44978
Merge pull request #3576 from benjiwheeler/join-flow-retry-session
...
Retry fetching session until it succeeds, when registering using join flow
2019-12-13 15:03:43 -05:00
Ben Wheeler
8635f3b152
revise join flow tests to use refreshSessionWithRetry
2019-12-05 23:27:13 -05:00
picklesrus
b89fe1a985
Add recognition text and links to the bottom of the page.
...
Adds a prop to the Page component so each page can say whether or not it
wants them to appear.
2019-12-04 16:28:23 -05:00
picklesrus
68fc4fe45b
Fix merge conflicts :(
2019-11-05 20:01:35 -05:00
picklesrus
c77db39062
Guard calls to componentDidMount with a check for existence.
...
Fix tag on username step.
2019-11-05 19:50:42 -05:00
picklesrus
30967a3056
Set sendAnalytics to be required and send the right props to the error step. Also add a test for the error step.
2019-11-05 19:50:42 -05:00
picklesrus
e4b79c1bd2
Add analytics logging to join flow. Adding page views for each step in the flow.
2019-11-05 19:48:44 -05:00
Benjamin Wheeler
77fca39bbf
Merge pull request #3485 from benjiwheeler/join-flow-cache-ignores-api-failures
...
username step and email step caches ignore api failures
2019-11-05 12:51:33 -05:00
Ben Wheeler
b2e7a0c9eb
revised join flow and registration error tests
2019-11-05 12:12:03 -05:00
Ben Wheeler
b1d71f2a4d
revised join flow tests
2019-11-05 12:12:03 -05:00
Ben Wheeler
510906e538
removed stray onCaptchaError from bind list
2019-11-05 12:12:03 -05:00
Ben Wheeler
f713298d37
use class instead of id for identifying errorMsg in test
2019-11-05 12:11:04 -05:00