chore(boltbot): remove AI-generated comment slop, gitignore specs

This commit is contained in:
duy 2026-01-29 15:49:35 -08:00
parent 5657dad29d
commit 1382694aaa
4 changed files with 5 additions and 8 deletions

3
.gitignore vendored
View File

@ -69,5 +69,8 @@ IDENTITY.md
USER.md
.tgz
# specs (generated, not shipped)
docs/specs/
# local tooling
.serena/

View File

@ -56,7 +56,6 @@ export default function App() {
setSearchParams({ anomalies: v ? "1" : "" });
}
// Polling: merge new receipts at the top, do NOT touch loadedCount or hasMore
useEffect(() => {
if (receipts) {
setAllReceipts((prev) => {
@ -68,7 +67,6 @@ export default function App() {
}
}, [receipts]);
// Initial load: set hasMore and loadedCount once
useEffect(() => {
if (receipts && !initialLoadDone.current) {
initialLoadDone.current = true;

View File

@ -1,8 +1,8 @@
@import "tailwindcss";
body {
background-color: #0a0a0a; /* neutral-950 */
color: #f5f5f5; /* neutral-100 */
background-color: #0a0a0a;
color: #f5f5f5;
font-family: "Space Grotesk", sans-serif;
margin: 0;
touch-action: manipulation;

View File

@ -33,14 +33,11 @@ export function registerDashboardRoutes(api: PluginApi) {
const idx = url.indexOf(basePath);
let filePath = idx !== -1 ? url.slice(idx + basePath.length) : "/";
// Strip query string
const qIdx = filePath.indexOf("?");
if (qIdx !== -1) filePath = filePath.slice(0, qIdx);
// Default to index.html
if (!filePath || filePath === "/") filePath = "/index.html";
// Sanitize: prevent directory traversal
const decoded = decodeURIComponent(filePath);
const absolutePath = join(DIST_DIR, normalize(decoded));
const resolvedDist = resolve(DIST_DIR);
@ -55,7 +52,6 @@ export function registerDashboardRoutes(api: PluginApi) {
try {
content = readFileSync(absolutePath);
} catch {
// SPA catch-all: serve index.html for unknown paths
try {
content = readFileSync(join(DIST_DIR, "index.html"));
servingIndex = true;