Paul Kaplan
2c53c70307
Merge pull request #5436 from paulkaplan/fix-admin-studio-comments
...
Wait for session to be fetched before loading comments
2021-05-24 15:32:24 -04:00
Ray Schamp
e012c8065c
Merge pull request #5478 from rschamp/rearrange-conference-2021
...
Fix integration test broken in #5476
2021-05-24 14:34:01 -04:00
rschamp
59a4146d3b
Fix integration test broken in #5476
2021-05-24 14:23:06 -04:00
Bryce Taylor
bfe64aa313
Merge pull request #4540 from BryceLTaylor/move-navbar-tests
...
Move Navbar integration tests from Tap to Jest
2021-05-24 10:57:21 -04:00
seotts
dbb258cf8b
Work on tests
...
remove failing tests
2021-05-21 10:00:15 -04:00
seotts
4f556785d3
Move whether to show mute both into selectors
2021-05-21 10:00:15 -04:00
seotts
19a9997e0f
Muted users can’t edit studios
...
linting fixes
2021-05-21 09:46:19 -04:00
Paul Kaplan
8832d31fd9
Merge pull request #5444 from paulkaplan/studio-admin-panel
...
Studio admin panel
2021-05-20 09:37:59 -04:00
BryceLTaylor
511933cde8
use Circle’s BUILD_NUM instead of WORKFLOW_ID in saucelabs tests
2021-05-18 14:36:59 -04:00
Paul Kaplan
b38a97adf3
Studio admin panel
2021-05-18 11:41:32 -04:00
BryceLTaylor
c13f2ef598
Check if using circle and add default workflow id to tests and check
2021-05-18 11:32:38 -04:00
BryceLTaylor
7ea74eb431
Use circleCI build ID for saucelabs test names
2021-05-18 09:43:16 -04:00
Paul Kaplan
53414e11a9
Update tests
2021-05-17 15:31:08 -04:00
Paul Kaplan
acc88069e9
Allow curators to remove themselves
2021-05-14 12:37:05 -04:00
Paul Kaplan
f61047dda0
Merge branch 'develop' into add-studio-activity-pagination
2021-05-11 13:38:15 -04:00
Paul Kaplan
0fdf54339a
Merge branch 'develop' into add-studio-activity-pagination
2021-05-11 12:09:10 -04:00
Paul Kaplan
443dcc28e2
Merge branch 'develop' into feature/studio-project-modal
2021-05-11 12:04:05 -04:00
Paul Kaplan
fbd8908a83
Fix lint
2021-05-10 21:06:31 -04:00
Paul Kaplan
f474525398
Remove unused loadMore functionality from infinite list because it was overly specific, now it is no longer being used by any component
2021-05-10 14:14:46 -04:00
Paul Kaplan
95766fd68a
Add clear to infinite list, fixup tests
2021-05-10 10:22:18 -04:00
Paul Kaplan
3785108348
Promoted and added curators should go at the end of the list
2021-05-06 09:14:15 -04:00
Paul Kaplan
699e30dedd
Fix curator permissions for removing projects
2021-05-03 13:26:50 -04:00
Paul Kaplan
c3d266f3ba
Add in pending tests for missing project removal functionality
2021-05-03 10:59:52 -04:00
Paul Kaplan
0f8baaaa45
Add tests for new studio permissions
2021-05-03 10:52:04 -04:00
Paul Kaplan
ef9318463e
Reset comments when admin logs in
2021-04-29 09:00:50 -04:00
Paul Kaplan
5827aaab8f
Update permissions for editing open_to_all to match current backend
2021-04-27 09:06:40 -04:00
Paul Kaplan
f9419ac8fc
Fix comment toggling and add permissions test
2021-04-26 15:11:06 -04:00
Paul Kaplan
647575e4a8
Move permissions into its own reducer
2021-04-21 14:52:56 -04:00
Paul Kaplan
82da633e61
Add title, description and following editors
2021-04-21 14:52:56 -04:00
Paul Kaplan
c789a27018
Fix logged in selector with test
2021-04-21 14:52:53 -04:00
Paul Kaplan
11794d885a
Add permissions selectors and tests for studio comments
2021-04-08 10:36:56 -04:00
BryceLTaylor
7a5bdc0400
Change class for search input wrapper to search-wrapper
2021-04-06 14:19:05 -04:00
BryceLTaylor
0cd1f6e6be
Add class to searchbar for automated tests
2021-04-06 14:19:05 -04:00
BryceLTaylor
37d279f6e5
Search for the gui component in navbar create test
2021-04-06 14:19:05 -04:00
BryceLTaylor
6bea2b3a2c
Remove leftover comment in navbar test
2021-04-06 14:19:05 -04:00
BryceLTaylor
7edb0b2cb8
Move Navbar integration tests from Tap to Jest
2021-04-06 14:19:05 -04:00
Paul Kaplan
8267dcf16a
Fix TODO and add selector for studio comment capability
2021-04-02 12:43:32 -04:00
Paul Kaplan
dc460fffde
Merge branch 'develop' into studio-selectors
2021-04-02 12:36:44 -04:00
Paul Kaplan
cd8ae4b197
Use lodash.get to simplify permissions, move test data into fixtures for better testing
2021-04-02 12:33:18 -04:00
Paul Kaplan
9252d56376
Merge branch 'develop' into comments-reducer
2021-03-24 14:35:12 -04:00
seotts
f6f1095d93
add justMuted variable, fix linting
2021-03-23 16:33:24 -04:00
seotts
60bf05fbbf
Reuse l10n strings instead of duplicating them
2021-03-23 15:45:16 -04:00
Paul Kaplan
99195d6df3
Add studio selector and tests
2021-03-23 15:19:01 -04:00
Paul Kaplan
f03fbb503b
Add session selector and tests
2021-03-23 15:18:36 -04:00
Paul Kaplan
2265cd0d90
Add permissions selector and tests
2021-03-23 15:18:17 -04:00
seotts
ccab9566b8
Show different modal message when muted in the past
2021-03-23 11:00:01 -04:00
Sarah Otts
059b6bf2c5
Merge pull request #5166 from seotts/message-already-muted
...
When a user is already muted, show a different message in the blue box
2021-03-22 10:20:15 -04:00
seotts
d8a802fca2
Test that status gets correctly set in constructor
2021-03-19 15:42:54 -04:00
seotts
1744108570
Add test of shoudShowMuteModal when isReply
2021-03-19 15:29:29 -04:00
seotts
94eb3dc6de
Continued work
2021-03-18 16:15:11 -04:00
Paul Kaplan
296c04ff99
Merge branch 'develop' into comments-reducer
2021-03-18 11:20:47 -04:00
seotts
23da1e2781
Continued work
2021-03-17 16:07:30 -04:00
Paul Kaplan
6b87429e65
Create a redux module for infinitely loading editable lists
2021-03-16 14:17:52 -04:00
chrisgarrity
8271bb62bb
Merge pull request #5141 from seotts/prevent-feedback-when-not-just-muted
...
Prevent feedback when not just muted
2021-03-15 09:10:48 -04:00
seotts
50f49c28a2
remove commented-out test
2021-03-11 16:31:59 -05:00
seotts
936172d70b
only show feedback link for new mute
...
Add variable for isBad string
2021-03-11 13:06:51 -05:00
picklesrus
3dfcfa1e9d
Remove unused tests
2021-03-08 17:22:05 -05:00
Ben Wheeler
466684cea3
updated chromedriver using npm install --save
2021-03-08 15:44:55 -05:00
Benjamin Wheeler
4c880895fa
Revert "Bump chromedriver version to 88, increase jest integration timeouts"
2021-03-08 15:22:39 -05:00
Paul Kaplan
27dafac7f0
Move comments out of project reducer
2021-03-08 12:01:22 -05:00
BryceLTaylor
2933fbce94
Bump chromedriver version to 88, increase jest integration timeouts
2021-03-08 10:23:03 -05:00
seotts
0a8d8ad6c5
Fix and add tests for feedback link
2021-02-11 15:44:25 -05:00
picklesrus
de5a8026c1
Show the blue box on replies that got the user muted.
2021-02-05 08:16:00 -05:00
picklesrus
9a3fe8f222
Show the correct step of the modal based on whether the reply was just a click to try to reply while already muted or whether they replied and got muted.
2021-02-05 08:01:33 -05:00
picklesrus
92667c097d
Add tests and expose steps enum so it can be referenced from outside MuteModal
2021-02-04 11:13:30 -05:00
Sarah Otts
f60a8c71a0
Merge pull request #4901 from seotts/automod-feedback-modal
...
Automod feedback modal steps
2021-02-02 08:58:47 -05:00
picklesrus
6d53018486
Merge pull request #4938 from picklesrus/zero-minutes-fix
...
Change time library to default to 1 minute when the time remaining is less than 30 seconds.
2021-02-01 15:56:37 -05:00
seotts
ba99d49298
Fix FeedbackForm tests + other small fixes
...
Add strings
2021-02-01 15:50:55 -05:00
picklesrus
b8cc0b2b83
Change time library to default to 1 minute when the time remaining is less than 30 seconds.
2021-02-01 09:53:46 -05:00
picklesrus
259446ed8e
Set buttons to be disabled (and not just look disabled) when the user was just muted. They were clickable before.
2021-01-28 15:07:20 -05:00
Chris Garrity
eac7552841
Revise messaging when scratchers are muted
...
We want folks to use comments appropriately, not punish them. Reword the messaging to be more friendly and encourage positive uses of comments.
2021-01-26 08:42:41 -05:00
seotts
9df36b0fcf
add tests for feedback form, clean-up form
2021-01-25 17:52:59 -05:00
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
b1d4c6d1b5
Add backup langauges and remove tests that aren't useful.
2020-12-07 15:38:58 -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
bfc4202d11
Use singular units so the library handles plurals.
2020-11-13 14:14:42 -05:00
picklesrus
13369c3809
add spaces
2020-11-13 08:37:18 -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
BryceLTaylor
b4dfbc0ecf
Move Project Rows tests from Tap to Jest
2020-10-20 10:11:23 -04:00
Bryce Taylor
9f6faee25b
Merge pull request #4479 from BryceLTaylor/move-footer-tests-to-jest
...
Move footer integration tests to jest
2020-10-16 09:46:13 -04:00
Bryce Taylor
c24dc24d28
Merge pull request #4496 from BryceLTaylor/skip-failing-project-page-test
...
Skip failing project page test
2020-10-13 11:06:25 -04:00
picklesrus
a567a593fe
Merge pull request #4495 from picklesrus/comment-status
...
Commenting status component.
2020-10-13 09:03:41 -04:00
picklesrus
966df020f2
Merge pull request #4482 from picklesrus/m-modal-draft
...
Initial skeleton of mute modal.
2020-10-13 09:02:47 -04:00
BryceLTaylor
d504fa3cb3
Skip project page copy link integration test
2020-10-09 11:45:01 -04:00
picklesrus
0e6e49759c
Commenting status component.
2020-10-08 15:12:09 -04:00
Bryce Taylor
c3f59957d7
Merge pull request #4465 from BryceLTaylor/Move-project-page-tests
...
Move project page tests
2020-10-08 11:20:03 -04:00
Bryce Taylor
b5e2ae705b
Note logged out tests in test/integration/project-page.test.js
...
Co-authored-by: Ray Schamp <rschamp@users.noreply.github.com>
2020-10-06 16:52:07 -04:00
Bryce Taylor
60c6bb8d2c
Add default project id to test/integration/project-page.test.js
...
Co-authored-by: Ray Schamp <rschamp@users.noreply.github.com>
2020-10-06 16:51:31 -04:00
BryceLTaylor
530fb1b87c
update match in footer integration tests
2020-10-06 16:42:57 -04:00
BryceLTaylor
8c4303a5b4
match the whole pathname instead of just the end
2020-10-06 15:42:59 -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
BryceLTaylor
3d4f579e3a
Move footer integration tests to jest
2020-10-02 16:53:52 -04:00
BryceLTaylor
7a50c04885
Move join integration tests to Jest, add some tests
2020-09-30 14:30:00 -04:00
BryceLTaylor
02e3657bca
Remove legacy project page tests
2020-09-29 10:57:18 -04:00
BryceLTaylor
2e79da8a1c
Use const instead of let when finding chrome version
2020-09-23 17:06:13 -04:00
BryceLTaylor
a2d2eca54c
change chromedriver version to a const
2020-09-23 17:02:55 -04:00
BryceLTaylor
ebc54bb100
get chromedriver version from the package
2020-09-23 16:59:00 -04:00
BryceLTaylor
a5f0628751
Move project page tests to jest
2020-09-22 16:30:18 -04:00
BryceLTaylor
8d5b139595
Pin chrome version for saucelabs to chromedriver version
2020-09-14 15:25:01 -04:00
BryceLTaylor
e42ceaf78c
Update My-Stuff tests to correctly use ‘expect’ and remove sleeps
2020-08-27 13:42:23 -04:00
BryceLTaylor
78c0720793
Add waits to my-stuff tests so they’ll pass on saucelabs
2020-08-21 10:12:12 -04:00
BryceLTaylor
1aa55ca5a2
Update Chrome version used by sauselabs in tests
2020-08-21 10:11:14 -04:00
Bryce Taylor
25dccfd9a6
Merge pull request #4261 from BryceLTaylor/move-my-stuff-tests-to-jest
...
Move my stuff tests to jest
2020-08-20 10:30:08 -04:00
BryceLTaylor
abd54491e9
Move My Stuff tests to Jest. Unskip some tests.
2020-08-18 16:53:10 -04:00
picklesrus
597216113b
Merge pull request #4293 from LLK/hotfix/messages
...
[Develop] Hotfix/messages
2020-08-10 12:25:45 -04:00
BryceLTaylor
4fcc223df1
Update sign-in-and-out tests
2020-08-07 16:06:01 -04:00
BryceLTaylor
10ed23f11a
Revert "Update sign-in-and-out integration tests for new chromedriver"
...
This reverts commit c5f83e86f5
.
2020-08-07 16:04:41 -04:00
picklesrus
05075712e8
Merge pull request #4292 from picklesrus/backoff-messages
...
Exponentially back off the time between message polling.
2020-08-07 14:45:56 -04:00
BryceLTaylor
c5f83e86f5
Update sign-in-and-out integration tests for new chromedriver
2020-08-07 12:03:16 -04:00
picklesrus
6078c3653b
Puts back the original change but sets the default to Lax instead of Strict. Scratchr2 needs these cookies sent on top level navigations.
2020-08-05 10:50:06 -04:00
picklesrus
62629413a7
Revert "Make the cookie library set the SameSite cookie value to strict by default"
2020-08-03 14:45:34 -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
BryceLTaylor
ff9d15d24f
Remove tap.plan() from footer links test
2020-07-29 14:45:42 -04:00
BryceLTaylor
b24fa33c8d
Removed skipped footer integration tests
2020-07-28 16:59:41 -04:00
picklesrus
34c8652ffb
Fix capitalization: cookie library we use requires sameSite in opts object to have a lowercase s.
2020-07-20 15:32:54 -04:00
picklesrus
10a4e92d21
Make the cookie library set the SamSite cookie value to strict by default. If callers want to set it to something else, they can pass it through the opts object like they can 'exprires'.
...
Also added a test file for jar.js so I could test the set method. The
other methods remain untested.
2020-07-20 15:18:09 -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
Benjamin Wheeler
21ccd45f9b
Merge pull request #4121 from apple502j/wiki-link
...
Set wiki link per user's selected language
2020-07-09 14:20:28 -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
Benjamin Wheeler
dc79eb54c3
Merge pull request #3974 from benjiwheeler/move-to-country-data-lib
...
move country name lookup to library
2020-06-19 10:44:26 -04:00
Ben Wheeler
d388eef59f
renamed lookupCountryInfo and lookupCountryName functions
2020-06-19 10:42:34 -04:00
apple502j
a903e3e9b2
Set wiki link per user's selected language
2020-06-18 20:22:22 +09:00
Ben Wheeler
924c862b9e
remove email opt-in from join flow
2020-06-12 12:35:34 -04:00
Chris Garrity
d4d40405bf
Remove obsolete test
...
Check duplicates was added to prevent errors in the conversion to/from PO files back before we switched to Transifex. See https://github.com/LLK/scratch-www/pull/1150
2020-05-04 08:36:59 -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
Ben Wheeler
05e61cc842
changed student signup route from /join/TOKEN to /signup/TOKEN
2020-04-13 13:11:11 -04:00