feat(kit/react-vite): migrate wallet starter to Kit 8 plugins #491
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=74238440"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 4/5</h2>
[Medium risk] Updates wallet starter template to Kit 8 plugins\.
The PR appears safe to merge, with non-blocking wallet-identity, dependency-alignment, and restoration-test improvements.
<h2>Findings</h2>
1. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Duplicate names misidentify wallets <a href="https://github.com/solana-foundation/templates/pull/491#discussion_r4175866264">▶</a>
2. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> React peer versions conflict <a href="https://github.com/solana-foundation/templates/pull/491#discussion_r4175866266">▶</a>
3. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Wallet restoration lacks coverage <a href="https://github.com/solana-foundation/templates/pull/491#discussion_r4175866270">▶</a>
<h3>Summary</h3>
Migrates the React + Vite wallet starter to Kit 8 wallet/RPC plugins and @solana/react, adds wallet lifecycle tests, and updates its runtime requirement and catalog metadata.
<!-- greptile_confidence_score:4 -->
<sub>Reviews (1) · Last reviewed commit: "feat(kit/react-vite): migrate wallet sta..."</sub>
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Duplicate names misidentify wallets. If two discovered wallets share a name, both buttons say “Active” when either is connected. The buttons also use that name as their React key, which can cause rendering warnings. Compare wallet identity rather than its display name so users can tell which wallet is connected.
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> React peer versions conflict. The new wallet plugin requires React ^19.2.8, but the committed workspace resolution installs React 19.2.3. Strict peer checks can reject that installation. Align the React minimum and resolved version with the plugin’s requirement.
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Wallet restoration lacks coverage. The new tests cover account switching and button-driven disconnect, but none remounts a connected client to check restoration. A regression in this new lifecycle path would pass the starter’s CI suite; please add a restoration test.
Knowledge Base Used: Solana Kit templates
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
greptile-apps[bot]
SrMessiSOL
Summary
Updates the React + Vite wallet starter to Kit 8 wallet/RPC plugins and
@solana/react, replacing@solana/clientand@solana/react-hooks.Changes
Validation
create-solana-dapp.