Skip to content

README.md's Directory layout section is stale — it omits context/, hooks/, components/dashboard/, and several lib/ files entirely #254

Closed

Description

@chonilius

README.md's "Directory layout" section shows:

src/
  app/                 App Router routes (one folder per route above)
  components/
    ui/                Button, Badge, StatCard — small reusable primitives
    layout/            Navbar, Footer
    bounty/            BountyCard
  lib/
    api.ts             fetch wrapper + mock-data fallback
    config.ts           env-driven API base URL, OAuth URL, Stellar network
    mock-data.ts        realistic sample bounties/milestones/profiles for demos
    utils.ts            cn(), currency/percent/date formatting
    wallet.ts            Freighter connect/sign helpers
  types/
    index.ts             shared domain types (Bounty, Milestone, ReputationProfile, ...)

This tree is missing entire directories that exist in the real repo and are core to its
architecture: src/context/ (AuthContext, ThemeContext, WalletContext — the app's entire
session/wallet/theme state management) and src/hooks/ (useCrossTabStorage, which
several of the "Architecture" section's own claims about cross-tab behavior depend on)
are not mentioned anywhere in this tree. components/dashboard/ (ActivityList,
DashboardShell — rendered on every dashboard route) is also missing from the
components/ listing, which only shows ui/, layout/, and bounty/.

Under lib/, the tree lists five files but the real src/lib/ directory has nine:
adapters.ts (the entire raw-backend-to-UI-shape translation layer), auth.ts (token
storage), env.ts (the build-time validation this same README's "Environment variables"
section describes at length), and markdown.ts are all absent from this diagram.

A new contributor using this section to orient themselves would not know these five
files/directories exist at all, despite them being referenced by name elsewhere in this
very README (e.g. env.ts is explicitly named in the "Environment variables" section
just below).

Suggested fix: regenerate this tree from the actual src/ layout, including
context/, hooks/, components/dashboard/, and the missing lib/ files.

Activity

  1. added
    documentation
    architecture
    very hard
    help wanted
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 25, 2026
  3. Sweet-Kid commented on Aug 25, 2026

    @Sweet-Kid
    Contributor

    @Sweet-Kid has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello maintainer, I can handle this issue.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Sweet-Kid to this issue.

  4. drips-wave commented on Aug 25, 2026

    @drips-wave

    Congratulations, @Sweet-Kid! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @Sweet-Kid: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  5. added a commit that references this issue on Aug 29, 2026
    a3c05b1
  6. drips-wave commented on Aug 29, 2026

    @drips-wave

    This issue has been completed by @Sweet-Kid as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @Sweet-Kid: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  7. removed
    Stellar Wave
    on Oct 15, 2026
  8. added
    Stellar Wave
    on Oct 15, 2026
  9. removed
    Stellar Wave
    on Oct 15, 2026
  10. added
    Stellar Wave
    on Oct 15, 2026
  11. removed
    Stellar Wave
    on Oct 15, 2026
  12. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Wavearchitecturedocumentationhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions