Skip to content

Commit dc5ad97

Browse files
Merge branch 'feat/userroles' of github.com:supertokens/dashboard into feat/userroles-apispec
2 parents d3cc14b + 8f67045 commit dc5ad97

File tree

104 files changed

+4578
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+4578
-94
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,70 @@
3636
- [ ] Android
3737
- [ ] iOS (including iPadOS)
3838

39+
### Feature tests:
40+
41+
- [ ] Search
42+
- [ ] Search with anything that results in an empty state in the UI (Should show an empty state explaining that there were no results)
43+
- [ ] Search with an empty string (Dashboard should not allow this)
44+
- [ ] Email search
45+
- [ ] Serach for "e" with email tag and then delete the tag (Should show one user initially then show all with pagination enabled)
46+
- [ ] Search for "test" with the email tag (Expect 14 results)
47+
- [ ] Search with "g" for email tag (Expect 3 results)
48+
- [ ] Search with "g" and "p" for email tag (Expect 3 results)
49+
- [ ] Search with "g" and "t" for email tag, then delete "t" (Expect 17 results initially, then 3)
50+
- [ ] Search with "@" for email tag (Expect 0 results (This is because at the time of adding this case we would only check for the start of the email or the domain and not any character inside the full email))
51+
- [ ] Search for "passwordless+ABC@gmail.com" with email tag (Expect 1 result)
52+
- [ ] Search for "debugging@supertokens.com" with email tag (Expect 3 results)
53+
- [ ] Search for "gmail" with email tag (Expect 3 results)
54+
- [ ] Search for "ABC" with email tag (Expect 0 results)
55+
- [ ] Search for "a" with email tag (Expect 0 results (This is because at the time of adding this we only check if the email starts with the query and not contains))
56+
- [ ] Search for "team" with email tag (Expect 0 results)
57+
- [ ] Search for "782" with email tag (Expect 1 result)
58+
- [ ] Phone search
59+
- [ ] Search for "1" with phone tag (Expect 3 results)
60+
- [ ] Search for "+1" with phone tag (Expect 3 results)
61+
- [ ] Search for "91" with phone tag (Expect 1 result)
62+
- [ ] Search for "291" with phone tag (Expect 0 results)
63+
- [ ] Search for "+12" with phone tag (Expect 2 results)
64+
- [ ] Search for "5" with phone tag (Expect 0 results)
65+
- [ ] Search for "1(" with phone tag (Expect 0 results (This is because we render phone numbers with brackets so users may end up searching with that))
66+
- [ ] Provider search
67+
- [ ] Search for "g" with provider tag (Expect 5 results)
68+
- [ ] Search for "gi" with provider tag (Expect 2 results)
69+
- [ ] Search for "t" with provider tag (Expect 0 results)
70+
- [ ] Search for "google" with provider tag (Expect 3 results)
71+
- [ ] Combination testing
72+
- [ ] Search with "g" for email tag and "g" for provider tag (Expect 1 result)
73+
- [ ] Search for "github" with provider tag and "782" with email tag (Expect 1 result)
74+
- [ ] Search for "github" and "google" with provider tag (Expect 5 results)
75+
- [ ] Search for "j" and "g" with email tag (Expect 6 results)
76+
- [ ] Search for "1" and "91" with phone tag (Expect 4 results)
77+
- [ ] Search with "google" for provider tag and "1" for phone tag (Expect 0 results)
78+
- [ ] Search for "g" with email tag and "1" with phone tag (Expect 0 results)
79+
- [ ] Search for "k" with provider and "a", "g", "b" (in that order) for email (Expect 0 resutls)
80+
- [ ] General UI testing
81+
- [ ] Test that emty state renders fine (no overflow, no UI glitches, responsiveness etc)
82+
- [ ] Test that the list renders fine (no overflow, no UI glitches, responsiveness etc)
83+
- [ ] Test that pagination is visiable and usable (There should be at least 2 pages worth of users)
84+
- [ ] Test that the list only shows 10 users at a time
85+
- [ ] Test that for users with no accounts linked the auth method i nthe list is correct
86+
- [ ] Test that for users with multiple login methods, the auth method shows correctly
87+
- [ ] Test that search is visible if the feature is enabled
88+
- [ ] Multi tenant testing
89+
- [ ] Create one tenant (tenant1), and add 3 users to them. In the dashboard, when you switch to that tenant, it should list those users.
90+
- [ ] Create a user in tenant1 and using backend sdk's(Go, Python, Node) associate the user to a different tenant and select that tenant on the dashboard from the tenants dropdown, it should show that user in the list
91+
- [ ] User Roles and Permissions testing
92+
- [ ] UserRoles page testing
93+
- [ ] Test the empty state when there are no roles created on the roles page.
94+
- [ ] Test creation, delete and updating functionality of the roles are working properly.
95+
- [ ] Test pagination of the roles list with more than 2 or 3 pages of data atleast.
96+
- [ ] Test that the permissions per role are rendering properly without overflowing the parent table.
97+
- [ ] Check for the `feature_not_enabled` state on both userDetails page and user roles page.
98+
- [ ] userDetails page testing with respect to roles and permissions.
99+
- [ ] Test adding and deleting roles to a user.
100+
- [ ] Test the roles search feature and make sure that the list does not include any assigned roles in it.
101+
- [ ] Test by associating the user with multiple tenants and assigning roles to the user in each tenant separately.
102+
39103
## Documentation changes
40104

41105
(If relevant, please create a PR in our [docs repo](https://github.com/supertokens/docs), or create a checklist here highlighting the necessary changes)

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10+
## [0.9.0] - 2023-11-17
11+
12+
- Adds user roles and permissions feature to dashboard.
13+
14+
## [0.8.6] - 2023-11-15
15+
16+
- Adds click action to the entire user row.
17+
1018
## [0.8.5] - 2023-10-5
1119

1220
- Fixes showing email verification UI even though it's not initialised.

build/asset-manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@
88
"static/media/favicon.ico": "/static/media/favicon.ico",
99
"static/media/ST_icon_light_theme.svg": "/static/media/ST_icon_light_theme.svg",
1010
"static/media/ST_full_logo_dark_theme.svg": "/static/media/ST_full_logo_dark_theme.svg",
11+
"static/media/secuity-key.svg": "/static/media/secuity-key.svg",
12+
"static/media/refresh.svg": "/static/media/refresh.svg",
1113
"static/media/ST_full_logo_light_theme.svg": "/static/media/ST_full_logo_light_theme.svg",
1214
"static/media/ST_icon_dark_theme.svg": "/static/media/ST_icon_dark_theme.svg",
1315
"static/media/auth-method.svg": "/static/media/auth-method.svg",
1416
"static/media/logo.svg": "/static/media/logo.svg",
17+
"static/media/plus-square.svg": "/static/media/plus-square.svg",
18+
"static/media/roles-and-permissions.svg": "/static/media/roles-and-permissions.svg",
19+
"static/media/no-results.svg": "/static/media/no-results.svg",
1520
"static/media/email.svg": "/static/media/email.svg",
21+
"static/media/user-managment.svg": "/static/media/user-managment.svg",
1622
"static/media/lock.svg": "/static/media/lock.svg",
1723
"static/media/checkmark-green.svg": "/static/media/checkmark-green.svg",
24+
"static/media/plus.svg": "/static/media/plus.svg",
25+
"static/media/green-check.svg": "/static/media/green-check.svg",
1826
"static/media/clear.svg": "/static/media/clear.svg",
1927
"static/media/provider-apple.svg": "/static/media/provider-apple.svg",
2028
"static/media/search.png": "/static/media/search.png",
@@ -37,6 +45,7 @@
3745
"static/media/trash-opened.svg": "/static/media/trash-opened.svg",
3846
"static/media/checkmark.svg": "/static/media/checkmark.svg",
3947
"index.html": "/index.html",
48+
"static/media/loader.svg": "/static/media/loader.svg",
4049
"static/media/star_sparkle.svg": "/static/media/star_sparkle.svg",
4150
"static/media/close.svg": "/static/media/close.svg",
4251
"static/media/copy.svg": "/static/media/copy.svg",
@@ -53,10 +62,14 @@
5362
"static/media/chevron-up-selected.svg": "/static/media/chevron-up-selected.svg",
5463
"static/media/chevron-right.svg": "/static/media/chevron-right.svg",
5564
"static/media/people.svg": "/static/media/people.svg",
65+
"static/media/arrow-down.svg": "/static/media/arrow-down.svg",
66+
"static/media/hamburger-menu.svg": "/static/media/hamburger-menu.svg",
5667
"static/media/provider-facebook.svg": "/static/media/provider-facebook.svg",
5768
"static/media/Union-yellow.png": "/static/media/Union-yellow.png",
5869
"static/media/Union.png": "/static/media/Union.png",
5970
"static/media/checkmark-yellow.svg": "/static/media/checkmark-yellow.svg",
71+
"static/media/spinner.svg": "/static/media/spinner.svg",
72+
"static/media/cross.svg": "/static/media/cross.svg",
6073
"static/media/triangle-down.svg": "/static/media/triangle-down.svg",
6174
"main.css.map": "/static/css/main.css.map",
6275
"bundle.js.map": "/static/js/bundle.js.map",

build/static/css/main.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/static/css/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/static/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/static/js/bundle.js.LICENSE.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ object-assign
5252
* LICENSE file in the root directory of this source tree.
5353
*/
5454

55+
/**
56+
* React Router DOM v6.3.0
57+
*
58+
* Copyright (c) Remix Software Inc.
59+
*
60+
* This source code is licensed under the MIT license found in the
61+
* LICENSE.md file in the root directory of this source tree.
62+
*
63+
* @license MIT
64+
*/
65+
5566
/**
5667
* React Router v6.3.0
5768
*

build/static/js/bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/static/media/arrow-down.svg

Lines changed: 3 additions & 0 deletions
Loading

build/static/media/cross.svg

Lines changed: 3 additions & 0 deletions
Loading

build/static/media/green-check.svg

Lines changed: 3 additions & 0 deletions
Loading

build/static/media/hamburger-menu.svg

Lines changed: 6 additions & 0 deletions
Loading

build/static/media/loader.svg

Lines changed: 4 additions & 0 deletions
Loading

build/static/media/no-results.svg

Lines changed: 3 additions & 0 deletions
Loading

build/static/media/plus-square.svg

Lines changed: 3 additions & 0 deletions
Loading

build/static/media/plus.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)