-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Error invalid link #10288
base: main
Are you sure you want to change the base?
Error invalid link #10288
Conversation
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.
PR Summary
This PR adds visual error feedback for invalid links and email inputs in record details, implementing red border indicators and validation handling across table and inline cell components.
- Added
hasRecordInlineCellDangerBorderScopedState
andhasRecordTableCellDangerBorderScopedState
in/packages/twenty-front/src/modules/object-record/record-inline-cell/states
and/record-table/record-table-cell/states
for error state management - Enhanced
OverlayContainer
in/packages/twenty-front/src/modules/ui/layout/overlay/components/OverlayContainer.tsx
withhasDangerBorder
prop for visual feedback - Implemented validation in
EmailsFieldInput
andLinksFieldInput
usingemailSchema
andabsoluteUrlSchema
respectively - Added error handling callbacks in
RecordInlineCell
andRecordTableCell
components to manage error states - Integrated error feedback through
MultiItemFieldInput
andMultiItemBaseInput
components for consistent validation display
12 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings | Greptile
...front/src/modules/object-record/record-field/meta-types/input/components/LinksFieldInput.tsx
Show resolved
Hide resolved
...t/src/modules/object-record/record-field/meta-types/input/components/MultiItemFieldInput.tsx
Show resolved
Hide resolved
...es/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCell.tsx
Outdated
Show resolved
Hide resolved
...y-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditMode.tsx
Outdated
Show resolved
Hide resolved
.../modules/object-record/record-table/record-table-cell/components/RecordTableCellEditMode.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/overlay/components/OverlayContainer.tsx
Outdated
Show resolved
Hide resolved
...ct-record/record-table/record-table-cell/states/hasRecordTableCellDangerBorderScopedState.ts
Show resolved
Hide resolved
...odules/object-record/record-table/record-table-cell/components/RecordTableCellFieldInput.tsx
Outdated
Show resolved
Hide resolved
...odules/object-record/record-table/record-table-cell/components/RecordTableCellFieldInput.tsx
Show resolved
Hide resolved
@etiennejouan Thanks for the update. Sorry, I have been swamped with my job recently 😔 |
Don't have access to push on #9942, so close it and open new PR here
Ok for RecordInlineCell / RecordTableCell and EmailsFieldInput / LinksFieldInput.
I think it's too complex for a so small issue (agree with you khuddite)
closes #9778
on top of #9942 from @khuddite