fixes on the UI changes
Some checks failed
CI / check (push) Has been cancelled

This commit is contained in:
2026-09-03 15:33:15 +02:00
parent 47581d5718
commit e5f739ec24
16 changed files with 898 additions and 543 deletions

View File

@@ -31,14 +31,15 @@ describe('HL.langFor / langLabel', () => {
describe('HL.iconFor', () => {
it('uses name-specific icons', () => {
expect(HL.iconFor('composer.json').t).toBe('co')
expect(HL.iconFor('package.json').t).toBe('pk')
expect(HL.iconFor('composer.json').c).toBe('#C3A6CE')
expect(HL.iconFor('package.json').c).toBe('#F0B476')
})
it('falls back to extension icons', () => {
expect(HL.iconFor('x.php').c).toBe('#a78bdb')
expect(HL.iconFor('x.php').c).toBe('#C3A6CE')
})
it('falls back to first two letters for unknown types', () => {
expect(HL.iconFor('weird.zzz').t).toBe('we')
it('falls back to the extension for unknown types', () => {
expect(HL.iconFor('weird.zzz').t).toBe('zzz')
expect(HL.iconFor('weird.zzz').c).toBe('#BAC0C0')
})
})

View File

@@ -170,7 +170,7 @@ describe('project note', () => {
const c = await boot()
await openNote(c)
const hint = c.querySelector('.notes-modal .notes-hint')
expect(hint?.textContent).toContain('To agent')
expect(hint?.textContent).toContain('To the agent')
expect(hint?.querySelector('kbd')?.textContent).toBe('⌘P')
})