Skip to content

Feature/74147 bring sprint sharing safe to corporate plan#23072

Open
ulferts wants to merge 6 commits intodevfrom
feature/74147-bring-sprint-sharing-safe-to-corporate-plan
Open

Feature/74147 bring sprint sharing safe to corporate plan#23072
ulferts wants to merge 6 commits intodevfrom
feature/74147-bring-sprint-sharing-safe-to-corporate-plan

Conversation

@ulferts
Copy link
Copy Markdown
Contributor

@ulferts ulferts commented May 5, 2026

Ticket

https://community.openproject.org/wp/74147

What are you trying to accomplish?

Guards sprint sharing with a corporate token requirement. The structure of the banners is a bit unusual.

If the setting for the sprint sharing is set to "Don't share" a page wide banner is displayed. If it is set to something else, the form is displayed with an inline banner. In that case, all but the "Don't share" option are disabled. This allows users to escape from another setting they might find themselves in.

TODOs

Screenshots

image

Merge checklist

  • Added/updated tests

disabled: only_fallback_allowed,
caption: sharing_option_caption(Project::RECEIVE_SHARED),
data: { "show-when-value-selected-target": "cause" }
)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

While less elegant than using the loop, I found it easier to read compared to having the abstraction of the loop also manifest and complicate the called methods for determining whether the button is disabled and which caption to show.

@ulferts ulferts force-pushed the feature/74147-bring-sprint-sharing-safe-to-corporate-plan branch from 883af75 to f5af898 Compare May 6, 2026 09:23
@ulferts ulferts marked this pull request as ready for review May 7, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant