Skip to content

docs: rewrite README and .env.example to match the actual stack (Closes #15) - #29

Merged
merlik787-droi merged 3 commits into
Riddlrealm:mainfrom
jobbykings:docs/issue-15-readme-env
Aug 27, 2026
Merged

merlik787-droi merged 3 commits into
Riddlrealm:mainfrom
jobbykings:docs/issue-15-readme-env

Conversation

@jobbykings

Copy link
Copy Markdown
Contributor

Summary

Rewrites the onboarding documentation for issue #15 so it describes the project that actually exists in the tree:

  • README.md — reflects the real stack (React 19, Vite 7, TypeScript, Tailwind 4, Redux Toolkit + Zustand, TanStack React Query, React Router 7), the real src/ layout, and the real scripts (dev, build, lint, test, test:watch, preview). Removes all claims about React 18, Context API, src/utils, src/contexts, Stellar SDK, Soroban RPC, and Freighter.
  • Features section — splits implemented features from not yet implemented ones (Stellar wallet integration, store checkout, NFT gallery, token management) so they are no longer described as present.
  • .env.example — documents only the variables the source actually reads (VITE_BACKEND_API_URL, VITE_GOOGLE_CLIENT_ID, VITE_CONTRIBUTORS_REPO), removes the [TEMPLATE] line, and drops the unread VITE_STELLAR_NETWORK / VITE_SOROBAN_RPC_URL / VITE_CONTRACT_ADDRESS variables.
  • CONTRIBUTING.md (new) — install/run/build/lint/test guidance plus a map of where key subsystems live (auth services, session storage, state slices, routes, data fetching, mock data).
  • Related Repositories — kept, with accurate descriptions of what actually depends on Mindmint-Backend and Mindmint-Contract (the latter is not yet integrated).

CI note (required to get a green pipeline)

The repo's main CI is currently red: the last run (merge of PR #25) fails 3 tests. Since CI on this repo only runs npm test, a docs-only PR would inherit those failures, so this PR also includes the minimal fixes to restore green CI:

  1. src/pages/Dashboard.tsx — the dashboard merge left an undefined leaderboardView reference that crashes the page at runtime (and fails the Dashboard tests + tsc). Wired it to the existing useLeaderboard() hook and dropped the stale unused import.
  2. src/services/AuthService.test.ts — tests share the jsdom storage; the "fails closed" test saw the token persisted by an earlier test. Cleared localStorage/sessionStorage between tests.

Verified locally: npm test (51/51 pass), npm run lint, and npm run build all succeed.

Closes #15

jobbykings and others added 2 commits August 25, 2026 19:01
Rewrite the onboarding docs to match the actual project: React 19 / Vite 7 /
Tailwind 4 / Redux Toolkit + Zustand / React Query stack, the real src/
layout and scripts, and only the env vars the source reads (dropping the
stale Stellar/Soroban/contract variables and the [TEMPLATE] line). Mark the
wallet/store/NFT/token features as not yet implemented and add
CONTRIBUTING.md with setup and codebase-map guidance.

Also restores green CI on the dashboard merge: wire Dashboard to the
useLeaderboard hook (the previous merge left an undefined leaderboardView
reference) and clear storage between AuthService tests.

Closes Riddlrealm#15

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
The committed lockfile was missing the @vitest/coverage-v8 dependency
subtree, so `npm ci` (the CI install step) failed with EUSAGE on every
run. Regenerated the lockfile with npm install so the coverage tooling
resolves cleanly.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
@merlik787-droi
merlik787-droi merged commit 9c3ba64 into Riddlrealm:main Aug 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite README and .env.example to match the actual stack and mark unimplemented features

2 participants