-
Notifications
You must be signed in to change notification settings - Fork 18
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: add Advanced settings for offchain spaces. #789
Conversation
🦋 Changeset detectedLatest commit: f3c0791 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
apps/ui/src/views/Space/Settings.vue
Outdated
<UiContainerSettings | ||
v-else-if="activeTab === 'advanced'" | ||
title="Advanced" | ||
description="Office ipsum you must be muted. Boy ocean define crank new." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bonustrack will need text for this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be possible to add both a main space, and a sub spaces, it's not one or the other.
Also ideally we shouldn't allow duplicate for sub spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dirtying any fields in the new ADVANCED tab is not showing the bottom toolbar with SAVE button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like on v1, it's one or the other, both are not possible |
0a4c0c1
to
12e2a85
Compare
Updated it to have similar space validation UX as v1.
Should be fixed now.
Followed designs there, but I agree this doesn't look good, increased it to |
As Wan mentioned this replicates v1 UI that prevents configuring both parent and sub-spaces at the same time. I can remove that validation if we confirm that's what we want. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The domain name field is missing the length validation
Putting something over the char limit does not show any errors.
And it's not on v1, but maybe it's time to also put a proper domain name validation on this field, since we'll be using it automatically for the whitelabel
On v1, there's a human manual validation, but we're moving away from that for v2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When putting an invalid space name in the parent space, it shows an error.
But it we change tab, and go back to advanced, the error state is gone.
There seems to be a query to check if the space is valid (loading icon on the input on tab change), but the error state is not being restored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's broken app-wide, we should fix it properly, but not really belongs in this PR, we can workaround it by using |
What you consider proper domain name validation? I think anything "proper" would be out of scope of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When reaching the max number of sub-spaces, the sub-space form is still accepting value, and validating space name.
But does not show any error when the space name is valid. I think it should show the error about reaching the max number of sub-spaces
For now, just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With some unsaved valid changes, navigating between non-advanced tab is keeping the bottom toolbar (with the save button) always shown.
But when navigating to advanced tab, the toolbar disappear for a spit-second, before reappearing
nevermind, can not reproduce anymore with the latest updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the dirty state of the sub-spaces is only looking at the number of spaces.
Example:
- My space already 3 sub-spaces
- I remove 1 space -> SAVE button shows up
- I add another different space -> SAVE button disappear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tAck
Summary
Adding advanced settings page for offchain spaces with following options:
Had to make some adjustments from the design, as not everything was clear:
Closes: #
How to test
Screenshots