Alexis Goodfellow
fbcc76160b
Update user-guiding survey IDs
2024-08-29 14:03:43 -04:00
Aleksandar Shumakov
6fb0e3491d
feat: simplify user guiding triggers
...
- Change exposed handler names to correspond to performed action
- Simplify method of picking random survey on interaction with Editor
- Move GUI useEffect hook to WWW in IntlGUIWithProjectHandler
- Remove onClick property from ComposeComment component
2024-08-22 16:00:27 +03:00
Aleksandar Shumakov
d97d3143e0
chore: change uesrguiding check to use result prop from parsed body
2024-08-22 15:42:46 +03:00
MiroslavDionisiev
727f57438b
feat: [UEPR-40, UEPR-42] changed user condtions and added check for user guiding id
2024-08-22 15:42:46 +03:00
MiroslavDionisiev
442e90bcca
feat: [UEPR-40, UEPR-42] added integration with user guiding
2024-08-22 15:42:46 +03:00
Christopher Willis-Ford
9c8ef43dc4
refactor: ensure any given file is all CJS or all ESM
2024-03-20 15:13:15 -07:00
Christopher Willis-Ford
170256c20f
style: fix no-prototype-builtins violations
2024-02-26 13:35:15 -08:00
Christopher Willis-Ford
2c7afbce08
refactor: mark OS_ENUM as @enum{string} to reduce TS warnings
2023-07-11 15:23:10 -07:00
Andy O'Neill
5e35844e28
fix: use span for localized messages
2023-02-22 09:28:58 -05:00
Andy O'Neill
51c493a450
Merge pull request #7348 from aoneill01/feature/react-intl-5
...
feat: upgrade react-intl
2023-02-21 15:46:34 -05:00
Andy O'Neill
d5bbb96a52
feat: upgrade react-intl
2023-02-21 15:36:27 -05:00
Christopher Willis-Ford
3cb6bd91a2
fix: remove Sentry and rewrite ErrorBoundary tests
2023-01-27 06:57:29 -08:00
Andy O'Neill
7673bf66a0
Show alert if project uses video and cloud variables
2022-11-02 14:35:15 -04:00
Colby Gutierrez-Kraybill
1240c9e8b5
fix lint issue
2022-09-27 21:02:31 -04:00
Colby Gutierrez-Kraybill
22ed62400c
Missing commit for valid/invalid
2022-09-27 13:37:57 -04:00
Colby Gutierrez-Kraybill
191cfb1d57
Add check on password complexity by using a backend call without divulging the list being checked against.
2022-09-22 00:23:59 -04:00
tomlum
60965bd24b
adds changes from previous PR
2022-06-06 15:49:54 -04:00
picklesrus
e896c60f9a
Revert "Send fastly token to gui"
2022-05-24 17:01:54 -04:00
rschamp
8b4c692e33
Set token for project metadata request
2022-05-06 14:13:55 -04:00
Karishma Chadha
78688203b1
Merge pull request #6301 from kchadha/annual-report-fixes
...
[Develop] Annual report fixes
2021-11-16 11:47:36 -05:00
Karishma Chadha
c835c67fe7
Updates to TextAndMediaSnippet layout, spacing, and some font sizing. Fix width of components of other sections e.g. Scratch in India.
2021-11-15 17:07:56 -05:00
rschamp
dcc7fa2008
Transform async/await syntax for Safari <= 10
2021-11-08 12:00:56 -05:00
rschamp
735042c414
Revert "Merge pull request #6245 from LLK/revert-6243-hotfix/dynamic-intl-polyfill"
...
This reverts commit 42712bd636
, reversing
changes made to f152df774f
.
2021-11-08 11:50:18 -05:00
chrisgarrity
55d2a389e4
Revert "Replace static plural rule and relative time polyfills with a dynamic import"
2021-11-01 13:33:30 -04:00
rschamp
a6be8aea1c
Fix lint
2021-11-01 11:10:22 -04:00
rschamp
5d14efd9a0
Add remaining supported locales to intl-polyfill
2021-10-18 11:38:43 -04:00
Chris Garrity
cb968f3842
[WIP] preliminary intl polyfill
...
partial implementation of intl-polyfill. Doesn't include all the www langauges, and we don't want to have to update www each time there is a language added, so this needs to move into scratch-l10n somehow.
polyfill.min.js no longer needs the intl.js polyfill, so removed. Should still look at whether the other parts of polyfill.min are needed, but they're unrelated to intl.
2021-08-25 11:13:24 -04:00
rschamp
f5fa49fa45
WIP: Use conditional importing for intl polyfills
2021-08-05 12:11:45 -04:00
Paul Kaplan
8a3e6155c4
Separate helper for creating the default redux store for www pages
2021-06-23 20:56:48 -04:00
Paul Kaplan
4db968970a
Use admin routes for studio info, curators, managers and activity
2021-06-16 09:54:40 -04:00
picklesrus
41f7fcd68d
Update relative-time-polyfill.js
2021-02-16 14:07:26 -05:00
picklesrus
14db1428f1
Update relative-time-polyfill.js
2021-02-16 14:06:10 -05:00
picklesrus
91c256ad75
Fix pluralrules polyfill
...
This should hopefully fix the Safari 12 issues we were having.
2021-02-16 14:06:02 -05:00
Chris Garrity
ae2bc24ffd
Add @formatjs/relativetimeformat-polyfill
...
Safari < 14 does not support Intl.RelativeTimeFormat which is used in the moderation messaging. Adding this polyfill to support it. RelativeTimeFormat depends on Locale, which is also not available in Safari <14, and PluralRules, not available in Safari < 13.
There is a trade off between adding locale-data for all users that load the page regardless of what browser they’re using and whether they get muted, and only localizing the most common languages.
In the last 30 days only ~3% of users on scratch use a version of Safari (13.x) that doesn’t support Intl. Of that 3%, these 7 locales would cover over 60% of the users. English will be used by default if the locale data is not available.
2021-02-02 09:07:38 -05:00
picklesrus
e6f056b178
Add message at the top of file mentioning the version in scratchr2
2021-02-01 15:35:02 -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
Benjamin Wheeler
aeaca81fb7
Merge pull request #4686 from benjiwheeler/api-check-username
...
switch educator registration checkusername endpoint from scratchr2 to api
2020-12-16 20:43:19 -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
Ben Wheeler
590873c765
switch educator registration checkusername endpoint from scratchr2 to api
2020-11-24 13:54:11 -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
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
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
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
apple502j
927a4b915b
Fix welcomingcommittee mention link href
2020-06-20 16:31:01 +09:00
Ben Wheeler
d388eef59f
renamed lookupCountryInfo and lookupCountryName functions
2020-06-19 10:42:34 -04:00