[go: up one dir, main page]

Skip to content

Remember previously selected fork form visibility level and only reset if option is disabled

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

In this MR !62306 (merged), we changed the behaviour of the visibility level. It was to resolve the issue of a disabled radio option being selected 😱

🐛 Before After (!62306 (merged))
incorrect-visibility-selected solved-radio-option

Improvement 1

Let's improve this UX as remembering a previously selected visibility level is a nice convenience for our users 👍 Whereby if the previously selected visibility level is allowed, it will not reset. And it will only reset (to the default "Private") if the previously selected visibility level is a disabled option.


Optionally, we could also set it to null (no option selected) when namespace is changed 🤔

Improvement 2

In this MR > !62340 (merged), when a restrictedVisibilityLevel is selected, it will reset to null. Let's make the UX smarter.

A. Initialize it to the visibility level of the project; unless it's restricted, in which case default to the highest visibility level (Private > Internal > Public)

B. When namespace changes, it remembers the previous selected visibility level taking into account of the restrictedVisibilityLevel

Edited by 🤖 GitLab Bot 🤖