feat: add date_only collection field type#101
Merged
liamwalder merged 1 commit intodevelopfrom Mar 26, 2026
Merged
Conversation
Split date fields into date (datetime) and date_only (date without time) to give users granular control over date storage and display. - Add date_only to CollectionFieldType and isDateFieldType helper - Render date_only inputs as <input type="date"> (vs datetime-local) - Add clampDateInputValue utility for robust date input validation - Add formatDateOnly display function (no timezone conversion) - Filter date_only format presets to exclude time-related options - Update conditional visibility, filters, CSV, and MCP tools Made-with: Cursor
liamwalder
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new
date_onlycollection field type that stores dates without time components, giving users granular control over whether a field captures a full datetime or just a date. The existingdatetype remains unchanged as datetime.Changes
date_onlytoCollectionFieldTypeunion andisDateFieldTypehelper for DRY type checksdate_onlyinputs as<input type="date">(vsdatetime-localfor datetime fields)clampDateInputValueutility to validate and clamp year/month/day while typingformatDateOnlydisplay function that formats without timezone conversiondate_onlyfields to exclude time-related optionsdatelabel to "Date & Time" and labeldate_onlyas "Date" across UITest plan
Made with Cursor