Repository navigation
Project package, sandboxed boards, sp pack, and the community page #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e00a10c
Plan the project package: format, id, sp pack, board isolation
Jing-yilin f928f71
Settle the plan's open questions but licence and takedown
Jing-yilin 87fe859
Leave measurement evidence out of the package
Jing-yilin bbb601c
Define the package by place, not type, so new content ships unchanged
Jing-yilin 4e6202b
Give the package a thumbnail, as .fig and .sketch have
Jing-yilin 9256702
Sandbox boards, refuse rebound hosts, give a new project an id
Jing-yilin dc57b67
Add sp pack: check a project as a package and copy it out
Jing-yilin b5f84cb
Record what building the project package found
Jing-yilin 8579369
Plan: name each project's author and contributors, checked against th…
Jing-yilin 83bbf94
Add the community page: a tab in the app and a page of the site
Jing-yilin dc400a1
sp pack: name the project's author and contributors, say how to share…
Jing-yilin 753cf45
Community page: list the projects shared to the community repo
Jing-yilin 038d8ca
sp pack: refuse a path out of the project, draw an SVG cover; keep a …
Jing-yilin b5f5a96
Scroll the Community tab: put it in the home page's scrolling layer
Jing-yilin bf52aa1
Thumbnails as book covers, for every example: sp thumbnail
Jing-yilin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="icon" href="/favicon.ico" sizes="16x16 32x32 48x48" /> | ||
| <link rel="icon" type="image/png" href="/favicon-32.png" sizes="32x32" /> | ||
| <title>Community — Super Prototyping</title> | ||
| <meta | ||
| name="description" | ||
| content="Community-made app clones, device mockups and editable boards, made with Super Prototyping." | ||
| /> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/communitySite.tsx"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Cloudflare Pages: a board runs in an origin of its own, as server/sp.ts serves it (SANDBOX). | ||
| /board/* | ||
| Content-Security-Policy: sandbox allow-scripts allow-forms allow-popups allow-modals allow-downloads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the user leaves the project name blank,
AppShell.tsximmediately instructs the agent to write{"name": "…"}asproject.json. This newly created file already containsformatandid, so following that instruction replaces the generated identity;sp pack --checkthen rejects the project for lacking an ID, whilesp pack -osilently assigns a different one. Update the naming instruction or flow to mergenameinto the existing object.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 038d8ca: the prompt now tells the agent to add
nameto project.json, keeping the keys already there.