mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 00:03:20 +00:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user