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

Add skip option at invite team step #7960

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Add skip option at invite team step #7960

merged 2 commits into from
Oct 22, 2024

Conversation

ijreilly
Copy link
Collaborator

Closing #5925

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 pull request adds a 'Skip' option to the InviteTeam component during the onboarding process, addressing issue #5925.

  • Added a styled container StyledActionSkipLinkContainer for the skip link in /packages/twenty-front/src/pages/onboarding/InviteTeam.tsx
  • Implemented an ActionLink component with "Skip" text, allowing users to bypass team invitation
  • Integrated skip functionality with existing onSubmit handler, passing an empty email list
  • Added a key prop to RecordBoardColumnHeaderWrapper in /packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardHeader.tsx for React optimization

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

Comment on lines 227 to 229
onClick={handleSubmit(async () => {
await onSubmit({ emails: [] });
})}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider extracting this logic into a separate function for better readability and reusability

Suggested change
onClick={handleSubmit(async () => {
await onSubmit({ emails: [] });
})}
const handleSkip = async () => {
await onSubmit({ emails: [] });
};
<...>
<ActionLink onClick={handleSubmit(handleSkip)}>Skip</ActionLink>

@@ -27,7 +27,7 @@ export const RecordBoardHeader = () => {
return (
<StyledHeaderContainer id="record-board-header">
{columnIds.map((columnId) => (
<RecordBoardColumnHeaderWrapper columnId={columnId} />
<RecordBoardColumnHeaderWrapper columnId={columnId} key={columnId} />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated but needed

Copy link
Contributor

@martmull martmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ijreilly ijreilly merged commit 6dd0ebe into main Oct 22, 2024
18 checks passed
@ijreilly ijreilly deleted the skip-invite-team-step branch October 22, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants