Repository navigation
feat(ux): remove lock gate, fix CSP, raise crystal-chip contrast - #17
Merged
Merged
Conversation
Wave 1 of the 2026-05-05 UX review implementation. W1 — Remove lock gate entirely - Delete LockGate.tsx, all Protected* wrappers (10 files), useAuth.ts - Inline page chrome into Astro pages for tools/* and gallery - Extract ProtectedQuiz logic into non-gated QuizPage component - Extract ProtectedTools UI into ToolsHub component - Strip LockGate from StudyReviewScreen and StudySettingsScreen - All Tier-1 surfaces (gallery, playground, tools, quiz, study) now render directly with no gate W2 — Fix CSP headers - Allow cdn.jsdelivr.net (Monaco editor) - Allow static.cloudflareinsights.com (analytics beacon) - Allow api.gemmology.dev (playground render endpoint) - Add explicit script-src-elem to satisfy strict CSP parsers W5 — Raise crystal-system chip contrast - Bump crystalSystemColors.bg from -500 to -700 across all seven crystal systems so white-on-coloured chips reach WCAG AA 4.5:1
# Conflicts: # src/components/auth/LockGate.tsx # src/components/auth/ProtectedQuiz.tsx # src/components/quiz/study/StudyReviewScreen.tsx # src/components/quiz/study/StudySettingsScreen.tsx
|
🚀 Preview deployed to: https://d5f01dff.gemmology-dev.pages.dev |
3 of 7 tasks
Bissbert
added a commit
that referenced
this pull request
May 11, 2026
Wave 1 of the 2026-05-05 UX review implementation. W1 — Remove lock gate entirely - Delete LockGate.tsx, all Protected* wrappers (10 files), useAuth.ts - Inline page chrome into Astro pages for tools/* and gallery - Extract ProtectedQuiz logic into non-gated QuizPage component - Extract ProtectedTools UI into ToolsHub component - Strip LockGate from StudyReviewScreen and StudySettingsScreen - All Tier-1 surfaces (gallery, playground, tools, quiz, study) now render directly with no gate W2 — Fix CSP headers - Allow cdn.jsdelivr.net (Monaco editor) - Allow static.cloudflareinsights.com (analytics beacon) - Allow api.gemmology.dev (playground render endpoint) - Add explicit script-src-elem to satisfy strict CSP parsers W5 — Raise crystal-system chip contrast - Bump crystalSystemColors.bg from -500 to -700 across all seven crystal systems so white-on-coloured chips reach WCAG AA 4.5:1
This branch was successfully deployed
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
Wave 1 of the 2026-05-05 UX review implementation — the user explicitly authorised launching all waves directly after one another.
W1 — Remove lock gate entirely
Per the audit's #1 finding (P0 conversion blocker — "Coming Soon" gate on every flagship surface), the entire LockGate flow is removed. Admin auth is unaffected (separate, password-based).
LockGate.tsx, all 10Protected*wrappers,useAuth.ts/tools/*and/galleryProtectedQuizlogic into a non-gatedQuizPagecomponentProtectedToolsUI intoToolsHubcomponentLockGatewrapper fromStudyReviewScreenandStudySettingsScreen/playground,/gallery,/quiz,/tools/*,/study/*now render directlyW2 — Fix CSP headers
Per the audit's analytics/Monaco/api.gemmology.dev blockage findings (P0/P1).
cdn.jsdelivr.netfor Monacostatic.cloudflareinsights.comfor analytics beaconapi.gemmology.devinconnect-srcfor playground render endpointscript-src-elemdirectiveW5 — Crystal-system chip contrast
Per the audit's WCAG AA 4.5:1 failures on
crystalSystemColors.*.bgwith white text.bg-*-500tobg-*-700for the seven crystal systemsTest plan
/playground,/gallery,/quiz, all/tools/*render without gate/playground(no CSP block in console)