-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Db connection UI #3223
Db connection UI #3223
Conversation
…b-connection-pages
…b-connection-pages
Quick note to @seancolsen and @rajatvijay that I'd like to review this UI / flow before the release goes out (doesn't have to block merge of this PR). |
'id': db.id, | ||
'username': db.username, | ||
'port': db.port, | ||
'host': db.host, | ||
'name': db.name, | ||
'db_name': db.db_name, |
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.
@Anish9901 added attributes here required when editing
98e60ea
to
3edd094
Compare
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.
@rajatvijay Thanks for addressing all my concerns. This looks good, I had a couple small comments which do not have to be fixed in this PR.
Feel free to merge this once this comment and the comments from other reviewers are resolved.
There is a discussion around the non-editable DB UX, which isn't resolved yet. @silentninja is handling further discussion and getting it to a conclusion. I do not think this PR needs to be held. We can make changes once the discussion yields a decision. Please check with @silentninja on the status of the discussion.
|
||
async function handleSuccessfulDeleteConnection() { | ||
await reloadDatabases(); | ||
router.goto('/'); |
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 disconnecting a DB from the administration route, the url redirect should not go to the root route, it should go to the administration/db-connection
route.
import { router } from 'tinro'; | ||
import { reloadDatabases } from '@mathesar/stores/databases'; | ||
import { reflectApi } from '@mathesar/api/reflect'; | ||
import FormBox from '../admin-users/FormBox.svelte'; |
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.
Can we move this FormBox to a more common location. It currently seems to be specific to a different route, and referencing components from across routes reduces modularity.
1. moved FormBox for common/form 2. after disconnecting db from the edit db connection page the user is now redirected to the db connections list page 3. help text update in the db connection form
@silentninja this PR is now approved. Marking it as blocked on the missing documentation links. I will update the PR once you provide them & merge it. |
I fixed some merge conflicts in this PR and queued it to merge. This whole UI is about to change anyway, given our new design, so I don't think it's worth holding this PR up anymore for the docs links. |
Fixes #3161
Technical details
https://www.loom.com/share/a3e351f7e34447cfb8658b71d42e51dc
Checklist
Update index.md
).develop
branch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin