Skip to content

feat(services): refactor auth and color configuration flow#540

Open
simsonas86 wants to merge 1 commit intoProject-Sloth:mainfrom
simsonas86:patch-refactor-services
Open

feat(services): refactor auth and color configuration flow#540
simsonas86 wants to merge 1 commit intoProject-Sloth:mainfrom
simsonas86:patch-refactor-services

Conversation

@simsonas86
Copy link
Copy Markdown

Changes summary:

  • Introduced settingsService for central settings configuration (only colours currently).
  • Changed authService to delegate color configuration to settingsService.

This solves an issue where previously multiple fetchNui requests were sent for getColorConfig and getMyPermissions callbacks at nearly the same time causing some to timeout.

P.S. Will probably move more/all settings-related things into the central settings service, just haven't got around to it yet.

- Introduce `settingsService` for handling color configurations
- Simplify and modularize color loading and application logic
- Update `authService` to improve permission and job type management
- Remove redundant `loadColorConfig` logic from multiple components and pages
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