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

feat(fe2): change submit logic for access settings before embedding #2278

Conversation

andrewwallacespeckle
Copy link
Contributor

Description & motivation

Previously, when you tried to embed a Private project, you would be greeted with a Dialog warning that this was not possible, and a select which allowed you to change the project access (if you are an owner).

This updated instantly, so as soon as you selected "Public", the project was updated.

This has been changed, and a save button introduced. Now, when you change Status the Save button will be enabled, allowing the user to save.

Copy link

linear bot commented May 22, 2024

@andrewwallacespeckle andrewwallacespeckle marked this pull request as ready for review May 22, 2024 09:17
@benjaminvo
Copy link
Contributor

benjaminvo commented May 23, 2024

Everything works fine! Some design feedback: Let's only show the copy "To change this setting [...]" if you're not the owner + let's output it below the select input instead which I assume will be disabled.

I don't have a private project where I'm not an owner so I can't test this.

CleanShot 2024-05-23 at 13 08 41@2x

Copy link
Contributor

@benjaminvo benjaminvo left a comment

Choose a reason for hiding this comment

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

Posted feedback in separate comment

@andrewwallacespeckle
Copy link
Contributor Author

image

@benjaminvo
Copy link
Contributor

@andrewwallacespeckle Maybe I wasn't clear.

I want the blue alert to always say "Model embedding does not work [...]". And then under the select input write the text "To change this setting [...]" if user is not Owner. And btw that copy can be shortened to "You must be an Owner of this project to change this setting".

@andrewwallacespeckle
Copy link
Contributor Author

Sorry, I misread your comment.

Now, when you are not an owner:
image

And when you are an owner:
image

Copy link
Contributor

@benjaminvo benjaminvo left a comment

Choose a reason for hiding this comment

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

nice!

@andrewwallacespeckle andrewwallacespeckle merged commit 4b0ac38 into main May 24, 2024
20 of 23 checks passed
@andrewwallacespeckle andrewwallacespeckle deleted the andrew/web-878-change-submit-logic-for-access-settings-before-embedding branch May 24, 2024 12:24
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.

5 participants