···9999 );
100100 }
101101102102+ // Bulk filler notes so the sidebar overflows and the main pane scrolls.
103103+ // Useful for visually testing the app-shell layout locally.
104104+ const longBody = Array.from(
105105+ { length: 60 },
106106+ (_, i) =>
107107+ `## Section ${i + 1}\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n`,
108108+ ).join("\n");
109109+110110+ for (let i = 1; i <= 40; i++) {
111111+ const slug = `filler-note-${String(i).padStart(2, "0")}`;
112112+ const tid = generateTid();
113113+ const atUri = `at://${mockDid}/wiki.lichen.note/${tid}`;
114114+ db.run(
115115+ "INSERT INTO notes (slug, wiki_slug, title, did, at_uri) VALUES (?, ?, ?, ?, ?)",
116116+ [slug, "test", `Filler note ${i}`, mockDid, atUri],
117117+ );
118118+ // Make a few notes very long so the main pane scrolls.
119119+ const content =
120120+ i % 5 === 0
121121+ ? `# Filler note ${i} (long)\n\n${longBody}`
122122+ : `# Filler note ${i}\n\nShort placeholder content for sidebar overflow testing.\n`;
123123+ db.run(
124124+ `INSERT INTO current_note (note_at_uri, content, latest_revision_uri, updated_at)
125125+ VALUES (?, ?, ?, datetime('now'))`,
126126+ [atUri, content, `${atUri}/rev/1`],
127127+ );
128128+ }
129129+102130 db.run("COMMIT");
103131 } catch (err) {
104132 db.run("ROLLBACK");