Skip to content

feat: make document created date optional and add clearable picker#467

Merged
paulgessinger merged 1 commit intomainfrom
feat/optional-created-date
Feb 15, 2026
Merged

feat: make document created date optional and add clearable picker#467
paulgessinger merged 1 commit intomainfrom
feat/optional-created-date

Conversation

@paulgessinger
Copy link
Owner

@paulgessinger paulgessinger commented Feb 15, 2026

Make the created field nullable in DocumentModel. Update initializers and
state handling to default to nil when the user chooses not to include a date.
Add a new ClearableDatePickerView that shows an optional date picker with
a clear button and optional title. Replace the old date picker in
CreateDocumentView with this component, keeping logic to remember whether a
date was set. Adjust networking code to skip the created field when it is
nil, and update API serialization accordingly. Add preview for the new view.
This removes mandatory date entry, improves UX with a clearable picker,
and keeps data consistency across the app.

Closes #469

@paulgessinger paulgessinger force-pushed the feat/optional-created-date branch from ef78d72 to 32348d9 Compare February 15, 2026 21:16
@paulgessinger paulgessinger enabled auto-merge (squash) February 15, 2026 21:18
@paulgessinger paulgessinger added this to the v1.10 milestone Feb 15, 2026
Make the `created` field nullable in `DocumentModel`. Update initializers and
state handling to default to `nil` when the user chooses not to include a date.
Add a new `ClearableDatePickerView` that shows an optional date picker with
a clear button and optional title. Replace the old date picker in
`CreateDocumentView` with this component, keeping logic to remember whether a
date was set. Adjust networking code to skip the created field when it is
nil, and update API serialization accordingly. Add preview for the new view.
This removes mandatory date entry, improves UX with a clearable picker,
and keeps data consistency across the app.
@paulgessinger paulgessinger force-pushed the feat/optional-created-date branch from 32348d9 to 211bd61 Compare February 15, 2026 21:27
@paulgessinger paulgessinger enabled auto-merge (squash) February 15, 2026 21:27
@paulgessinger paulgessinger merged commit 685e65c into main Feb 15, 2026
8 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.

Allow creating documents without created date

1 participant