Workflow-App/Workflow/app/api
sjcoetzeesj-coder 2f01b55d5a feat(sars): end-of-month submission tick-boxes on SARS registrations
Add a simple yes/no tick box on the far right of every table in the
SARS registrations tab, so SJ can tick off each client as the period's
return is filed and confirm nothing was missed at end of month.

- New PB collection sars_submission_flags (pbc_3539276419): company
  relation, return_type select, period (YYYYMM), submitted bool,
  submitted_at date. One row per (company, return_type, period).
- New route /api/sars-submission-flags with GET (list), POST (upsert,
  server owns submitted_at) and DELETE (Clear all for a period).
  Hard-allowlisted fields and a fixed collection id.
- Explorer gains a period banner, a submitted/total counter, a
  Submitted column on desktop and a tick box on the mobile cards,
  and a Clear all button guarded by a confirm.

The counter is scoped to the rows actually on screen. A flag can
outlive the filter that surfaced its company (a client can lose its
PAY/E number), and counting those made the banner read 4/18 while
only 3 boxes were ticked.

Period is the current month and rolls over on its own; Clear all is
what resets a type between periods. Per-month history is deliberately
out of scope for this first pass.
2026-10-20 12:30:06 +02:00
..
appointments feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
auth feat(auth): password gate replacing the IP-only middleware guard 2026-10-18 18:39:27 +02:00
bizportal/search feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
bizportal-2 feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
cipc fix(cipc): say plainly when search runs where it cannot 2026-10-20 09:00:41 +02:00
companies/list feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
compliance feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
directors/list feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
documents feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
group-report/[id] fix: resolve all 7 type errors that broke the production build 2026-10-18 15:48:50 +02:00
mail-health feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
notes feat(notes): add PATCH + DELETE /api/notes/[id] handlers 2026-09-16 14:30:46 +02:00
onboarding feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
pb/records feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
register feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
report/[type]/[id] feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
resignations feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
resolutions feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
sars-login/run feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
sars-returns feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
sars-submission-flags feat(sars): end-of-month submission tick-boxes on SARS registrations 2026-10-20 12:30:06 +02:00
shareholder-changes feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
tasks feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00