-
Notifications
You must be signed in to change notification settings - Fork 6
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: show a confirmation text when saving a session #2856
Conversation
You can access the deployment of this PR at https://renku-ci-ui-2856.dev.renku.ch |
24d7dc8
to
d358886
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.
Very nice! 🎉
@@ -295,8 +308,8 @@ function SaveSessionBody({ | |||
undefined | |||
); | |||
const saveText = saving ? ( | |||
<span> | |||
<Loader className="me-1" inline size={16} /> | |||
<span className="d-flex gap-2"> |
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.
We should avoid doing this, the alignment is not correct here.
When inline
is passed to <Loader>
, it is meant to be inserted in the normal flow of a text. Separation can be achieved by using margin classes, e.g. me-1
or ms-1
.
<span>
<Loader className="me-2" inline size={16} />
Saving Session
</span>
@@ -53,6 +52,7 @@ import { | |||
useRenkuSaveMutation, | |||
} from "../sidecarApi"; | |||
import styles from "./SessionModals.module.scss"; | |||
import { SuccessAlert } from "../../../components/Alert"; |
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.
fix import order (vscode "Organize imports" command)
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.
LGTM 🌟
…ary text when saving session, fix spacing in button when save a session
76cb5f3
to
c3af9d1
Compare
Tearing down the temporary RenkuLab deplyoment for this PR. |
PR to introduce a confirmation message upon a successful session save. Additionally, it addresses minor issues, such as removing duplicate "saving session" messages and adjusting the spacing between text and the icon in the button.
Fix #2792
/deploy renku=renku-ui-3.14.1 #persist