Skip to content

Revert "[Permissions] Force open title input for role label when empty" #12817

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Jun 24, 2025

Reverts #12710

@Weiko Weiko merged commit 6f1107e into main Jun 24, 2025
14 checks passed
@Weiko Weiko deleted the revert-12710-c--force-open-role-label-input-when-empty branch June 24, 2025 12:08
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 reverts automatic title input opening for empty role labels, removing several state management components and simplifying the code architecture.

  • Removes entire titleInputComponentState.ts and titleInputComponentInstanceContext.ts files, eliminating Recoil-based state management for title input control
  • Removes instanceId prop usage from TitleInput component, affecting WorkflowStepHeader and settings components
  • Changes placeholder text from 'Untitled Role' back to 'Role name' in multiple components
  • Removes automatic input opening behavior when role labels are empty, requiring explicit user interaction
  • Deletes SettingsRoleLabelContainerEffect.tsx which previously handled empty label detection and auto-opening

10 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

) : (
<StyledUntitledRole>{t`Untitled Role`}</StyledUntitledRole>
),
children: settingsDraftRole.label,
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: No fallback display when label is empty. Consider showing 'Untitled Role' or similar placeholder.

Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:40834

This environment will automatically shut down when the PR is closed or after 5 hours.

abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 26, 2025
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.

1 participant