-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add DialDateCellRenderer for formatted date display in grid #143
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
base: development
Are you sure you want to change the base?
Conversation
| suppressSizeToFit: true, | ||
| cellRenderer: DialDateCellRenderer, | ||
| cellRendererParams: { | ||
| locale: 'en-US', |
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.
please, explain - let discuss
| export { DialFileName } from './components/FileName/FileName'; | ||
| export { DialFolderName } from './components/FolderName/FolderName'; | ||
|
|
||
| //Grid |
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.
please, add space
| ); | ||
| }; | ||
|
|
||
| function convertToDate(input?: AgGridValue | null): Date | null { |
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.
please, move to utils and add tests
| if (typeof input === 'string') { | ||
| const trimmed = input.trim(); | ||
|
|
||
| if (/^-?\d+$/.test(trimmed)) { |
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.
please, explain
| const content = useMemo(() => { | ||
| if (!date) return emptyPlaceholder; | ||
|
|
||
| const formatted = new Intl.DateTimeFormat(locale, { |
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.
not for admin - let's discuss
Description:
<SHORT_DESCRIPTION>
Issues:
UI changes
Checklist:
fix:,feat:,feature:,chore:,hotfix:ore2e:. If contains breaking changes then the pull request name must start withfix!:,feat!:,feature!:,chore!:,hotfix!:ore2e!:.(Issue #<TICKET_ID>)(comma-separated list of issues)New Component Checklist:
e.g.
import { Button } from '@/components/Button/Buttoninstead ofimport { Button } from '../../Button/Button