Skip to content

Upgrade - #32

Merged
elliotBraem merged 56 commits into
MultiAgency:mainfrom
NEARBuilders:main
Jul 15, 2026
Merged

Upgrade#32
elliotBraem merged 56 commits into
MultiAgency:mainfrom
NEARBuilders:main

Conversation

@elliotBraem

Copy link
Copy Markdown
Collaborator

No description provided.

jlwaugh and others added 30 commits May 19, 2026 21:26
* init

* clean user nav

* alignment

* format

* fix(deps): bump better-auth

---------

Co-authored-by: James Waugh <multidaomensional@gmail.com>
- Resolve requireRole global-vs-org-scoped concern: requireOrganization sets context.user.role from org membership
- Add requireRole("client") to 001-01 gate migration table
- Fix 003-04 report gate to include "client" role with auto-scoping
- Fix resolveClientId middleware: no UUID fallback, descriptive errors
- Document NEAR account identity chain (primaryAccountId → walletAddress / nearAccountId / nearAccount)
- Clarify isOperator convenience mapping (orgRole check, rename follow-up)
- Add explicit 001-01 dependency to Epic 003 003-02 ticket
- Remove .docs from gitignore
elliotBraem and others added 26 commits July 7, 2026 23:17
feat: consolidate admin UX shell and fix project/NEARN operator flows
Co-authored-by: Elliot Braem <elliot@ejlbraem.com>
Merge v1's 47 commits into main. Both branches independently converged on
the same structural improvements (absorbed admin sections, inlined icons,
hardcoded brand, API method renames, .env cleanup). The only true divergence
was the network state pattern:

- v1 used a cookie-based network.ts (getNetwork/setNetwork via document.cookie)
- main used authClient.near.getNetwork() threaded through every query function

Resolution: accept v1's decoupled architecture (no authClient param on query
options) but replace network.ts internals to delegate to authClient.near
instead of cookies. A setAuthClient() singleton is wired in __root.tsx
beforeLoad, giving network.ts access to the auth client without coupling
query functions to it.

Also fixes auto-merged migration files: main renamed 0000_initial.sql to
0000_tired_butterfly.sql (with dao_account_id already in settings), while v1
kept 0000_initial.sql (without it) + added 0001_glossy_boom_boom.sql. Restored
v1's migration pair to avoid the duplicate-column error.
…pace rename

PR #22 — Epic 002 Admin UX Consolidation:
- Extracted admin sections from public pages into dedicated admin route shell
  (/admin/applications, /admin/billings, /admin/budgets, /admin/contributors,
   /admin/projects) — team.tsx (-571), work.tsx (-788), treasury.tsx (-1156)
- New admin components: applications-section, assignments-section,
  billings-section, budgets-manager, contributors-section,
  internal-listing-form, members-section, project-form, projects-section
- Admin sidebar nav + section state components
- Internal listing lifecycle (draft→published→winners→archived)
- NEARN linking UUID fix + 0002 migration for external_uuid
- use-budget-actions hook, listing-lifecycle lib, near-account validator
- DataTable upgrades: sort, search, column visibility, CSV export
- Docs + Mermaid rendering, 4 new doc pages

PR #23 — Org → Workspace rename
- Renamed org terminology to workspace throughout
- CI cache/badge documentation

Also fixes duplicate formatNearnReward/NearnRewardShape block from merge.
@elliotBraem
elliotBraem merged commit 98b9354 into MultiAgency:main Jul 15, 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.

3 participants