mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-30 05:42:44 -08:00
Add missing settings from settings link list (#765)
<!-- Please read https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before submitting your pull request --> ### Description <!-- Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Adds some missing settings from the settings link list #### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings ### AI disclosure: - [ ] Partially AI assisted (clarify which code was AI assisted and briefly explain what it does). - [ ] Fully AI generated (explain what all the generated code does in moderate detail). <!-- Write any explanation required here, but do not generate the explanation using AI!! You must prove you understand what the code in this PR does. -->
This commit is contained in:
3 files changed
+25
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
Readded various missing settings from the settings sharing list.
|
||||
@@ -34,6 +34,12 @@ describe('settingsLink', () => {
|
||||
'https://app.example/settings/appearance/?focus=message-link-preview'
|
||||
)
|
||||
).toEqual({ section: 'appearance', focus: 'message-link-preview' });
|
||||
expect(
|
||||
parseSettingsLink(
|
||||
'https://app.example',
|
||||
`https://app.example/settings/general?focus=composer-formatting-toolbar&${SETTINGS_LINK_ACTION_PARAM}=${SETTINGS_LINK_ACTION_SETTINGS}`
|
||||
)
|
||||
).toEqual({ section: 'general', focus: 'composer-formatting-toolbar' });
|
||||
expect(
|
||||
parseSettingsLink(
|
||||
'https://app.example',
|
||||
|
||||
@@ -18,10 +18,12 @@ const settingsSectionLabel = Object.fromEntries(
|
||||
const settingsLinkFocusIdsBySection: Record<SettingsSectionId, readonly string[]> = {
|
||||
general: [
|
||||
'client-side-embeds',
|
||||
'composer-formatting-toolbar',
|
||||
'custom-date-format',
|
||||
'date-format',
|
||||
'disable-media-auto-load',
|
||||
'display-bundled-embeds',
|
||||
'display-multiple-embeds',
|
||||
'embed-youtube-links',
|
||||
'emoji-selector-threshold',
|
||||
'enable-swiping',
|
||||
@@ -61,6 +63,7 @@ const settingsLinkFocusIdsBySection: Record<SettingsSectionId, readonly string[]
|
||||
'email-address',
|
||||
'has-cats',
|
||||
'is-cat',
|
||||
'user-hero-color',
|
||||
'matrix-id',
|
||||
'name-color',
|
||||
'name-color-dark-theme',
|
||||
@@ -85,13 +88,24 @@ const settingsLinkFocusIdsBySection: Record<SettingsSectionId, readonly string[]
|
||||
'collapse-folders-by-default',
|
||||
'colorful-names',
|
||||
'consistent-icon-style',
|
||||
'browse-remote-catalog',
|
||||
'customize-dm-cards',
|
||||
'custom-profile-cards',
|
||||
'dark-theme',
|
||||
'jumbo-emoji-size',
|
||||
'light-theme',
|
||||
'manual-theme',
|
||||
'message-link-preview',
|
||||
'page-zoom',
|
||||
'catalog-themes',
|
||||
'catalog-tweaks',
|
||||
'theme-browse-remote',
|
||||
'theme-catalog-clear-remote',
|
||||
'theme-chat-sable-widgets',
|
||||
'theme-chat-auto-approved',
|
||||
'theme-chat-auto-any',
|
||||
'theme-import-open',
|
||||
'theme-local-sync-system',
|
||||
'pronoun-pills-for-all',
|
||||
'reduced-motion',
|
||||
'render-global-username-colors',
|
||||
|
||||
Reference in new issue
Block a user