Skip to content

docs: sync architecture.md with current codebase#459

Merged
gabitoesmiapodo merged 4 commits intodevelopfrom
fix/452
Apr 10, 2026
Merged

docs: sync architecture.md with current codebase#459
gabitoesmiapodo merged 4 commits intodevelopfrom
fix/452

Conversation

@gabitoesmiapodo
Copy link
Copy Markdown
Collaborator

Summary

Closes #452

architecture.md is referenced by CLAUDE.md as structural truth for developers and agents, but five sections had drifted from the actual codebase. This PR corrects all reported discrepancies.

Changes

  • Update TypeScript version from 5 to 6 to match package.json
  • Update Vite from "6 + SWC" to "8 + React plugin" to match package.json
  • Remove nonexistent withWalletStatusVerifier HOC references (3 locations); document the actual pattern (useWalletStatus() hook used directly in TransactionButton and SignButton)
  • Remove 1INCH from token list sources (only CoinGecko is defined in tokenLists.ts)
  • Update staleTime/gcTime from Infinity to 1 hour to match useTokenLists.ts

Acceptance criteria

  • TypeScript version updated from 5 to 6
  • Vite version updated from 6 + SWC to 8 + React plugin
  • All withWalletStatusVerifier HOC references removed or corrected
  • 1INCH removed from token list sources
  • staleTime/gcTime values corrected to 1 hour

Test plan

Automated tests

No automated tests added. Documentation-only change.

Manual verification

No manual steps required. All changes verified against package.json, tokenLists.ts, and useTokenLists.ts.

Breaking changes

None.

Screenshots

None.

Checklist

  • Self-reviewed my own diff
  • Tests added or updated
  • Docs updated (if applicable)
  • No unrelated changes bundled in

Update five stale references:
- TypeScript 5 -> 6
- Vite 6 + SWC -> Vite 8 + React plugin
- Remove nonexistent withWalletStatusVerifier HOC references
- Token list sources: remove 1INCH (only CoinGecko exists)
- staleTime/gcTime: Infinity -> 1 hour

Closes #452
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
components.dappbooster Ready Ready Preview, Comment Apr 10, 2026 4:49pm
demo.dappbooster Ready Ready Preview, Comment Apr 10, 2026 4:49pm
docs.dappbooster Ready Ready Preview, Comment Apr 10, 2026 4:49pm

Request Review

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates architecture.md to realign key “structural truth” documentation with the current TypeScript/Vite/tooling and wallet/token-list implementations in the repository.

Changes:

  • Update documented TypeScript (5 → 6) and Vite (6+SWC → 8 + React plugin) versions to match package.json/Vite config.
  • Remove stale references to a nonexistent withWalletStatusVerifier HOC and update the wallet-gating narrative.
  • Correct token list sources (CoinGecko + optional Uniswap default list) and TanStack Query caching durations for token lists (Infinity → 1 hour).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Move from Web3 connection state section to Wallet Access Control
section and correct the file path and throw behavior to match the
actual implementation in WalletStatusVerifier.tsx.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 260 to 263
**`WalletStatusVerifier`** component (`src/components/sharedComponents/WalletStatusVerifier.tsx`) -- renders a fallback cascade based on wallet state:
1. Not connected -> `ConnectWalletButton`
2. Connected but `walletChainId !== appChainId` -> "Switch to [Network]" button
3. Connected + synced -> renders children
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the WalletStatusVerifier fallback cascade, step 2 currently documents the chain mismatch check as walletChainId !== appChainId, but the component uses useWalletStatus({ chainId }), which compares the wallet chain against targetChainId (the optional chainId prop if provided, otherwise appChainId). Please update the step-2 wording to reflect that the verifier gates on the requested/target chain, not strictly appChainId.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 891f992. Updated the chain mismatch check description to reference targetChainId and documented the full fallback cascade (optional chainId prop -> appChainId -> chains[0].id).

The fallback cascade step 2 referenced appChainId, but useWalletStatus
compares against targetChainId which accounts for the optional chainId
prop. Updated wording to reflect the actual behavior.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gabitoesmiapodo gabitoesmiapodo merged commit 528a331 into develop Apr 10, 2026
12 checks passed
@gabitoesmiapodo gabitoesmiapodo deleted the fix/452 branch April 10, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

architecture.md contains multiple stale references

2 participants