Commit Graph
26 Commits
Author SHA1 Message Date
jakob.scheid 85dc55201f feat(settings): add title to selection options 2026-07-28 13:15:36 +02:00
jakob.scheid a4c120e32a feat(settings): improve label relationship in selection
Added attributes to indicate that div.label is the label for
ul.options-list in the selection component.
2026-07-28 13:12:23 +02:00
jakob.scheid 58d5ea8f60 refactor(settings): remove unused parameter
Removed unused oldValue parameter in the selection component.
2026-07-28 13:10:17 +02:00
jakob.scheid 22e3f21c37 refactor(settings)!: pass path to getSettingsRecursively using an array instead of a string
Tests and all files the utility is used in are also updated.

Warning: This change is breaking!
2026-07-28 13:03:47 +02:00
jakob.scheid fa71969658 refactor(settings): use oneline if statement
Use a oneline if statement in the getSetting utility.
2026-07-28 12:56:07 +02:00
jakob.scheid 312734233b test(settings): refactor switch component test
Added and used getWrapper function to switch component test to mount the
component and avoid repeating code.
2026-07-28 12:53:41 +02:00
jakob.scheid c72c5dac46 test(settings): refactor selection component test
Use exampleOptions instead of an own options array, which was equal to
exampleOptions.
2026-07-28 12:43:41 +02:00
jakob.scheid a73cc925fd test(settings): refactor selection test getWrapper function
Updated the getWrapper function to use object destructuring.
2026-07-28 12:41:42 +02:00
jakob.scheid 9473a42037 style(settings): remove unnecessary commas
Removed unnecessary commas in settings input component and settings page
component.
2026-07-28 12:35:27 +02:00
jakob.scheid 702f6d4787 style(settings): remove unnecessary comma
Removed unnecessary trailing comma in the selection component.
2026-07-28 12:33:40 +02:00
jakob.scheid 98a07496f9 fix(settings): update settings input to use default value
The SettingsInput component now uses the default value if there is a
default value. Tests for this were added.
2026-07-28 12:28:06 +02:00
jakob.scheid 67981f6181 test(settings): refactor getWrapper function in settings input test
Updated the getWrapper function to use object destructuring.
2026-07-28 12:20:17 +02:00
jakob.scheid f33f00d7a8 docs(changelog): add settings renderer 2026-07-28 11:20:50 +02:00
jakob.scheid bce7f98cdb test(settings): add tests for settings page
Added tests for the SettingsPage component:
  - correct heading
  - correct settings
2026-07-28 11:01:39 +02:00
jakob.scheid 20a6245cb6 test(settings): add tests for settings page link 2026-07-27 19:22:58 +02:00
jakob.scheid b96bafa8bf test(settings): add tests for settings view
Added tests for the settings view (SettingsView.vue):
  - heading translation
  - sidebar top-level sections
  - correct main element
2026-07-27 19:05:07 +02:00
jakob.scheid 2d7d521e18 refactor(settings): move setttings path normalization utility to a separate file
Moved the normalizePagePath utility from the settings page composable to
a separate utility file and restructured tests accordingly.
2026-07-27 19:05:06 +02:00
jakob.scheid afa7b11534 refactor(settings): remove unused utility
Removed the utility getSectionHeadingLevel and its tests.
2026-07-27 19:05:06 +02:00
jakob.scheid 72c88838cb feat(settings): add page path normalization type check
Added a type check to the normalizePagePath function. The function now
returns an empty array if the path is not a string.
2026-07-27 19:05:05 +02:00
jakob.scheid e14ce45849 feat(settings): omit empty settings page segments
The composable useSettingsPage now omits empty segments in the path.
2026-07-27 19:05:04 +02:00
jakob.scheid 966a984eb0 feat(settings): filter characters that would cause a broken URL from settings page path 2026-07-27 19:05:04 +02:00
jakob.scheid d094ec1f0a test(settings): distinguish between unit tests and integration tests
Separated unit tests and integration tests in the test for
useSettingsPage more clearly.
2026-07-27 19:05:03 +02:00
jakob.scheid 0d38e02767 refactor(settings): push route object instead of raw string
Modified the useSettingsPage composable to use a route object instead
of a raw string in goToSettingsPage and moved settings route child
routes into the settings route itself using 'rest(.*)*'.
2026-07-27 19:05:02 +02:00
jakob.scheid 61a41ec813 feat(settings): make settings page composable more compatible
The composable now uses replace instead of replaceAll which is not
supported by some old browsers.
2026-07-27 19:05:01 +02:00
jakob.scheid a1da2eb2e6 fix(settings): omit leading/trailing and consecuting dots in noralizePagePath 2026-07-27 19:05:00 +02:00
jakob.scheid 89dbf8f0e7 fix(settings): return router.push promise
The settings page composable function to go to a settings page now
returns the promise router.push returns.
2026-07-26 18:45:04 +02:00