The interface's words follow the style guide (#507)

docs/STYLE-GUIDE.md sets the rules: sentence case, "Unable to ..." and
what to do for a failure, podcast not show, address not URL, check not
scan, no dashes or symbols for words, buttons that start with a verb.
The page, admin, sign-in and the app's alert now follow it: the copy
failure, the download and sharing states, the feed's error label, the
DeadAir lines, the search boxes' clear buttons (which said only "Clear"),
the icon picker's Auto and Initials, the r key's "Refresh" (it reloads
the lists), the admin log's Scans tab. "add it in Settings" stays in
lower case: it is a link inside a sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
This commit is contained in:
2026-12-02 11:35:17 -05:00
parent 0bb7437541
commit 8261e52484
18 changed files with 219 additions and 37 deletions

View File

@@ -367,7 +367,7 @@ test('Share says why an episode gets no page anyone can play, and warns of a key
const note = (why: string | null, url: string) => run(`noLinkNote(${JSON.stringify(why)}, ${JSON.stringify(url)})`) as string;
const paid = 'https://c10.patreonusercdn.com/ep.mp3?token-hash=abc';
assert.match(note('private', paid), /private to you.*includes your own access/s);
assert.match(note('failed', 'https://example.com/ep.mp3'), /could not be made just now/);
assert.match(note('failed', 'https://example.com/ep.mp3'), /Unable to make a page anyone can play just now/);
assert.doesNotMatch(note('failed', 'https://example.com/ep.mp3'), /own access/);
// A server with no ipx-play shares as it always has, with no reason to give.
assert.equal(note('not_set_up', 'https://example.com/ep.mp3'), '');
@@ -388,7 +388,7 @@ test('a file\'s box says where it is: the publisher, on its way, iPX, this devic
const where = (x: object) => run(`whereText(${JSON.stringify({ id: 7, deadair: 0, path: null, state: 'held', ...x })})`) as string;
assert.equal(where({}), 'Publisher only');
assert.equal(where({ state: 'pending' }), 'Queued for iPX');
assert.equal(where({ state: 'error' }), 'iPX could not download it');
assert.equal(where({ state: 'error' }), 'Unable to download to iPX');
run(`want(7, 'Ep')`);
assert.equal(where({ state: 'pending' }), 'Downloading to iPX, then this device');
run('unwant(7)');