Commit 5f1124f
✨ Follow Templates (codesandbox#2225)
* 🚧 Add MultiAction Button, Add Fonts and Breakpoints to Theme
This update adds a new MultiAction Button to be used for Following Templates, a prototype can be found here:
https://codesandbox.io/s/codesadbox-6vgjh
Additionally, this includes some refactoring and additions to common components. Button has been updated with a new Link component. Link can be used to both create an internal or external Link using a single API, intelligently using either a React Router link or an anchor tag with the appropriate attributes.
The MultiAction Button extends Button, sharing it's styles and base props, and uses Reakit under the hood to provide full keyboard accessibility.
Theme has been reorganized and extended with a set of fonts taken from the design system files in Figma. Additionally a set of breakpoint utilities was added, based on those found in the React documentation site.
A new `withoutProps` has been added that can be used to exclude props from being passed down to a component. This is useful for styled components, which sometimes pass down non-HTML attributes which cause console errors. Example usage can be observed in the MultiAction button elements.ts.
An error was fixed in Dependencies/VersionEntry for incorrect use of selected on an option element.
NotOwnedSandboxInfo now has a Follow Template button.
TODO:
- [ ]: Add interactivity to the Follow Template button
- [ ]: Test functionality
- [ ]: Incorporate requested changes
* ⚡️ Add Query, Graphql Tag Loader, React Display Name Babel Plugin
Added getSandboxInfo query to NotOwnedSandboxInfo component
Added graphql tag loader to webpack common config
Added babel plugin transform react display name to babel config
Fixed ref forwarding error with withoutProps HOC
TODO:
- Revert API proxy in start script
- Fix types for withoutProps HOC
* ⚡️ Add Mutation, Add --staging Build Flag,
You can now add `--staging` to `yarn start` or `yarn start:fast` to switch the API proxy from codesandbox.io to codesandbox.stream
* ⚡️ Use Template ID for Mutation
* Followed Templates Modal (codesandbox#2223)
* try
* fix netlify on static
* Fix: trim space (codesandbox#2232)
* Fix preview url
* [Followup] Convert all Medium blogposts to Markdown (codesandbox#2219)
* Cleanup articles
* Update all Gatsby dependencies to latest version
* Optimize images
* Resolve discussions
* Use official gatsby-remark-embedder package
* add templates for team
* 🚧 Add MultiAction Button, Add Fonts and Breakpoints to Theme
This update adds a new MultiAction Button to be used for Following Templates, a prototype can be found here:
https://codesandbox.io/s/codesadbox-6vgjh
Additionally, this includes some refactoring and additions to common components. Button has been updated with a new Link component. Link can be used to both create an internal or external Link using a single API, intelligently using either a React Router link or an anchor tag with the appropriate attributes.
The MultiAction Button extends Button, sharing it's styles and base props, and uses Reakit under the hood to provide full keyboard accessibility.
Theme has been reorganized and extended with a set of fonts taken from the design system files in Figma. Additionally a set of breakpoint utilities was added, based on those found in the React documentation site.
A new `withoutProps` has been added that can be used to exclude props from being passed down to a component. This is useful for styled components, which sometimes pass down non-HTML attributes which cause console errors. Example usage can be observed in the MultiAction button elements.ts.
An error was fixed in Dependencies/VersionEntry for incorrect use of selected on an option element.
NotOwnedSandboxInfo now has a Follow Template button.
TODO:
- [ ]: Add interactivity to the Follow Template button
- [ ]: Test functionality
- [ ]: Incorporate requested changes
* ⚡️ Add Query, Graphql Tag Loader, React Display Name Babel Plugin
Added getSandboxInfo query to NotOwnedSandboxInfo component
Added graphql tag loader to webpack common config
Added babel plugin transform react display name to babel config
Fixed ref forwarding error with withoutProps HOC
TODO:
- Revert API proxy in start script
- Fix types for withoutProps HOC
* ⚡️ Add Mutation, Add --staging Build Flag,
You can now add `--staging` to `yarn start` or `yarn start:fast` to switch the API proxy from codesandbox.io to codesandbox.stream
* ⚡️ Use Template ID for Mutation
* Followed Templates Modal (codesandbox#2223)
* try
* fix netlify on static
* Fix: trim space (codesandbox#2232)
* Fix preview url
* [Followup] Convert all Medium blogposts to Markdown (codesandbox#2219)
* Cleanup articles
* Update all Gatsby dependencies to latest version
* Optimize images
* Resolve discussions
* Use official gatsby-remark-embedder package
* add templates for team
* add most of dashboard stuff
* make toggle do toggle things
* unfollow on dashboard
* 🚚 Move FollowTemplateButton to it's own Component
* ⚡️ Add Follow/Unfollow Template Logic, Add GraphQL Codegen Config
* moved components
* fix tab
* its something
* hookup import table
* fix thingx
* finish import tab
* done
* fix some ts
* fix ts
* fix lint
* fix lint
* add my templates
* add more stuff
* add loading
* add select for categories
* add empty state
* remove tsignore
* fix eslint
* fix ts
* increase memeory
* fix category reset
* fix scrollbar
* ✨ Add Pagination component, clamp and range utilities to Common
* fix fonts
* fix header
* fix icon color
* fix all issues
* more fixes
* add contrast checker
* update icon package
* fix weird bug
* 🚧 Reorganize Create Sandbox Modal Files
Committing work in progress to sync with team.
* 🚧 Update modal for control via parent
* update queries and mutations
* update id
* add ability to bookmark
* fix some css
* rename followed to bokmarked
* add template banner
* 🚧 Add Pagination to Explore Tab, Remove @types/storybook Dependencies
* fix pagination
* fix page numbers
* add types
* fix common
* fix build
* 🚧 Explore Tab Polish
* Update package.json
* Update yarn.lock
* Update yarn.lock
* Greatly simplify yarn.lock
* Greatly deduplicate yarn.lock
* Undo the Button changes for now
There are some design inconsistencies and rendering artifacts with the new
button, I agree that we should change the buttons, but I'd rather do this
in a separate PR instead of in this huge PR.
* Alter outer styles modal
* Tweaks
* Fix create sandbox modal
* Extract template list
* Add introspection of graphql
* New types
* Redo TemplateUniverse
* Props
* Intermediate
* Intermediate
* Improve the loading in docker
* Change message of error
* Create separate sandbox fragment for templates
* Introduce new TemplateList
* Introduce new TemplateList
* Better filtering
* New Explore Templates
* Revert changes in browserfs
* Improve all tabs in the modal
* Add more typing and fix optimistic bookmarking
* More typing
* Remove unused code
* Handle TS errors
* Clean up typings from graphql
* Fix tests
* Try to find out what happened with jest
* fix type
* More types
* Fix typing issue
* Finally fix the clean script
* Don't install deps in parallel
* Fix ts issues with untyped client
* Fix arrow navigation for uneven rows
* Remove new users initializer
* Move Create Sandbox Modal
* More TS
* Redo the editor with the bookmark, fix git sandboxes
* Tweaks
* Add 3 column support
* Fix bugs
* Tweak styles
* Fix more arrow navigation
* Fix minor bugs
* Merge branch master in follow-templates
* Put actions back
* Fix
* Fix arrow navigation
* Dynamically resize columns in create sandbox modal
* So many improvements!
* Change icon and shortcuts
* wait for authenticating before showing right side of navigation
* Add first visit indication to welcome, and fix wrong isAuthenticating state usage
* Add git to template
* Theme tweaks
* Styling changes1 parent 675cfd7 commit 5f1124f
File tree
260 files changed
+10065
-2393
lines changed- .circleci
- docker
- packages
- app
- config
- scripts
- src/app
- components
- CreateNewSandbox
- CreateSandbox
- Create
- PersonalTemplates
- Explore
- SearchResults
- Search
- Icons
- Import
- Loader
- SandboxCard
- SearchBox
- TemplateList
- Welcome
- utils
- Modal
- PrivacyStatus
- graphql
- overmind
- effects
- api
- vscode
- zip/create-zip/create-react-app-typescript
- namespaces
- editor
- files
- pages
- Dashboard
- Content
- CreateNewSandbox
- NewSandboxModal
- Imports
- MyTemplatesTab
- MyTemplates
- Sandboxes
- routes
- PathedSandboxes
- RecentSandboxes
- Templates
- FollowedTemplates
- Mine
- Sidebar
- Item
- SandboxesItem/FolderEntry
- TemplateItem
- FollowedTemplatesItem
- MyTemplateItem
- NewSandbox
- Profile/Showcase/SandboxInfo
- Sandbox/Editor
- Header/SandboxName
- Workspace
- Dependencies/VersionEntry
- Files/DirectoryEntry
- Project
- BookmarkTemplateButton
- SandboxConfig
- items/NotOwnedSandboxInfo
- common
- Modals
- NewSandbox
- PreferencesModal/Badges
- Stats
- UserMenu/Menu
- utils
- static/fonts/inter
- codesandbox-api
- common
- src
- components
- Button
- CustomTemplate
- GithubBadge
- GridList
- Modal
- MultiAction
- Pagination
- ProgressButton
- Scrollable
- Template
- UserWithAvatar
- flex
- fonts/Inter
- icons
- themes
- theme
- __snapshots__
- fonts
- types
- utils
- dynamic-pages
- executors
- node-services
- react-embed
- standalone-packages
- react-sandpack
- sandpack
- vscode-editor/release/min/vs/editor
- vscode-extensions/out/extensions/ngryman.codesandbox-theme-0.0.1/themes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
260 files changed
+10065
-2393
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
70 | | - | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | | - | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | | - | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | | - | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
186 | | - | |
| 189 | + | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
192 | | - | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| |||
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
236 | 246 | | |
237 | 247 | | |
238 | 248 | | |
239 | 249 | | |
| 250 | + | |
240 | 251 | | |
241 | 252 | | |
242 | 253 | | |
243 | 254 | | |
244 | 255 | | |
245 | 256 | | |
246 | 257 | | |
| 258 | + | |
247 | 259 | | |
248 | 260 | | |
249 | 261 | | |
| |||
262 | 274 | | |
263 | 275 | | |
264 | 276 | | |
| 277 | + | |
265 | 278 | | |
266 | 279 | | |
267 | 280 | | |
| |||
274 | 287 | | |
275 | 288 | | |
276 | 289 | | |
| 290 | + | |
277 | 291 | | |
278 | 292 | | |
279 | 293 | | |
280 | 294 | | |
281 | 295 | | |
282 | 296 | | |
283 | | - | |
| 297 | + | |
284 | 298 | | |
285 | 299 | | |
286 | | - | |
| 300 | + | |
287 | 301 | | |
288 | 302 | | |
289 | 303 | | |
| |||
0 commit comments