Commit Graph
74 Commits
Author SHA1 Message Date
chrisgarrity 102d3d7e79 Localize default project (temporary solution) 2018-09-14 16:11:46 -04:00
Ray Schamp d014f1ee3a Fix ProjectLoaderHOC tests
Remove the default prop test because the default projectId prop comes from redux now, so it doesn't make sense to test the default

Lint
2018-08-29 18:29:14 -04:00
DD Liu 8bfaf69d6e Inject fonts thumbnails (#2948) 2018-08-23 14:57:08 -04:00
Karishma Chadha 718fb7255d Fix up tests. 2018-08-23 11:03:29 -04:00
chrisgarrity ea6980e39c Flip the direction of a bunch of icons
I think this switches all the icons we saw. I also switched the icons on the tabs (the blocks going the wrong way looked bad).
2018-08-02 17:06:55 -04:00
chrisgarrity 9d9d03613c Update unit test snapshot
Expected change for a className that uses classNames function now, but didn’t before.
2018-08-01 15:55:11 -04:00
Paul Kaplan 465e28a222 Use img instead of CostumeCanvas 2018-07-25 13:53:11 -04:00
chrisgarrity 1083b6241a Added automatic detection of locale from browser langauge
Locale detection function that checks browser setting and lets URL parameter (locale= or lang=) override the browser setting.
2018-06-24 13:07:56 -04:00
chrisgarrity a04554229f Initial version of loading or switching language.
Add `?locale=<localecode>` to load in a new langage.
Add `?enable=language` to enable the language selector
Or combine the two: `?enable=language&locale=<localecode>`
Still accepts a hash, but requires that the hash be a sequence of digits.

Added new locales reducer to gui:
- initializes default  react-intl/localeData
- initializes default locale messages for all locales
- default locale is ‘en’ (can be overridden by URL)

Removed dependency on react-intl-redux, added ConnectedIntlProvider (uses correct locale messages from redux based on current locale)
2018-06-19 15:40:47 -04:00
Paul Kaplan 98b0765051 Make costume and sound tabs sortable 2018-06-13 11:07:25 -04:00
Paul Kaplan 6ee0a343ac Make costume, sound and sprite tiles draggable. 2018-05-23 11:12:06 -04:00
chrisgarrity 44c76e5774 Combine GUI reducers
* Export initial states for each reducer
* combine all gui reducers (excludes scratchPaint and intl)
* combine all initial states to create default guiState for preloading in www
* expect all of the gui state to be accessible at `state.scratchGui`
2018-05-21 16:54:19 -04:00
chrisgarrity 37f98f6099 Fix up comments
- better split of hash-parser/project-loader unit tests.
2018-05-14 17:17:39 -04:00
chrisgarrity 0fa62fc05c Split project-loader-hoc
The project loader that is exported with GUI just expects to be passed projectId as a prop, and it manages loading project data.

The part of the project loader that watches for URL hash changes for the playground is a new HOC that is only used in the various playground examples.
2018-05-10 09:31:50 -04:00
chrisgarrity 45032cc291 Add translation to missing strings
Question, should ‘x’ and ‘y’ be localizable?
2018-04-30 12:22:23 -04:00
Paul Kaplan 66347c83a4 Add details to sprite tile and update styling 2018-04-10 09:10:23 -04:00
Paul Kaplan 8bf73ed3fa Show the costume/sound number similar to Scratch 2.
Add a jest unit test for making sure the number is rendered out when
provided and not when not provided.
2018-04-02 10:48:01 -04:00
Ray Schamp 0d16ffb3f1 Update snapshots 2018-03-28 17:04:53 -04:00
DD 247a03fef9 Switch to mouse enter and mouse leave 2018-02-26 16:56:31 -05:00
DD cff8517bd3 fix tests 2018-02-23 16:04:16 -05:00
DD 2f31d434e9 fix tests 2018-02-20 16:24:55 -05:00
Paul Kaplan fcc5f9f718 Fix snapshots 2018-02-09 09:48:46 -05:00
Andrew Sliwinski 8c7fbeecc6 Merge pull request #1243 from thisandagain/feature/1036
Add Google Analytics
2018-01-12 16:13:50 -05:00
Andrew Sliwinski 443966ec0d Add mock from 'react-ga' to unit tests 2018-01-12 15:51:59 -05:00
Paul Kaplan e0f3441b9e Fix NaN in test and update snapshot 2018-01-11 14:13:37 -05:00
Paul Kaplan 4e861542de Update tests and snapshots for sound editor 2017-12-20 11:10:17 -05:00
Paul Kaplan 5dbbeae6cc Merge pull request #986 from quachtina96/libraryScreenReader
Make libraries screen reader accessible.
2017-12-08 12:02:37 -05:00
DD bfa966e74a Add monitor layout algorithm 2017-12-07 15:26:56 -05:00
Tina Quach 284c47dd3f update snapshot 2017-12-01 11:53:38 -05:00
Paul Kaplan 084deee318 Play on undo and redo 2017-11-21 09:26:50 -05:00
stdio2016 d1dbe44caa change path p property in test file
firefox doesn't like comma (,) in svg path, so I change comma to space
2017-11-19 13:08:57 +08:00
Tina Quach 857dca5d07 Merge pull request #849 from quachtina96/ariahidden
Hide icons from screenreader
2017-11-14 15:40:24 -05:00
Tina Quach dd7d9e9e22 edit snapshots 2017-11-14 15:02:24 -05:00
Ray Schamp c3ebfa5c6d Mock responsibly
/ht @paulkaplan
2017-11-03 09:28:56 -04:00
Ray Schamp 0e0c689e22 Fix tests
Previously we tested the ProjectLoader helper object, but now all loading is confined to storage. Unfortunately I wasn't able to get enzyme to wait for the storage promise to resolve within componentDidUpdate, so I can't test the actual results of storage.load, just what it was called with.
2017-11-03 09:28:56 -04:00
Paul Kaplan 1e26992f45 Fix enzyme tests 2017-10-13 12:57:19 -04:00
Ray Schamp c5404bffa7 Update enzyme usage for 3.1.0
Add a setup file that configures the React adapter. Fix one deprecated usage for ProjectLoaderHOC tests.

There are some tests still broken, but these weren't called out by Enzyme.
2017-10-13 12:56:44 -04:00
Paul Kaplan b3b254bec9 Fix linting 2017-08-18 15:15:00 -04:00
Paul Kaplan 61e9c25468 Merge branch 'develop' into safari-audio 2017-08-18 15:05:58 -04:00
Paul Kaplan 50f168172e Add controls container for turbo mode indicator 2017-08-17 17:26:37 -04:00
Paul Kaplan f017ed7220 Merge pull request #625 from rschamp/library-examples
Add GUI-as-library examples
2017-08-17 15:16:17 -04:00
Ray Schamp 4ac3dd68f0 Add tests for the ProjectLoaderHOC 2017-08-17 10:12:56 -04:00
Ray Schamp 7fc0858dcc Update linting for tests to match src 2017-08-17 10:12:43 -04:00
Paul Kaplan 0332606574 Update snapshots 2017-08-17 08:42:55 -04:00
Paul Kaplan 7c42b525e5 Update audio effects mock to use callback API 2017-08-15 09:30:34 -04:00
Paul Kaplan 59968ba031 Merge pull request #612 from paulkaplan/fix-lint-warnings
Fix all lint warnings except todo comments (including a bug!)
2017-08-14 14:52:28 -04:00
Paul Kaplan 4ad873020f Merge pull request #605 from paulkaplan/context-menu
Context menu
2017-08-14 13:49:18 -04:00
Paul Kaplan 4b7b418b68 remove unused import 2017-08-14 13:40:42 -04:00
Paul Kaplan 4fe264e924 Fix all lint warnings except todo comments (including a bug!) 2017-08-13 12:59:41 -04:00
Paul Kaplan b03e23740d Merge branch 'develop' into sound-editor--effects-backend 2017-08-11 10:30:45 -04:00