Skip to content

Fix audit P0 issues and restructure source for maintainability - #2

Merged
Greatub merged 1 commit into
mainfrom
fix/p0-and-engineering
Oct 25, 2026
Merged

Greatub merged 1 commit into
mainfrom
fix/p0-and-engineering

Conversation

@Greatub

@Greatub Greatub commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Implements the P0 items and engineering items (E-1 to E-6) from audit #1.

Data safety (P0)

  • Storage growth: version snapshots and Excel recovery points store only user-entered fields; dates, roll-ups and statuses are recalculated when used. Recovery points no longer embed version history or the audit log, and restoring one keeps the current snapshots and audit. Existing workspaces are compacted on load. Measured with 800 sub-tasks and 3 recovery points: 4 snapshots took 4.1 MB before (the next save exceeded the browser limit), now 1.2 MB; 8 snapshots take 1.8 MB.
  • Save failures: the one-time alert is replaced by a persistent banner with Export JSON backup and Retry save, shown until a save succeeds. Storage usage is shown in the header, with a warning banner above 80%.
  • People matrix: the header now includes the timeline column, so person columns line up (renamed from "RACI").

Maintainability

  • src/index.html is generated by scripts/build.cjs from readable sources in src/app/ (markup, styles, seven scripts). npm test fails if the generated file is out of date.
  • Removed unused code: v1 workbook export and its embedded template, the unused v2 builder, hidden legacy inputs, legacy three-role roll-ups, ~50 unused text keys.
  • Merged CSS override layers.
  • All UI text and messages, including 80+ previously English-only errors, come from one bilingual dictionary via t(key, ...args).
  • Removed the stale design comment and the third-party theme name; privacy scan now also flags macOS/Linux user paths.

Verification

  • npm test: build freshness + 56 logic checks (new tests/public/storage.cjs: compaction, recovery, banner, matrix, translation keys).
  • npm run test:e2e: 15-check Playwright smoke test (1440/1024 px, all views, inline edit, drag, dialogs, language, save-failure banner, reload); added as a CI job with screenshots uploaded.
  • Computed styles of every element compared before/after in 15 browser scenarios after the split and CSS merge: zero differences. Final screenshots are pixel-identical except the fixed people matrix and the default version tag (V1.7 → V1.0).
  • Privacy gate passes for tracked files and full history.

Notes

  • Workbooks exported before this change may be reported as stale once (snapshot compaction changes the revision digest); export a fresh one.
  • Not changed: scheduling rules, Excel v3 contract, project data model. IndexedDB migration and P1/P2 items are not included.

Generated by Claude Code

- Store version snapshots and recovery points as compact input-only data;
  recovery points no longer embed version history or audit log
- Replace one-time save alerts with a persistent save/storage banner and
  show storage usage
- Fix people matrix header misalignment
- Generate src/index.html from readable sources in src/app/ (build script
  with freshness check), remove dead code, merge CSS layers, move all UI
  text and messages into one bilingual dictionary
- Add storage/translation unit tests and a Playwright smoke test in CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDUfgNJbzbahVnmNQpWUeF
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T04:34:44.243874Z 79139ef PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Greatub
Greatub merged commit 1644e7e into main Oct 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants