-
Notifications
You must be signed in to change notification settings - Fork 0
CRAFT-1987: chore(docs): RangeCalendar engineering docs
#800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRAFT-1987: chore(docs): RangeCalendar engineering docs
#800
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
RangeCalendar engineering docsRangeCalendar engineering docs
Add comprehensive engineering documentation for the RangeCalendar component including implementation guides, working with date values, usage examples, and consumer-facing test patterns. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Removed unused waitFor import from @testing-library/react that was causing a linting error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
d757af3 to
b32c19c
Compare
tylermorrisford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, very nice indeed
stephsprinkle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits. Generally, I have a question about how the range calendar is being displayed. Sometimes it takes up the entire width of the container, other times it's part of the container, then it's wildin' with the multi-month display. Obviously not a docs problem (or maybe it is??). @ByronDWall @valoriecarli would love your thoughts.
|
|
||
| return ( | ||
| <Stack direction="column" gap="400"> | ||
| <Text textStyle="sm" color="neutral.11"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want all of these informational blurbs to be bolded? Or at least have them all be consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am leaning towards bold, but after further inspection, I am going to add this to the misc ticket to ensure whatever decision we make is consistent
I see we have a few scattered about, so ill straighten it out and give them all a docs label (regardless of category).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok let's tackle it as a larger effort 👍
| } | ||
| }} | ||
| /> | ||
| <Text textStyle="sm">{selectedRange}</Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
completed with f6cb159, there might be other places to update as well if youd like them all to be consistent.
@stephsprinkle .. after a cursory review, i see that this pattern is ofc replicated in Ill go ahead and create a ticket to follow up on this |
Summary
range-calendar.dev.mdx)range-calendar.docs.spec.tsx)parseZonedDateTime,today, andgetLocalTimeZoneutilities from@internationalized/datefor interactive documentation examplesDocumentation Contents
Engineering Guide (
range-calendar.dev.mdx)Getting Started:
Working with Date Values:
CalendarDatefrom@internationalized/date)RangeValue<DateValue>)Usage Examples:
visibleDurationsinglevsvisible)minValue,maxValue)isDateUnavailableallowsNonContiguousRangesfirstDayOfWeekNimbusI18nProviderComponent Requirements:
Common Patterns:
Documentation Tests (
range-calendar.docs.spec.tsx)Consumer-facing test examples covering:
Live Code Editor Updates
Added exports needed for live documentation examples:
parseZonedDateTimetodaygetLocalTimeZoneTest plan
pnpm test packages/nimbus/src/components/range-calendar/range-calendar.docs.spec.tsx.dev.mdxdocumentation at build time🤖 Generated with Claude Code