Commit Graph
588 Commits
Author SHA1 Message Date
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
jakob.scheid f5af9b3675 test(settings): add tests for settings page composable 2026-07-26 16:04:23 +02:00
jakob.scheid cd6f2da17f test(settings): add tests for selection setting
Added tests for the selection setting component:
  - correct display of options
  - shows values correctly
  - store of values
  - correct translation
2026-07-26 15:44:41 +02:00
jakob.scheid 32b9b860f6 feat(settings): wrap selection option label
Added a wrapper for the settings selection option label to make it
easier to identify (internal).
2026-07-25 16:47:43 +02:00
jakob.scheid eb50936a06 fix(settings): use wrapper only if settings shown
The .settings-main-content wrapper in the settings view is now only
used if there are settings shown. It is not used if the settings are
still loading or no section is selected.
2026-07-25 16:13:47 +02:00
jakob.scheid 5e37cdd778 feat(settings): wrap selection setting label
Added a wrapper for the selection setting label to make it easier to
find (internal).
2026-07-25 15:07:08 +02:00
jakob.scheid bce61bcafb fix(settings): add section fallback
Added a simple message as a fallback that is used if no section is
selected.
2026-07-25 15:06:41 +02:00
jakob.scheid 9ff74157e8 fix(settings): fix handling of non-existent paths
Previously, the settings view now does not check whether the settings
content is falsy. But, if the setting does not exist, the setting itself
is undefined. So, if the specified settings path did not exist, an
error was thrown.
Now, the setting is checked for being falsy, not the setting content.
2026-07-25 13:45:43 +02:00
jakob.scheid 443967d314 chore: resolve merge conflicts 2026-07-25 13:42:04 +02:00
jakob.scheid 35f9a7363d Merge branch 'main' into feature/settings-renderer 2026-07-25 13:33:41 +02:00
jakob.scheid 61cb9d1790 Merge remote-tracking branch 'refs/remotes/origin/feature/settings-renderer' into feature/settings-renderer 2026-07-24 12:53:23 +02:00
jakob.scheid 06fa759df3 test(settings): add settings input tests 2026-07-24 12:52:54 +02:00
jakob.scheid 68e8ff3e7d feat(test-utils): add store setup functionality to mountComponent utility 2026-07-24 12:52:54 +02:00
jakob.scheid 62fa9e8799 fix(settings): prevent setting input done button from animating initially when mounting 2026-07-24 12:52:53 +02:00
jakob.scheid 53326b7e2f feat(settings): make setting input reactive to stored setting 2026-07-24 12:52:53 +02:00
jakob.scheid bcc4afe7fa feat(test-utils): add pinia options to mountComponent test utility 2026-07-24 12:52:37 +02:00
jakob.scheid 99393c08f7 test(settings): add settings input tests 2026-07-24 12:49:17 +02:00
jakob.scheid f2d228c24e feat(test-utils): add store setup functionality to mountComponent utility 2026-07-24 12:19:17 +02:00
jakob.scheid 9ce4cec0bf fix(settings): prevent setting input done button from animating initially when mounting 2026-07-24 12:17:48 +02:00
jakob.scheid f81ce63062 feat(settings): make setting input reactive to stored setting 2026-07-24 12:04:42 +02:00
jakob.scheid 7abf25aa19 feat(tests): add pinia options to mountComponent test utility 2026-07-24 11:36:50 +02:00
jakob.scheid bbae64771a test(settings): add switch component tests 2026-07-23 14:54:19 +02:00
jakob.scheid e6f5f5083f chore(dependencies): add @pinia/testing dependency 2026-07-23 13:18:34 +02:00
jakob.scheid a9e9bffd50 feat(settings): add settings page link 2026-07-23 12:42:10 +02:00
jakob.scheid fe7453ef10 fix(settings): add key prop to settings in settings page 2026-07-23 12:40:33 +02:00
jakob.scheid d0f86bfcec feat(settings): implement settings pages navigation 2026-07-23 12:32:31 +02:00
jakob.scheid 5c46f1bba4 feat(settigns): add settings page composable 2026-07-23 12:23:49 +02:00
jakob.scheid 60c1f290ff feat(settings): add utility functions to get settings
Utility function getSetting for getting a first-level setting from a
list of settings and unit tests.
Utility function getSettingRecursively to get any setting from a list
of settings. The setting can be at any nesting level in the settings
list and unit tests.
2026-07-23 11:38:58 +02:00
jakob.scheid ff0a6502fc feat(icons): add chevron right icon 2026-07-22 14:04:38 +02:00
jakob.scheid 840d01e1a1 refactor(settings): move settings button style into a CSS module 2026-07-22 13:53:08 +02:00
jakob.scheid 2a1ebcf343 fix(settings): fix switch label cursor 2026-07-22 13:36:34 +02:00
jakob.scheid 129d380f56 feat(settings): add selection setting 2026-07-22 13:27:57 +02:00
jakob.scheid dc366d9efa fix(settings): prevent input setting done button from extending beyond viewport border 2026-07-22 00:42:40 +02:00
jakob.scheidandGitea d5f80eba67 Merge pull request 'Load the default language on startup' (#133) from fix/load-default-language into main
Deploy on dev / Deploy on dev (push) Successful in 37s
Reviewed-on: #133
Reviewed-by: Jakob Scheid
2026-07-21 19:59:06 +02:00
jakob.scheid 6385842b54 fix(settings): make switch setting style scoped 2026-07-21 19:28:55 +02:00
jakob.gregoryandGitea f343d99406 fix(i18n): always load fallback language on startup 2026-07-21 19:19:31 +02:00
jakob.gregory 2060134563 Merge branch 'main' into fix/load-default-language 2026-07-21 19:14:51 +02:00
jakob.scheidandGitea 3e7f3d3c14 Merge pull request 'Chore: commit message template' (#132) from chore/commit-template-and-setup-script into main
Deploy on dev / Deploy on dev (push) Successful in 41s
Reviewed-on: #132
Reviewed-by: Jakob Gregory <7+jakob.gregory@noreply.localhost>
2026-07-21 19:10:29 +02:00
jakob.gregoryandGitea d4363f7515 fix(i18n): load default language on startup 2026-07-21 19:08:26 +02:00
jakob.scheid 80dec73fb0 chore: add setup scripts 2026-07-21 19:02:31 +02:00
jakob.scheid 8faace292e chore: add commit template 2026-07-21 18:56:58 +02:00
jakob.scheid 601e8284c1 refactor(settings): rename variable
Renamed the variable 'inputClass' to 'inputType' because this name is
more accurate
2026-07-21 18:37:39 +02:00
jakob.scheid 82a11af017 feat(settings): improve switch setting accessibility 2026-07-21 17:29:05 +02:00
jakob.scheid 45b52c2c11 feat(settings): improve input setting accessibility 2026-07-21 17:17:59 +02:00
jakob.scheid e365e1750a feat(settings): add animation to settings input done button 2026-07-21 16:50:15 +02:00
jakob.scheid 71a2d5a8d7 feat(settings): add settings component for inputs 2026-07-21 16:37:45 +02:00