-
Notifications
You must be signed in to change notification settings - Fork 7
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
Save user to backend #1027
base: main
Are you sure you want to change the base?
Save user to backend #1027
Conversation
Sigrid maintainability feedback✅ You wrote maintainable code and achieved your objective of 3.5 stars Show detailsSigrid compared your code against the baseline of 2025-02-13. 👍 What went well?
👎 What could be better?
📚 Remaining technical debt
View this system in Sigrid** to explore your technical debt ⭐️ Sigrid ratings
💬 Did you find this feedback helpful?We would like to know your thoughts to make Sigrid better. |
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #1027 +/- ##
==========================================
+ Coverage 89.85% 90.30% +0.44%
==========================================
Files 249 250 +1
Lines 13073 13145 +72
Branches 1328 1352 +24
==========================================
+ Hits 11747 11870 +123
+ Misses 1232 1181 -51
Partials 94 94 ☔ View full report in Codecov by Sentry. |
@oliver3 Played around for a few minutes and noticed two things: 2. For password length, six Abacus emoji (🧮🧮🧮🧮🧮🧮) is accepted as being 12 characters long. It's probably worth fixing to avoid the discussion "But what is a character?" for the minimum length requirement of passwords. |
We'll revisit the password in #1021 (comment) and I've added a comment there that we'll go for printable ASCII and space characters. |
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, two questions:
- Do we also want a Playwright e2e test for this functionality? (cc @jschuurk-kr)
- To be considered for a new issue in this epic: it looks like the user list page is currently (implicitly) sorted by user id, maybe sorting by role and then by username makes more sense? It looks like that is the sorting order in the Figma design.
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.
Looks good, great start!
- Agree with @praseodym on the sorting order on the overview page
- When saving/creating a user (on a slow connection), it takes quite some time for the form to be submitted. This is a bit confusing, it seems as if nothing is happening. Can we blank out the entire page or disable the submit button?
I think adding one happy path e2e test makes sense. All the rest I'd expect us to cover with component tests and backend integration tests. |
This PR will resolve #983
A new
useQueryParam
hook to more easily retrieve and clear a message sent through the url query stringSave the user from the
UserCreateDetailsPage
, show an error if it occursShow success message on the user list page
NavBar management links for all
/users*
pagesAdd
UserCreate.test.tsx
that tests the flow through the pages using the context and the api call at the endNB