Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: global config validation #451

Merged
merged 8 commits into from
Nov 14, 2024
Merged

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Nov 13, 2024

fixes #399

Title

feat: global config validation

Description

Adds global config validation on save. This will validate the global config and show an error message if the config is invalid.

Depends on #448 and #450

Fixes #399
Fixes #446

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review

@SgtPooki SgtPooki requested a review from 2color November 13, 2024 22:51
@SgtPooki SgtPooki self-assigned this Nov 13, 2024
@SgtPooki SgtPooki force-pushed the 449-create-toggle-component-and-replace-local-storage-toggle-with-it branch from b95d53c to 5e4edf1 Compare November 13, 2024 23:08
@SgtPooki SgtPooki force-pushed the feat/399-global-config-validation branch from 3ff8a79 to 55fd164 Compare November 13, 2024 23:10
Base automatically changed from 449-create-toggle-component-and-replace-local-storage-toggle-with-it to main November 14, 2024 14:14
@SgtPooki SgtPooki merged commit 334a077 into main Nov 14, 2024
16 checks passed
@SgtPooki SgtPooki deleted the feat/399-global-config-validation branch November 14, 2024 14:39
SgtPooki added a commit that referenced this pull request Nov 14, 2024
* fix: dont use local storage for text config items

* fix: input toggles dont use localStorage

* fix: input-toggle uses resetKey

* fix: do not use broadcast channels to tell sw to update config

* chore: fix build

* feat: global config validation

fixes #399

* fix: validate before storing config

Also adds more error handling to config-db
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.

epic: config overhaul Add global config validation
1 participant