Refactor/load v5 community#264
Merged
SajeeTechi merged 6 commits intofeat/account-factory-selectionfrom Dec 15, 2025
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
assets/config/v5https://my.citizenwallet.xyz