Skip to content

Prevent workflows to be opened in side panel #12738

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 3 commits into from
Jun 19, 2025

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jun 19, 2025

Workflow views and versions are seed being opened by default into record page. Issue is that:

  • new views are set by default to side panel. Updated by copying the current opensIn value to the new view
  • users can still select side panel into their options. Disabling the button.
Capture d’écran 2025-06-19 à 16 15 34

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

Added functionality to prevent workflow-related views from being opened in side panels, with two key implementation changes:

  • Enhanced useCreateViewFromCurrentView hook to preserve the openRecordIn setting when creating new views from existing ones
  • Modified ObjectOptionsDropdownLayoutOpenInContent to disable side panel option for workflow and version objects

These changes address the UX issue where workflow views were incorrectly defaulting to side panel display.

2 files reviewed, 2 comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Jun 19, 2025

🚀 Preview Environment Ready!

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

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

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.

seems it does not fix all issues, workflowVersion view > REFRESH PAGE >click on workflow relation picker -> opens in side panel
image

@thomtrp thomtrp force-pushed the tt-block-side-panel-for-workflow-and-version branch from b9c0ab2 to 93cad9f Compare June 19, 2025 15:00
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

@martmull martmull enabled auto-merge (squash) June 19, 2025 15:07
@martmull martmull merged commit 2d6d5bf into main Jun 19, 2025
54 checks passed
@martmull martmull deleted the tt-block-side-panel-for-workflow-and-version branch June 19, 2025 15:09
abdulrahmancodes pushed a commit to abdulrahmancodes/twenty that referenced this pull request Jun 19, 2025
Workflow views and versions are seed being opened by default into record
page. Issue is that:
- new views are set by default to side panel. Updated by copying the
current opensIn value to the new view
- users can still select side panel into their options. Disabling the
button.

<img width="650" alt="Capture d’écran 2025-06-19 à 16 15 34"
src="https://github.com/user-attachments/assets/0ddc3284-0fed-404f-9c1d-225c65549fd1"
/>
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