feat(help): rewrite the help center for v5 with a Tours section, new pictures in every language, and fix the tour planner bugs it surfaced

Every help screen checked against the v5 redesign. Tours is documented for
the first time, as a screen of its own with twelve screens under it, and
notifications get help of their own. All pictures are taken again on a
realistic demo trip, with short loops where a still cannot show the motion.
The English is plain and every language is written naturally rather than
word for word.

The switcher shows two levels at most, a screen's overview lists its
sub-screens as cards above its guides, each wiki page is linked once, and
the help sidebar is wider.

Fixes found along the way: Save to Collection keeps a tour's route, a track
dropped on the places column opens the Tours import, tour Share on desktop,
the unsaved tour draft lives on the account, a route click no longer adds
an end point, Trip places leaves the trip's tours out, Escape closes a
stage's day menu, confirms before destructive deletes, DWD warnings sharing
one id kept apart, a booking's date moves with it, and smaller fixes across
notifications, bookings, the day plan, stays, Atlas, Collections, Vacay and
the admin screens.
This commit is contained in:
Maurice
2026-10-22 22:29:35 +02:00
parent 98f7549ac5
commit 31859651d7
2517 changed files with 160592 additions and 60094 deletions
+23 -1
View File
@@ -1,7 +1,7 @@
// FE-ADMMODEL-001 to -005: the invite status both admin user views show; -010 to -012 the users list.
import { describe, expect, it } from 'vitest';
import { formatLastActive, inviteStatus, mergeSavedUser, type AdminUser } from './adminModel';
import { formatLastActive, inviteMeta, inviteStatus, mergeSavedUser, type AdminUser } from './adminModel';
const NOW = new Date('2026-10-09T12:00:00Z');
@@ -84,3 +84,25 @@ describe('mergeSavedUser', () => {
});
});
});
describe('inviteMeta', () => {
const t = (key: string, params?: Record<string, string | number>) => (params ? `${key} ${params.trip}` : key);
it('FE-ADMMODEL-020: joins uses, expiry, trip and creator with commas, never a middle dot', () => {
const meta = inviteMeta(
{ used_count: 1, max_uses: 5, expires_at: '2026-10-10T00:00:00Z', trip_title: 'Rome', created_by_name: 'alice' },
t,
'en-US'
);
expect(meta).toBe(
'1/5 admin.invite.uses, admin.invite.expiresAt 10/10/2026, admin.invite.boundTo Rome, admin.invite.createdBy alice'
);
expect(meta).not.toContain('·');
});
it('FE-ADMMODEL-021: leaves out the expiry and the trip when the invite has none, and shows unlimited uses as infinity', () => {
expect(inviteMeta({ used_count: 2, max_uses: 0, created_by_name: 'bob' }, t, 'en-US')).toBe(
'2/∞ admin.invite.uses, admin.invite.createdBy bob'
);
});
});