Skip to content

feat: update realm paths to v2 security-fixed versions#288

Merged
zxxma merged 1 commit intomainfrom
feat/v4.1-realm-v2-paths
Apr 9, 2026
Merged

feat: update realm paths to v2 security-fixed versions#288
zxxma merged 1 commit intomainfrom
feat/v4.1-realm-v2-paths

Conversation

@zxxma
Copy link
Copy Markdown
Contributor

@zxxma zxxma commented Apr 9, 2026

Summary

  • Point frontend to security-fixed v2 candidature and channels realms on test12
  • Fix critical detectChannelRealm bug that would silently fail with v2 paths
  • Add env var overrides for realm path configuration

Changes

  • config.ts: channelsPath/candidaturePath → _v2 paths with VITE_* env var overrides
  • parser.ts: fix detectChannelRealm to use MEMBA_DAO.channelsPath from config instead of hardcoded ${daoRealmPath}_channels suffix (critical — old code would never find v2 path)
  • Test files: v2 paths in gnoweb sample HTML, CandidaturePage mock, candidatureTemplate assertion
  • .env.example: document realm path override env vars
  • contracts/README.md: full deployment status for all 9 realms

Context

v1 candidature had zero ACL on MarkApproved/MarkRejected. v1 channels had zero membership checks on all writes. On-chain code is immutable — v2 deployed at new paths via samcrew-deployer PR #9.

Test plan

  • gnoweb.test.ts: 14/14 pass
  • candidatureTemplate.test.ts assertion tightened to v2 path
  • TypeScript: 0 errors
  • No functional v1 path references remaining (grep verified)

Point frontend to the security-fixed v2 candidature and channels realms
deployed on test12. The v1 on-chain code had zero ACL checks — v2 adds
admin/membership verification on all write operations.

Changes:
- config.ts: channelsPath/candidaturePath → _v2 paths + env var overrides
- parser.ts: fix detectChannelRealm to use MEMBA_DAO.channelsPath instead
  of hardcoded suffix construction (would never find _v2 path)
- gnoweb.test.ts: add v2 realm entries to sample HTML + update assertions
- candidatureTemplate.test.ts: tighten default path assertion to v2
- CandidaturePage.test.tsx: update mock to v2 path
- .env.example: document VITE_CHANNELS/CANDIDATURE_REALM_PATH overrides
- contracts/README.md: full deployment status update (9 realms)

Deployed on test12 via samcrew-core-test1 multisig:
  r/samcrew/memba_dao_candidature_v2 (ACL-fixed)
  r/samcrew/memba_dao_channels_v2 (ACL-fixed)
  r/samcrew/nft_market (new)
  r/samcrew/gnobuilders_badges (new)
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 9, 2026

Deploy Preview for memba-multisig ready!

Name Link
🔨 Latest commit eab9c7a
🔍 Latest deploy log https://app.netlify.com/projects/memba-multisig/deploys/69d79fdbf6fcd60008dd8c2d
😎 Deploy Preview https://deploy-preview-288--memba-multisig.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 61 (no change from production)
Accessibility: 97 (no change from production)
Best Practices: 83 (no change from production)
SEO: 77 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

The latest Buf updates on your PR. Results from workflow CI / proto (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 9, 2026, 12:47 PM

@zxxma zxxma merged commit d526e0a into main Apr 9, 2026
10 checks passed
@zxxma zxxma deleted the feat/v4.1-realm-v2-paths branch April 9, 2026 14:09
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.

1 participant