docs: web comments say what the app does, not how it came to be (#6277)
Rewrites the web app's comments to rule 32. Task, milestone, rule and spec ids are gone; regression stories are restated as the trap they guard (public auth routes, the menu's stopPropagation, universal loads under adapter-static, metric deltas with their margin). Flutter and Tauri mentions now name the Android app or a native shell, operator quotes and dates are dropped, and one library's counts no longer appear outside test fixtures. Verified with a TypeScript-scanner token comparison (template literals and regex literals re-scanned): only comment text changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import type { ImportState } from '#lib/api/types.js';
|
||||
|
||||
// A running download's state in a line: how far it has got, or what its
|
||||
// import is doing or waiting on. The wanted list and the admin Overview say
|
||||
// it the same way (M505). Null before the download client has reported on it.
|
||||
// it the same way. Null before the download client has reported on it.
|
||||
export function liveDownloadLine(g: { import_state: ImportState; progress: number; import_reason: string }): string | null {
|
||||
switch (g.import_state) {
|
||||
case 'downloading':
|
||||
|
||||
@@ -3,9 +3,9 @@ import type { SearchResult, Want } from '#lib/api/types.js';
|
||||
import { liveDownloadLine } from './downloadState.js';
|
||||
|
||||
// How a want reads in a line, wherever it is shown: the Collection's lists
|
||||
// and the Missing page's folders (M504).
|
||||
// and the Missing page's folders.
|
||||
|
||||
// What a Search the operator ran found, for its toast.
|
||||
// What a Search an admin ran found, for its toast.
|
||||
export function searched(w: Want, r: SearchResult): string {
|
||||
let said: string;
|
||||
switch (r.outcome) {
|
||||
|
||||
Reference in New Issue
Block a user