Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Error invalid link #10288

wants to merge 8 commits into from

Conversation

etiennejouan
Copy link
Contributor

Don't have access to push on #9942, so close it and open new PR here

Screenshot 2025-02-18 at 11 09 39 Screenshot 2025-02-18 at 11 09 51

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

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 and hasRecordTableCellDangerBorderScopedState 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 with hasDangerBorder prop for visual feedback
  • Implemented validation in EmailsFieldInput and LinksFieldInput using emailSchema and absoluteUrlSchema respectively
  • Added error handling callbacks in RecordInlineCell and RecordTableCell components to manage error states
  • Integrated error feedback through MultiItemFieldInput and MultiItemBaseInput components for consistent validation display

12 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings | Greptile

@khuddite
Copy link
Contributor

@etiennejouan Thanks for the update. Sorry, I have been swamped with my job recently 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No error when adding wrong link in record details
3 participants