feat(frontend): wire theme, react-query and shared session foundation - #1720
Open
Muhammadjazuli wants to merge 1 commit into
Open
feat(frontend): wire theme, react-query and shared session foundation#1720Muhammadjazuli wants to merge 1 commit into
Muhammadjazuli wants to merge 1 commit into
Conversation
|
@Muhammadjazuli is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Muhammadjazuli Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
Wires up the foundational client-side tooling that is already installed as dependencies but never configured, fixes broken asset references, and gives session state a single shared home.
Icon assets (FE-94)
apple-touch-icon.png,favicon-32x32.png,favicon-16x16.png) so every icon URL declared inlayout.tsxmetadata now resolves to a real file.Theme provider (FE-95)
next-themes'ThemeProvider(light/dark/system, persisted preference) with anattribute="class"setup that works with Tailwind'sdark:variant.react-query (FE-96)
QueryClient+QueryClientProviderand mounted it inlayout.tsx.WalletStatusCardto fetch wallet status withuseQueryand to drive every action (provision, link challenge, link verify) throughuseMutation, removing the hand-rolledloading/error/busystate.Shared session store (FE-97)
lib/stores/session-store.ts) as the single source of truth for the authenticated session.wallet/page.tsxto read the access token from the shared store instead ofCookies.getdirectly, and added a sign-out action that clears it in one place.Verification
npx tsc --noEmitpasses.npx eslintpasses.Closes #1623
Closes #1624
Closes #1625
Closes #1626