Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/bolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
## 2026-07-12 - Optimize renderTaskRow DOM allocations
**Learning:** Caching unattached template nodes and instantiating them via `.cloneNode(false)` reduces DOM instantiation overhead in O(N) render loops significantly.
**Action:** Apply this optimization to other hot-path rendering elements such as rows, cells, and stack containers.
## 2026-08-31 - Optimize preload and modulepreload hints
**Learning:** Placing a `<link rel="preload">` for a stylesheet immediately before its actual `<link rel="stylesheet">` tag is redundant and provides no benefit, as modern browser preload scanners will detect both simultaneously. Valid resource hinting optimizations include using `<link rel="modulepreload">` for scripts located at the bottom of the `<body>`.
**Action:** Remove redundant `<link rel="preload">`, and ensure all JS modules loaded have `<link rel="modulepreload">`, like `cloud-sync.js` and `analytics.js`.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'none'; form-action 'self';" />
<title>ScopeWeave Planner</title>
<link rel="preload" href="styles.css" as="style" />

<link rel="modulepreload" href="cloud-sync.js" />
<link rel="modulepreload" href="analytics.js" />
<link rel="modulepreload" href="app.js" />
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="toast-state.css" />
Expand Down
12 changes: 12 additions & 0 deletions tests/e2e/mobile_resolution.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { test, expect } from '@playwright/test';

test.use({
viewport: { width: 375, height: 667 },
isMobile: true,
hasTouch: true,
});

test('Mobile Resolution Testing', async ({ page }) => {
await page.goto('./');
await expect(page.locator('tbody tr[data-task-id]')).toHaveCount(4);
});
Loading