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:
@@ -58,7 +58,7 @@ afterEach(() => vi.clearAllMocks());
|
||||
describe('home Playlists section', () => {
|
||||
test('renders 5 placeholder cards when no playlists exist', () => {
|
||||
// For-You + Discover in the Playlists row, plus 3 in the dedicated
|
||||
// Songs-like row (#1491) = 5 placeholders total.
|
||||
// Songs-like row = 5 placeholders total.
|
||||
render(Page);
|
||||
const placeholders = screen.queryAllByTestId('playlist-placeholder-card');
|
||||
expect(placeholders).toHaveLength(5);
|
||||
@@ -131,7 +131,8 @@ describe('home Playlists section', () => {
|
||||
created_at: '2026-05-04T00:00:00Z',
|
||||
updated_at: '2026-05-04T00:00:00Z'
|
||||
});
|
||||
// Six generated mixes — the old carousel capped at 3; the dedicated row shows all.
|
||||
// Six generated mixes — the old carousel capped at 3; the dedicated row
|
||||
// shows all.
|
||||
const owned = Array.from({ length: 6 }, (_, i) => makeSongsLike(`sl${i}`, `Songs like ${i}`));
|
||||
(createPlaylistsQuery as unknown as ReturnType<typeof vi.fn>).mockImplementation(
|
||||
(kind?: string) =>
|
||||
@@ -154,7 +155,7 @@ describe('home Playlists section', () => {
|
||||
});
|
||||
|
||||
test('renders secondary system kinds (deep_cuts / new_for_you) in the Playlists row', () => {
|
||||
// Operator backflow 2026-06-01: web Home surfaces the 5 secondary
|
||||
// Web Home surfaces the 5 secondary
|
||||
// system kinds when generated. No placeholders for them — they
|
||||
// depend on library shape, so missing means "not enough data."
|
||||
const makePlaylist = (id: string, variant: string, name: string): Playlist => ({
|
||||
|
||||
Reference in New Issue
Block a user