forked from jsnbuchanan/crowd-funder-for-time-pwa
refactor: Improve settings and feed handling in HomeView
- Split feed initialization into separate methods - Add registration status verification - Improve error handling and notifications - Add JSDoc comments for better code documentation - Make apiServer optional in settings type The changes improve code organization by: 1. Breaking down monolithic initialization into focused methods 2. Adding proper type safety for optional settings 3. Improving error handling and user feedback 4. Adding clear documentation for methods 5. Separating concerns for feed, contacts and registration
This commit is contained in:
@@ -20,7 +20,7 @@ export type Settings = {
|
||||
// active Decentralized ID
|
||||
activeDid?: string; // only used in the MASTER_SETTINGS_KEY entry
|
||||
|
||||
apiServer: string; // API server URL
|
||||
apiServer?: string; // API server URL
|
||||
|
||||
filterFeedByNearby?: boolean; // filter by nearby
|
||||
filterFeedByVisible?: boolean; // filter by visible users ie. anyone not hidden
|
||||
|
||||
Reference in New Issue
Block a user