Commit Graph

159 Commits

Author SHA1 Message Date
Jason Stedwell 0c880c9598 Untrack build output and local artifacts; gitignore them
Build and Push Docker Image / build (push) Successful in 28s
The image is built in CI (.gitea/workflows/docker-build.yml) from the
Dockerfile and pulled from registry.alwisp.com on Unraid. The Dockerfile
recompiles the client (vite build) inside the build and .dockerignore already
excludes these paths from the build context, so tracking them in git served no
purpose.

- Untrack client/dist (regenerated by the Docker build; logo + version stub
  sources live in client/public).
- Gitignore client/dist/, data/ (local SQLite volume), and *.tar.gz / *.zip
  (local `docker save` exports), alongside the already-ignored node_modules/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 17:13:07 -05:00
Jason Stedwell 7da4163d3b Untrack client/node_modules and gitignore it
Build and Push Docker Image / build (push) Successful in 30s
node_modules was vendored into the repo, which caused platform-specific
rollup/esbuild binary churn on every local install. Dependencies are
installed fresh during the Docker build, so there's no reason to track them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 17:09:26 -05:00
Jason Stedwell aef4ae60cb Docs consolidation + audit-log timezone fix + PTO-Exhausted sliding scale
Build and Push Docker Image / build (push) Successful in 49s
Documentation:
- Consolidate 6 doc surfaces to 3. Merge Unraid guide into README and
  fold durable mobile rules into AGENTS.md; remove README_UNRAID_INSTALL.md,
  MOBILE_RESPONSIVE.md, and the misplaced "CPAS Violation Tracker.md" vault note.
- Fix drift across README/AGENTS/in-app guide: clean-cycle roll-off model
  (not per-violation 90-day window), auth documented as shipped, dropped
  active_cpas_scores view, correct table count (8 tables/0 views), auth
  endpoints + ADMIN_PASSWORD in run commands, roadmap updated.

Fixes:
- Audit log / amendment timestamps: SQLite CURRENT_TIMESTAMP is UTC with no
  zone marker; new Date() parsed the space-separated form as local time,
  shifting entries +5h in Chicago/CDT. Pin the bare form to UTC before
  formatting in AuditLog.jsx and AmendViolationModal.jsx.
- Absence - PTO Exhausted: fixed 5 pts -> sliding scale 1-5.

Rebuild client bundle to include the above.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 17:07:51 -05:00
jason cd0064ce5b Fix docker-build.yml push trigger branch to match default branch
Build and Push Docker Image / build (push) Successful in 46s
2026-07-02 10:07:33 -05:00
jason 043fa63ddf Update docker-build.yml workflow 2026-07-02 10:03:12 -05:00
jason 69445381d5 docker-build.yml: build + push :latest only, no cleanup step
Build and Push Docker Image / build (push) Successful in 1m23s
Operator preference: build and push the :latest image to the registry and
leave it; no per-build host cleanup (handle orphan images separately).
2026-06-30 07:07:12 -05:00
jason 5ec784ebe6 docker-build.yml: push :latest only + clean up host build images
Build and Push Docker Image / build (push) Successful in 1m27s
- drop per-commit :sha tag (registry stays one tag per repo)
- remove the built image and prune dangling layers after push so CI builds
  stop accumulating orphan images on the Unraid host
2026-06-29 23:07:39 -05:00
jason c4d3940353 Update docker-build.yml: run on forgerunner host label, fix doubled image path
Build and Push Docker Image / build (push) Successful in 1m31s
2026-06-29 22:58:04 -05:00
jason 109cd3af05 fix Dockerfile
Build and Push Docker Image / build (push) Successful in 14s
2026-05-27 22:39:22 -05:00
jason 6ce9788a6b 90 day rolloff fix
Build and Push Docker Image / build (push) Successful in 16s
2026-05-27 21:41:57 -05:00
jason 08401afd28 user auth documentation changes
Build and Push Docker Image / build (push) Successful in 16s
2026-05-27 09:12:45 -05:00
jason 97be2d2908 auth modal
Build and Push Docker Image / build (push) Successful in 18s
2026-05-27 09:07:23 -05:00
jason 2d4920bd15 backfill button and usage
Build and Push Docker Image / build (push) Successful in 16s
2026-05-19 09:29:41 -05:00
jason 6ddc09aa71 fixes
Build and Push Docker Image / build (push) Successful in 35s
2026-05-19 00:34:58 -05:00
jason e2c352d518 Fix math logic for timeline 2026-05-19 00:33:08 -05:00
jason ba2b631e23 documentation
Build and Push Docker Image / build (push) Successful in 6s
2026-05-11 13:28:02 -05:00
jason 3220ee70c4 financial data entry
Build and Push Docker Image / build (push) Successful in 1m4s
2026-05-11 12:04:34 -05:00
jason 5a2b581c71 Add .gitea/workflows/docker-build.yml 2026-05-11 11:48:51 -05:00
jason 3a0934bdc6 Merge pull request 'feat: custom violation types — persist, manage, and use in violation form' (#46) from claude/musing-bell into master
Reviewed-on: #46
2026-03-18 16:25:53 -05:00
jason 95d56b5018 feat: custom violation types — persist, manage, and use in violation form
Adds a full CRUD system for user-defined violation types stored in a new
violation_types table. Custom types appear in the violation dropdown alongside
hardcoded types, grouped by category, with ✦ marker and a green Custom badge.

- db/database.js: auto-migration adds violation_types table on startup
- server.js: GET/POST/PUT/DELETE /api/violation-types; type_key auto-generated
  as custom_<slug>; DELETE blocked if any violations reference the type
- ViolationTypeModal.jsx: create/edit modal with name, category (datalist
  autocomplete from existing categories), handbook chapter reference,
  description/reference text, fixed vs sliding point toggle, context field
  checkboxes; delete with usage guard
- ViolationForm.jsx: fetches custom types on mount; merges into dropdown via
  mergedGroups memo; resolveViolation() checks hardcoded then custom; '+ Add
  Type' button above dropdown; 'Edit Type' button appears when a custom type is
  selected; newly created type auto-selects; all audit calls flow through
  existing audit() helper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 16:23:21 -05:00
jason 1c4494dd28 Merge pull request 'docs: add AGENTS.md with coding, compliance, and architecture guidance' (#45) from claude/musing-bell into master
Reviewed-on: #45
2026-03-18 16:15:54 -05:00
jason 563c5043c6 docs: add AGENTS.md with coding, compliance, and architecture guidance
Establishes AI agent and developer guidelines covering data integrity rules
(immutable scoring fields, soft-delete contract, audit log append-only),
tier system canonical source, migration patterns, coding standards for both
backend and frontend, schema change checklist, PDF generation notes, and
forward-thinking development constraints.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 16:14:19 -05:00
jason 0c057ef0e4 Merge pull request 'Code review and fixes' (#44) from cpas-checking into master
Reviewed-on: #44
2026-03-18 16:01:40 -05:00
jason da36edbba6 vscode 2026-03-11 22:58:53 -05:00
jason d6585c01c6 Code review and fixes 2026-03-11 16:33:38 -05:00
jason eccb105340 Merge pull request 'feat: dashboard badge filters + Elite Standing 0–4 pts' (#43) from feature/dashboard-badge-filters into master
Reviewed-on: #43
2026-03-11 00:13:27 -05:00
jason b656c970f0 feat: stat card badges act as filters; Elite Standing = 0-4 pts 2026-03-11 00:11:42 -05:00
jason f8c0fcd441 Merge pull request 'fix: update TierWarning to use dark-mode-compatible colors' (#42) from fix/tier-warning-dark-mode into master
Reviewed-on: #42
2026-03-11 00:01:23 -05:00
jason 91ba19d038 fix: update TierWarning to use dark-mode-compatible colors 2026-03-10 16:00:24 -05:00
jason b7753d492d Merge pull request 'feature/mobile-responsive' (#41) from feature/mobile-responsive into master
Reviewed-on: #41
2026-03-08 22:22:42 -05:00
jason e0cb66af46 Add comprehensive mobile-responsive documentation 2026-03-08 22:08:21 -05:00
jason 0769a39491 Update Dashboard with responsive mobile/desktop layouts 2026-03-08 22:05:52 -05:00
jason 15a2b89350 Add mobile-optimized Dashboard component with card layout 2026-03-08 22:05:04 -05:00
jason 74492142a1 Update App.jsx with mobile-responsive navigation and layout 2026-03-08 22:04:05 -05:00
jason 602f371d67 Add mobile-responsive CSS utility file 2026-03-08 22:02:10 -05:00
jason c86b070db3 Merge pull request 'feature/version-badge' (#40) from feature/version-badge into master
Reviewed-on: #40
2026-03-08 00:56:18 -06:00
jason f4ed8c49ce feat: fetch version.json on mount, show short SHA + commit link in footer 2026-03-08 00:55:44 -06:00
jason 51bf176f96 feat: load version.json at startup, expose via /api/health 2026-03-08 00:54:58 -06:00
jason 20be30318f feat: add local dev fallback version.json stub 2026-03-08 00:45:53 -06:00
jason b02026f8a9 feat: inject git SHA + build timestamp into version.json during docker build 2026-03-08 00:45:49 -06:00
jason 87cf48e77e Update README.md 2026-03-08 00:42:48 -06:00
jason 2348336b0f Merge pull request 'fix: remove default browser body margin causing white border' (#39) from fix/remove-body-margin into master
Reviewed-on: #39
2026-03-08 00:38:56 -06:00
jason 995e607003 fix: remove default browser body margin causing white border 2026-03-08 00:38:38 -06:00
jason d613c92970 Merge pull request 'feat: add footer with copyright, live dev ticker, and Gitea repo link' (#38) from feature/footer-meta into master
Reviewed-on: #38
2026-03-08 00:36:14 -06:00
jason 981fa3bea4 feat: add footer with copyright, live dev ticker, and Gitea repo link 2026-03-08 00:35:35 -06:00
jason dc45cb7d83 Merge pull request 'docs: update README with Phase 8 features, expanded roadmap with effort ratings' (#37) from feature/readme-update into master
Reviewed-on: #37
2026-03-08 00:33:39 -06:00
jason 7326ffec6e docs: update README with Phase 8 features, expanded roadmap with effort ratings 2026-03-08 00:32:35 -06:00
jason 5f0ae959ed Update client/src/App.jsx 2026-03-08 00:25:11 -06:00
jason 917f5a24af Merge pull request 'feat: add footer with copyright, Gitea repo link, and live dev ticker' (#36) from feature/footer-meta into master
Reviewed-on: #36
2026-03-08 00:23:15 -06:00
jason 9aa27d7598 Merge pull request 'feat: enhanced demo footer — copyright, Gitea link, live dev-time ticker' (#35) from feature/demo-footer-enhanced into master
Reviewed-on: #35
2026-03-08 00:21:31 -06:00