Skip to content

feat: add submitted_at to application types - #33

Merged
thinkclay merged 1 commit into
mainfrom
feat/application-submitted-at
Sep 25, 2026
Merged

thinkclay merged 1 commit into
mainfrom
feat/application-submitted-at

Conversation

@blink-dev

Copy link
Copy Markdown
Contributor

No description provided.

@thinkclay thinkclay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the API contract added in Scaffald/SaaS#905: submitted_at NULL means auto-saved draft.

One note on the asymmetry — Application.submitted_at is optional (?: string | null) while EmployerApplication.submitted_at is required-nullable. That tracks how each interface already declares its neighbours, and the route's Zod schema is z.string().nullable() (present, nullable), so the optional marker is looser than the wire contract rather than wrong. Consumers that branch on !submitted_at behave the same either way.

Approving so #905 can bump the pointer.

@thinkclay
thinkclay merged commit 348bf1d into main Sep 25, 2026
@thinkclay
thinkclay deleted the feat/application-submitted-at branch September 25, 2026 21:39
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Sep 25, 2026
Scaffald/sdk#33 is merged. `Application` and `EmployerApplication` now
carry `submitted_at`, which is what the four typecheck errors on this
branch were waiting for.

Co-Authored-By: Claude Opus 5 <[email protected]>
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Sep 25, 2026
* fix(applications): record when an application is submitted

* chore(sdk): bump the submodule to 348bf1d for submitted_at

Scaffald/sdk#33 is merged. `Application` and `EmployerApplication` now
carry `submitted_at`, which is what the four typecheck errors on this
branch were waiting for.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Clay Unicorn <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
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