Skip to content

Conversation

@SajeeTechi
Copy link
Contributor

  • read v5 configs from assets/config/v5
  • fetch remote configs from https://my.citizenwallet.xyz
  • new AppDBService appv5 for assets/config/v5

- Update config version from 4 to 5
- Replace versioned JSON endpoints with REST API endpoints
  - Change `/v4/communities.json` to `/api/communities`
  - Remove cache busting query parameters for cleaner URLs
- Add getConfigByAlias() method for direct community fetch
  - Supports both debug mode (local files) and production (API)
  - Enables efficient single-community retrieval via `/api/communities/{alias}`
- Optimize _getConfig() to try direct fetch before fetching all communities
- Update getCommunitiesFromRemote() to use new API endpoint

Breaking changes:
- Requires API server at https://my.citizenwallet.xyz with /api/communities endpoints
- Local debug files now loaded from assets/config/v5/
Initialize AppDBService with 'appv5' database to align with v5 config migration.
Creates fresh database that will be seeded with v5 community configurations.
@SajeeTechi SajeeTechi self-assigned this Dec 15, 2025
@SajeeTechi SajeeTechi merged commit 556d060 into feat/account-factory-selection Dec 15, 2025
1 check failed
@SajeeTechi SajeeTechi deleted the refactor/load-v5-community branch December 15, 2025 17:41
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