-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Permission groups section #406
Permission groups section #406
Conversation
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.
A few things:
- PG section is not visible in navigator
- These buttons are not aligned properly
- Bulk actions do not work
- react throws error when checkbox is clicked
- missing mutation
- Table cells width should be fixed, because selecting users cause cells to expand
- Selecting users should apply a proper style for the table row
- The text should be centered and padding from both top and bottom should be increased.
- Since we enabled support for
?.
operator, new code should not usemaybe
so we slowly move away from this pattern. - Sorting users in group details view doesn't work
src/permissionGroups/components/PermissionGroupCreatePage/PermissionGroupCreatePage.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/views/PermissionGroupCreate/PermissionGroupCreate.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/views/PermissionGroupDetails/PermissionGroupDetails.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/views/PermissionGroupDetails/PermissionGroupDetails.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/views/PermissionGroupDetails/PermissionGroupDetails.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/views/PermissionGroupList/PermissionGroupList.tsx
Outdated
Show resolved
Hide resolved
3b1d208
to
adf0035
Compare
Codecov Report
@@ Coverage Diff @@
## master #406 +/- ##
==========================================
- Coverage 72.39% 72.19% -0.20%
==========================================
Files 658 683 +25
Lines 7441 7705 +264
Branches 1227 1290 +63
==========================================
+ Hits 5387 5563 +176
- Misses 1819 1886 +67
- Partials 235 256 +21
Continue to review full report at Codecov.
|
Blocked by #453 |
0944127
to
c48bd55
Compare
3506484
to
adb3940
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.
Some things are missing or should be refactored:
- It would also be good to add warehouse list to quick search
- Apply eslint and prettier
src/components/AccountPermissionGroups/AccountPermissionGroups.tsx
Outdated
Show resolved
Hide resolved
src/components/AccountPermissionGroups/AccountPermissionGroups.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/components/AssignMembersDialog/AssignMembersDialog.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/components/AssignMembersDialog/AssignMembersDialog.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/components/AssignMembersDialog/AssignMembersDialog.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/components/PermissionGroupMemberList/PermissionGroupMemberList.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/components/PermissionGroupMemberList/PermissionGroupMemberList.tsx
Outdated
Show resolved
Hide resolved
src/permissionGroups/views/PermissionGroupDetails/PermissionGroupDetails.tsx
Outdated
Show resolved
Hide resolved
@@ -20,6 +20,9 @@ const messages = defineMessages({ | |||
}, | |||
tooSimilar: { | |||
defaultMessage: "These passwords are too similar" | |||
}, | |||
unique: { | |||
defaultMessage: "This needs to be unique" |
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.
I'm not sure if this error should have generic error message 🤷♂️
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.
Do you think it should be "Name should be unique"?
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.
Depends what should be unique, "name" and "slug" could have different messages. It would be nice to know what field(s) could throw this error and make proper function for each field.
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 could be thrown only by name field so I don't think separate functions are needed. Change to 'Name needs to be unique'?
d98d5dd
to
37a1f7f
Compare
Note: something weird happened to schema, prettier maybe? |
src/permissionGroups/components/MembersErrorDialog/MembersErrorDialog.tsx
Outdated
Show resolved
Hide resolved
508da57
to
fa4d8f2
Compare
I want to merge this change because...
adds frontend for saleor/saleor#5176
To be used with API branch: feature/permission-groups
Screenshots
Pull Request Checklist
.pot
file.