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
Paul Kaplan
4d8256e985
Update all preview... l10n strings to project...
2018-10-24 09:35:30 -04:00
Benjamin Wheeler
341428ce50
storage.js can use PROJECT_HOST env setting ( #2146 )
2018-10-09 09:59:04 -04:00
Ben Wheeler
478a30efcb
pass project title to GUI, and disable submit when editing title
2018-09-05 18:38:19 -04:00
Linda
68c7616a25
remove now obsolete truncate library
2018-08-22 15:10:19 -04:00
Ben Wheeler
097fb66955
currentStudioIds now an array; reverted a few changes
2018-07-31 15:00:56 -04:00
Connor Hudson
1842be2f1a
Add l10n strings for extension chips
2018-06-22 09:16:20 -04:00
Connor Hudson
058b851823
Remove outdated comment from storage.js
...
The issue pointed to was fixed by a separate commit.
2018-06-20 13:53:02 -04:00
Connor Hudson
bd22d573b6
extension-info.js -> extensions.js
2018-06-19 16:18:08 -04:00
Connor Hudson
7539e74436
Add extension icons, extension info object
2018-06-19 16:13:25 -04:00
Connor Hudson
ca91294b31
Add ScratchStorage subclass for getting project JSON
2018-06-19 11:24:54 -04:00
chrisgarrity
80de164d02
Handle See inside button ( #1890 )
...
* Handle See inside button
Import GUI reducers, initial state and middleware (throttle).
Update render to handle state and middleware.
Remove preview mode state and use scratchGui.mode from redux instead.
URL is getting updated, and mode will be updated based on URL. However, the history needs work - it doesn’t work with the modal back.
* Update to latest GUI
This is the minimum version of GUI that is needed for see-inside
* Really remove cruft.
2018-05-24 16:23:07 -04:00
chrisgarrity
b8326a3d57
Feature/preview project2 ( #1856 )
...
* Add user-session awareness
- only show remix button if user is logged in (TBD: probably will want to hide if project creator == user)
* decorate text with @mentions and #hashtags
* Add studios, loves, favs
* In-place editing of title and description if current user is author and project shared (with validation)
2018-04-24 11:00:47 -04:00
Ray Schamp
590f505a61
Revert "Merge pull request #1788 from LLK/revert-1775-hotfix/es6-upgrade"
...
This reverts commit 1b1b396e92
, reversing
changes made to a144bab0e6
.
2018-01-30 11:53:12 -05:00
Ray Schamp
46511e1253
Revert "[Develop] Upgrade to ES6"
2018-01-30 09:54:45 -05:00
Matthew Taylor
6d1f2fbccd
initial es6 commit
2018-01-19 14:06:26 -05:00
Matthew Taylor
9a3358b35c
provide a default opts
if it’s undefined
2017-09-18 14:40:52 -04:00
Matthew Taylor
4175c119d2
apply path explicitly rather than in defaults
...
This should fix #1455 by preventing the path from being changes via opts passed in, even though we don’t pass in a `path` anywhere.
2017-09-18 11:44:06 -04:00
Matthew Taylor
3dd768f2f6
GH-1361: Implement Notifications Page ( #1487 )
...
* start work on www page
committing out of paranoia.
including changing splash page endpoints
* updates from feedback
thanks @rschamp! This includes:
1. splitting out messages list into a separate component (for clarity)
2. some comment/formatting adjustments for the api calls
3. removal of an extraneous property in emoji-text
* remove duplicate string declaration
* use object.assign instead of defaults deep
we don’t need deep defaults
* fix react warnings
2017-08-31 17:05:22 -04:00
Ray Schamp
84a37a671f
Remove SmartyStreets API
...
We are so lax with this that it's not actually helping us, and we don't have a plan with them anymore.
2017-07-13 10:44:50 -04:00
Matthew Taylor
7540ee45e3
loosen restrictions on smartystreets check
...
re-fixes #828 by loosening restrictions on the check once again (see https://smartystreets.com/docs/us-street-api#match-strategy )
2016-10-06 16:36:27 -04:00
Ray Schamp
2d22f6fa3d
Merge pull request #912 from rschamp/bugfix/http-only-session
...
Remove interactions with session cookie
2016-09-19 12:04:17 -04:00
Matthew Taylor
2db7097b9b
Merge pull request #839 from mewtaylor/hotfix/gh-828
...
[Develop] Fix GH-828: check street number range for address
2016-08-12 15:15:53 -04:00
Matthew Taylor
ccfde96f67
use new match
option instead of header
...
so that it works in IE9 too.
2016-08-12 14:40:26 -04:00
Matthew Taylor
ea91b3d885
Remove declaration of defaultsDeep
...
Got lost in the merge, apologies.
2016-08-11 15:55:58 -04:00
Matthew Taylor
e18e320231
Merge branch 'hotfix/gh-828' into develop
...
* hotfix/gh-828:
Make `X-Requested-With` overridable
use `defaults` again
Only apply `X-Requested-With` to same domain
check street number range for address
# Conflicts:
# src/lib/api.js
2016-08-11 15:45:05 -04:00
Matthew Taylor
d6d5fa0f8a
Make X-Requested-With
overridable
...
thanks @rschamp!
2016-08-11 15:20:54 -04:00
Matthew Taylor
4dc85b1bc4
use defaults
again
...
deep is no longer necessary with the `headers` change
2016-08-11 15:20:54 -04:00
Matthew Taylor
fa2c326955
Only apply X-Requested-With
to same domain
...
it breaks on cross domain
2016-08-11 15:20:54 -04:00