diff --git a/src/app/commandRegistry.ts b/src/app/commandRegistry.ts index 56d19042..26fa3b20 100644 --- a/src/app/commandRegistry.ts +++ b/src/app/commandRegistry.ts @@ -791,7 +791,7 @@ export const commandRegistry: AppCommand[] = [ keywords: ['help', 'about'], enabled: true, visibility: 'global', - defaultShortcut: { keys: ['Ctrl', 'Shift', 'B'], scope: 'global' }, + defaultShortcut: { keys: [], scope: 'global' }, placements: ['command-palette', 'menu'], action: { type: 'view-action', name: 'about' }, }, diff --git a/src/app/statusBarPhrases.test.ts b/src/app/statusBarPhrases.test.ts index be8027d1..a55458b1 100644 --- a/src/app/statusBarPhrases.test.ts +++ b/src/app/statusBarPhrases.test.ts @@ -45,14 +45,14 @@ describe('statusBarPhrases', () => { }) it('formats text difference section phrases', () => { - expect(formatDifferenceCountPhrase(null, 'text-compare')).toBe('≠ -') + expect(formatDifferenceCountPhrase(null, 'text-compare')).toBe('Differences: —') expect(formatDifferenceCountPhrase(1, 'text-compare')).toBe('≠ 1 difference section') expect(formatDifferenceCountPhrase(3, 'text-merge')).toBe('≠ 3 difference sections') expect(formatDifferenceCountPhrase(2, 'folder-compare')).toBe('Differences: 2') expect(formatDifferenceCountPhrase(0, 'hex-compare')).toBe('≠ Same') expect(formatDifferenceCountPhrase(3, 'hex-compare')).toBe('≠ Binary differences') expect(isHexSessionStatusSource('hex-compare')).toBe(true) - expect(formatDifferenceCountPhrase(null, 'picture-compare')).toBe('≠ -') + expect(formatDifferenceCountPhrase(null, 'picture-compare')).toBe('Differences: —') expect(formatDifferenceCountPhrase(0, 'picture-compare')).toBe('≠ Same') expect(formatDifferenceCountPhrase(1, 'picture-compare')).toBe('≠ 1 pixel') expect(formatDifferenceCountPhrase(4, 'picture-compare')).toBe('≠ 4 pixels') diff --git a/src/app/statusBarPhrases.ts b/src/app/statusBarPhrases.ts index 8ad6b9e4..02a79197 100644 --- a/src/app/statusBarPhrases.ts +++ b/src/app/statusBarPhrases.ts @@ -95,7 +95,7 @@ export function formatDifferenceCountPhrase( if (isPictureSessionStatusSource(source)) { if (differenceCount === null) { - return '≠ -' + return 'Differences: —' } if (differenceCount === 0) { @@ -114,7 +114,7 @@ export function formatDifferenceCountPhrase( } if (differenceCount === null) { - return '≠ -' + return 'Differences: —' } if (differenceCount === 1) { diff --git a/src/components/workbench/PathMetaFooter.test.ts b/src/components/workbench/PathMetaFooter.test.ts index c8ca77fe..cc698a94 100644 --- a/src/components/workbench/PathMetaFooter.test.ts +++ b/src/components/workbench/PathMetaFooter.test.ts @@ -71,4 +71,17 @@ describe('PathMetaFooter chip menus', () => { ) wrapper.unmount() }) + + it('hints when no path metadata is available', () => { + const wrapper = mountFooter({ + stamp: null, + formatLabel: undefined, + encoding: undefined, + lineEnding: undefined, + }) + + expect(wrapper.attributes('title')).toContain('Choose a path') + expect(wrapper.text()).toContain('—') + wrapper.unmount() + }) }) diff --git a/src/components/workbench/PathMetaFooter.vue b/src/components/workbench/PathMetaFooter.vue index b62549c7..b5a05233 100644 --- a/src/components/workbench/PathMetaFooter.vue +++ b/src/components/workbench/PathMetaFooter.vue @@ -134,6 +134,7 @@ onBeforeUnmount(() => { data-path-meta-eol="capture-1to1-residual" data-path-meta-gap="capture-1to1-residual" :data-testid="testId" + :title="isMuted ? t('status.pathMetaEmptyHint') : undefined" >