Fix local file:// support and add project grouping by gizmo_id - #1
Open
febrile42 wants to merge 2 commits into
Open
Fix local file:// support and add project grouping by gizmo_id#1febrile42 wants to merge 2 commits into
febrile42 wants to merge 2 commits into
Conversation
…support The original type="module" + import-from-Skypack setup is blocked by CORS when index.html is opened as a file:// URL, making the app fully non-functional when double-clicked locally. Replace with regular <script src> tags from cdn.jsdelivr.net with SHA-384 integrity= hashes. Plain script tags are not subject to the same CORS restrictions as ES module imports, so the page now works from file:// without running a local server. Applies to both index.html and betas/index.html. Also adds .gitignore to exclude any vendor/ directory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Conversations with a gizmo_id field are grouped into native <details> sections at the top of the results, sorted alphabetically by ID with conversations newest-first within each group. Conversations without a gizmo_id appear below under an "Other Conversations" heading (only shown when project sections also exist). If no gizmo_id fields are present the display is identical to before. Extracts createConversationItem() helper to eliminate duplication between the project-grouped and ungrouped rendering paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
type="module"+import from 'https://cdn.skypack.dev/...'setup is blocked by CORS whenindex.htmlis opened as afile://URL, making the app completely non-functional for local use. Replaced with regular<script src>tags fromcdn.jsdelivr.netwithintegrity=(SHA-384 SRI) hashes — plain script tags are not subject to the same CORS restrictions as ES module imports.gizmo_idfield are grouped into native collapsible<details>sections at the top of the results (sorted alphabetically by ID, newest-first within each group). Ungrouped conversations appear below under "Other Conversations". If nogizmo_idfields exist, the display is identical to before.Test plan
index.htmldirectly asfile://in Chrome and Firefox — app loads and worksconversations.json— conversations display correctlygizmo_idfields — project sections appear at top, collapsible on clickgizmo_idfields — flat list, identical to original behavior🤖 Generated with Claude Code