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

@@ -114,7 +114,7 @@ for(const b of $$('[data-icon]')) b.insertAdjacentHTML('afterbegin',ICON[b.datas
/// A search box with an x at its right end that clears it, shown once something is typed (#291).
const searchBox=(input: string, cls='')=>
`<span class="clearable ${cls}">${input}<button type="button" class="clearx" title="Clear" aria-label="Clear">${ICON.close}</button></span>`;
`<span class="clearable ${cls}">${input}<button type="button" class="clearx" title="Clear the search" aria-label="Clear the search">${ICON.close}</button></span>`;
// Every box's x, wherever it is drawn: cleared as if the typing were deleted, so the box's own input
// handler runs and its list comes back whole.
document.addEventListener('click',(e: MouseEvent)=>{
@@ -204,7 +204,7 @@ async function api(url: string, opts?: RequestInit): Promise<any>{
// whole 502 page (#219). A 500's words are the daemon's own workings, which its log already
// has; they are not something to show the person who pressed the button (#304).
const said=!/html/.test(r.headers.get('Content-Type')||'')&&await r.text().catch(()=>'');
throw new Error(r.status===500 ? 'iPX could not do that just now. Try again in a minute.'
throw new Error(r.status===500 ? 'Unable to do that just now. Try again in a minute.'
: said || 'Unable to reach iPX just now. Try again in a minute.');
}
const pb=wireType(r.headers.get('Content-Type'));
@@ -237,7 +237,7 @@ async function copyText(text: string,btn?: HTMLElement){
flash(true);
}catch(e){
flash(false);
toast('Could not copy automatically — select the URL and copy it manually',true);
toast('Unable to copy the link. Select it and copy it yourself.',true);
}
}