feat(app): search, sort and date format of the admin sheet list

This commit is contained in:
bchanot committed 2026-11-16 16:45:23 +01:00
1 parent d5852f5f8e
commit f3b58abe70
5 files changed
+121 -5

No files matched your search

+11 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import { failureMessage } from '@/admin/labels'
import { failureMessage, formatShortParisDateTime } from '@/admin/labels'
import { en } from '@/i18n/en'
import { fr } from '@/i18n/fr'
@@ -16,3 +16,13 @@ describe('failure messages of the submission', () => {
},
)
})
describe('formatShortParisDateTime (A8)', () => {
it('reads « 9 nov. 2026, 12:06 » in French and « 9 Nov 2026, 12:06 » in English, in Paris time', () => {
expect(formatShortParisDateTime('2026-11-09T11:06:00.123456+00:00', 'fr')).toBe('9 nov. 2026, 12:06')
expect(formatShortParisDateTime('2026-11-09T11:06:00.123456+00:00', 'en')).toBe('9 Nov 2026, 12:06')
})
it('follows the Paris summer offset', () => {
expect(formatShortParisDateTime('2026-07-01T22:30:00+00:00', 'fr')).toBe('2 juil. 2026, 00:30')
})
})