Shorten edge-peek tip Settings link label to Settings

Keep the deep-link target as Appearance › Right Sidebar Edge Peek; only
the visible label is shorter.
This commit is contained in:
Brennan Benson
2026-07-16 17:45:30 -07:00
parent 3cde721fce
commit 09a24d7737
2 changed files with 3 additions and 9 deletions
@@ -42,9 +42,7 @@ describe('markRightSidebarEdgePeekTipDismissed', () => {
describe('tip copy', () => {
it('describes the edge gesture and links into Settings', () => {
expect(getRightSidebarEdgePeekTipTitle()).toContain('right edge')
expect(getRightSidebarEdgePeekSettingsLinkLabel()).toMatch(/Settings/)
expect(getRightSidebarEdgePeekSettingsLinkLabel()).toMatch(/Appearance/)
expect(getRightSidebarEdgePeekSettingsLinkLabel()).toMatch(/Edge Peek/)
expect(getRightSidebarEdgePeekSettingsLinkLabel()).toBe('Settings')
})
})
@@ -44,13 +44,9 @@ export function getRightSidebarEdgePeekTipSettingsPrefix(): string {
return translate('auto.components.right.sidebar.edge.peek.tip.settingsPrefix', 'Turn this off in')
}
/** Clickable Settings breadcrumb for the edge-peek control. */
/** Short clickable label; the target is still the edge-peek Appearance row. */
export function getRightSidebarEdgePeekSettingsLinkLabel(): string {
return translate(
'auto.components.right.sidebar.edge.peek.tip.settingsLink',
'Settings › Appearance › {{value0}}',
{ value0: getRightSidebarEdgePeekEntry().title }
)
return translate('auto.components.right.sidebar.edge.peek.tip.settingsLink', 'Settings')
}
/** Opens Appearance and scrolls/highlights the edge-peek switch. */