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
apple502j
a903e3e9b2
Set wiki link per user's selected language
2020-06-18 20:22:22 +09:00
Ben Wheeler
665eeff75a
move country name lookup to library
2020-05-13 14:12:50 -04:00
Chris Garrity
23980e1f23
turn on popup help widget
...
leaving the feature flag in place in case we decide to revert to the form.
2020-05-01 10:30:09 -04:00
chrisgarrity
15990b5876
Merge branch 'develop' into remove-flag
2020-04-16 16:41:31 -04:00
chrisgarrity
5cd282ed56
Merge pull request #3800 from chrisgarrity/freshdesk-widget
...
Freshdesk widget
2020-04-14 15:43:01 -04:00
Ben Wheeler
05e61cc842
changed student signup route from /join/TOKEN to /signup/TOKEN
2020-04-13 13:11:11 -04:00
apple502j
3146ee8b83
Remove app flag
2020-04-14 01:40:05 +09:00
Chris Garrity
7d9e6ea8b7
Add pop up Help widget
...
Initial version of contact us with the pop up Freshdesk help widget.
* adding feature flag `?CONTACT_US_POPUP=true` to the URL allows to switch between current contact-us with form, and new contact-us with popup widget.
* new copy for the contact us page (selected based on feature flag)
* handles scratchr2 redirects by pre-opening the popup on the contact us form and handles multiple parameters
2020-04-10 12:16:44 -04:00
Ben Wheeler
81678b70a7
refactored uri pathname parsing to library
2020-04-03 16:11:45 -04:00
Ben Wheeler
049c0b946a
use api instead of scratchr2 to validate usernames
2020-02-05 15:48:15 -05: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
ae96ac7eed
Merge pull request #3618 from LLK/hotfix/join-retry-session
...
[Develop] Hotfix/join retry session
2020-01-07 14:36:38 -05:00
Benjamin Wheeler
e0c562bfa6
Merge pull request #3484 from benjiwheeler/join-flow-count-unicode
...
count unicode characters as single characters
2020-01-02 15:15:29 -05:00
Ben Wheeler
d53fe43241
fix bug, updating session request retry code per rschamp's feedback
2019-12-16 17:53:30 -05:00
Ben Wheeler
27a7324da0
treat null body in session response as unsuccessful, without dereferencing body
2019-12-16 09:34:51 -05:00
Ben Wheeler
b8d5799e75
refactor lib/session so that it can be used arbitrary number of times
2019-12-14 22:44:26 -05:00
Ben Wheeler
5aa27c31d1
Remove comments
2019-12-03 21:22:52 -05:00
Ben Wheeler
39c32e7c5f
Add lib/session.js, add refreshSessionWithRetry()
2019-12-03 21:18:00 -05:00
chrisgarrity
e42fd54ba8
Merge pull request #3550 from LLK/hotfix/chromeos-release
...
HOTFIX [develop] Enable feature flag for chrome app download
2019-11-20 10:44:56 -05:00
Ben Wheeler
e915ae1927
if username has spaces, provide validation message specifically mentioning that
2019-11-19 16:21:06 -05:00
Paul Kaplan
48b502a347
Enable chrome app feature flag
2019-11-18 15:23:34 -05:00
Ben Wheeler
4c0026ab41
revised comment explaining character length count
2019-11-12 16:57:49 -05:00
picklesrus
c2004d0f43
Switch to using scratchr2 check_username endpoing instead of api. There are some cleanspeak differences with the api one that need to be resolved.
2019-11-06 11:25:07 -05:00
Benjamin Wheeler
7cea138c46
Merge pull request #3505 from LLK/revert-3495-revert-3468-country-data-name-fix
...
Revert "Revert "fixed country options to use full country name string as option value""
2019-11-06 10:22:31 -05:00
Ben Wheeler
70d81b85fe
made separate functions for country options with name, code
2019-11-05 18:30:20 -05:00
Benjamin Wheeler
2182853dc6
Revert "Revert "fixed country options to use full country name string as option value""
2019-11-05 18:07:31 -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
5cc0bfd782
fix password error regex
2019-11-05 12:09:56 -05:00
Ben Wheeler
c6ae2176da
added validation functions for error code validation
2019-11-05 12:09:56 -05:00
Benjamin Wheeler
20d9ab64ac
Revert "fixed country options to use full country name string as option value"
2019-10-31 10:56:46 -04:00
Ben Wheeler
6bf27b7e8a
count unicode characters as single characters
2019-10-30 15:06:22 -04:00
Ben Wheeler
652871f0bd
removed password length code, moved to separate PR
2019-10-30 14:32:04 -04:00
Ben Wheeler
49fe86ae3c
username step and email step caches ignore api failures
2019-10-23 17:02:57 -04:00
Ben Wheeler
f26a83423c
fixed country options
2019-10-21 12:33:34 -04:00
Benjamin Wheeler
18fd960a6a
Merge pull request #3377 from benjiwheeler/embed-view
...
embed view with minimal functionality, route
2019-10-02 17:32:45 -04:00
Ben Wheeler
4a2553e819
create sentry library for initing Sentry
2019-09-30 10:48:10 -04:00
Paul Kaplan
5d39e59dd5
Use a feature flag to contain new Scratch Desktop updates
2019-09-24 15:17:11 -04:00
Ben Wheeler
46351c116d
collapse switch cases
2019-09-05 11:53:47 -04:00
Ben Wheeler
55cb112ee9
use params prop instead of inline query params
2019-09-05 11:53:47 -04:00
Ben Wheeler
020231bb02
add local, remote email validation to validate library
2019-09-05 11:53:46 -04:00
Ben Wheeler
b0bc59f9bd
use more user-friendly error message if api call fails
2019-08-26 15:48:16 -04:00
Benjamin Wheeler
caa824f2a5
Merge branch 'release/2019-08-15' into develop
2019-08-14 18:28:50 -04:00
Benjamin Wheeler
46de5a23e1
Merge pull request #3236 from benjiwheeler/join-flow-highlighting
...
handle username validation errors states better
2019-08-13 17:52:00 -04:00
Ben Wheeler
7ead9d0e96
use updated strings in join flow
2019-08-13 15:02:25 -04:00
Ben Wheeler
ca6711e860
switch validation error message to just ‘Required’
2019-08-13 15:02:25 -04:00
Ben Wheeler
f7fac2e41c
handle username validation errors states better
2019-08-13 14:22:46 -04:00
Chris Garrity
24f06f275b
Use localeData from l10n
...
Remove old tech debt.
www had always imported every react-intl defined locale, and then added our custom locales.
scratch-l10n defines localeData based on the currently supported languages, and it includes any necessary custom-locales, so we should use that instead of maintaining two custom locale lists.
2019-08-08 16:32:40 +01:00
Ben Wheeler
167a70f437
simplify adding common countries to top of list
2019-08-06 20:42:03 -04:00
Ben Wheeler
51aa38fb34
consolidated country-data and contry-list
2019-08-06 00:00:37 -04:00
Ben Wheeler
50e706efa8
country data, functions and tests
2019-07-31 17:21:32 -04:00
Ben Wheeler
67ad5fc383
added tests for password validations
2019-07-02 17:49:29 -04:00
Ben Wheeler
f6d1ba3194
WIP moving join flow validation functions to library
2019-07-02 17:27:44 -04:00
Benjamin Wheeler
d97f5b9d7a
Merge pull request #2924 from benjiwheeler/embed-modal
...
Embed/social sharing modal
2019-05-08 14:53:19 -04:00
Ben Wheeler
4ae4d4232a
removed social images and links
2019-05-07 10:54:01 -04:00
Ben Wheeler
6a3110e24e
moved and renamed linkUrl to keep url generation in one place
2019-05-06 18:49:57 -04:00
Ben Wheeler
08f8e1c546
simplified embed modal to remove social links
2019-05-02 17:18:13 -04:00
Eric Rosenbaum
56077811f5
Add extension chip
2019-04-30 16:03:32 -04:00
Ben Wheeler
67e7a54413
renamed externalShare to social
2019-04-24 12:09:44 -04:00
Ben Wheeler
63baada567
added social icons and links
2019-04-23 17:11:27 -04:00
Ben Wheeler
5d12f0f781
put social links section, copy project link button inside social share modal
2019-04-22 22:36:26 -04:00
Ben Wheeler
1e63b51565
first take on embed modal
2019-04-22 14:50:49 -04:00
Eric Rosenbaum
3a0452048d
Add extension chip
2019-04-08 14:45:39 -04:00
Benjamin Wheeler
f5134483a3
Merge pull request #2676 from apple502j/patch-8
...
Make internal URL clickable
2019-01-29 23:28:25 -05:00
Ben Wheeler
a8d4184b3f
renamed frameless.js tablet var to mobileIntermediate, use tabletPortrait for breaks
2019-01-29 10:35:19 -05:00
Ben Wheeler
be975cba26
using tabletPortrait instead of changing value of tablet var, per chrisg's suggestion
2019-01-28 22:36:39 -05:00
Ben Wheeler
7b19878d7f
changed tablet width to 768; several responsive tweaks
2019-01-28 22:27:01 -05:00
Eric Rosenbaum
825b885638
Update extension chip icons
2019-01-23 15:51:35 -05:00
Eric Rosenbaum
44ec3de0f1
Change extension chip wording to “Video Sensing”
2019-01-23 15:51:00 -05:00
Eric Rosenbaum
5603e2dc2b
Fix WeDo extension chip wording
2019-01-22 11:23:48 -05:00
apple502j
ea9282a3eb
Check hashtag after URL
2019-01-16 09:15:58 +09:00
chrisgarrity
70c4240b8d
Revise unsupported browser
...
Only reject IE, other gui errors should get handled by error boundary in gui.
2019-01-09 14:40:06 -05:00
Ben Wheeler
8e1d6fee54
love and favorite proxy, and use x-requested-with header
2019-01-07 11:39:31 -05:00
Paul Kaplan
6f83dd09a8
Fix hashtag search to link to query without the #
2019-01-03 20:24:39 -05:00
Paul Kaplan
d49a48c2e7
Update storage to get 3.0 projects.
2018-12-20 10:00:58 -05:00
Paul Kaplan
16b8a90607
Actually return the mapping of extension info
2018-12-12 15:50:40 -05:00
Paul Kaplan
ace110c59b
Show username and cloud var alerts on projects that use them.
...
Only implemented for scratch3 projects
2018-12-11 11:15:00 -05:00
Eric Rosenbaum
8260d7bb5d
Add Makey Makey extension chip
2018-11-29 15:28:55 -05:00
chrisgarrity
decb250dd5
Initial version
2018-11-26 09:43:05 -05:00
Ray Schamp
df3d18e649
Revert "Revert "use cdn.scratch.ly in staging""
2018-11-21 10:27:13 -05:00
Ray Schamp
45415944c1
Revert "use cdn.scratch.ly in staging"
2018-11-21 10:07:57 -05:00
Ben Wheeler
7ee463509c
use cdn.scratch.ly in staging
2018-11-19 17:07:48 -05:00
Paul Kaplan
194dc90688
Add missing extensions and images
2018-11-14 15:39:40 -05:00
Ben Wheeler
8e967737e5
use production or staging hosts for static assets url
2018-11-13 15:32:59 -05:00
Ben Wheeler
c965fd15f9
generate author thumbnail and pass to gui
2018-11-10 02:07:48 -05:00
Paul Kaplan
e563254c8f
Merge pull request #2231 from paulkaplan/comment-linking
...
Decorate comment text to add @username links and scratch-domain links
2018-10-25 15:18:56 -04:00
Paul Kaplan
9066686c2b
Decorate comment text to add @username links and scratch-domain links
2018-10-24 11:25:32 -04:00