-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore(KFLUXUI-279): replace Workspace by Namespace only in the UI #94
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #94 +/- ##
========================================
Coverage 80.14% 80.14%
========================================
Files 570 570
Lines 21536 21536
Branches 5076 5332 +256
========================================
Hits 17260 17260
+ Misses 4251 4250 -1
- Partials 25 26 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I searched in other places of the UI but apparently this is the only place beside the Workspace switcher, that should have another story. |
16011d6
to
7993236
Compare
Would any of these qualify for an update?
|
51ca090
to
f93a288
Compare
They certainly qualify! Thanks for the close look @CryptoRodeo :) Code updated |
f93a288
to
962e31d
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.
LGTM
962e31d
to
129429b
Compare
6e559e7
to
bdc4759
Compare
@@ -48,7 +48,7 @@ const NoAccessState: React.FC<React.PropsWithChildren<NoAccessStateProps>> = ({ | |||
/> | |||
<EmptyStateBody> | |||
{body || | |||
`Ask the administrator or the owner of the ${workspace} workspace for access permissions.`} | |||
`Ask the administrator or the owner of the ${workspace} namespace for access permissions.`} |
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.
Change the variable as well. It does not make sense otherwise.
@@ -24,7 +24,7 @@ const EditAccessPage: React.FC<React.PropsWithChildren<unknown>> = () => { | |||
? [{ model: SpaceBindingRequestModel, verb: 'update' }] | |||
: [{ model: SpaceBindingRequestModel, verb: 'create' }]; | |||
|
|||
useDocumentTitle(`Edit access to workspace, ${workspace} | ${FULL_APPLICATION_TITLE}`); | |||
useDocumentTitle(`Edit access to namespace, ${workspace} | ${FULL_APPLICATION_TITLE}`); |
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.
Same here.
@@ -29,12 +29,12 @@ export const UserAccessForm: React.FC<React.PropsWithChildren<Props>> = ({ | |||
return ( | |||
<PageLayout | |||
title={ | |||
edit ? `Edit access to workspace, ${workspace}` : `Grant access to workspace, ${workspace}` | |||
edit ? `Edit access to namespace, ${workspace}` : `Grant access to namespace, ${workspace}` |
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.
Same here.
@@ -43,14 +43,14 @@ const UserAccessEmptyState: React.FC< | |||
title="Grant user access" | |||
> | |||
<EmptyStateBody> | |||
See a list of all the users that have access to your workspace. | |||
See a list of all the users that have access to your namespace. | |||
</EmptyStateBody> | |||
<EmptyStateActions> | |||
<ButtonWithAccessTooltip | |||
variant="primary" | |||
component={(props) => <Link {...props} to={`/workspaces/${workspace}/access/grant`} />} |
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.
should not it be changed in link as well?
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.
According to @sahil143 there will be a future ticket only to remove this kind of mention
@@ -120,7 +120,7 @@ export const UserAccessListView: React.FC<React.PropsWithChildren<unknown>> = () | |||
<Link {...props} to={`/workspaces/${workspace}/access/grant`} /> |
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.
Same here
6e559e7
to
02228b8
Compare
02228b8
to
c6c4a9f
Compare
Fixes
KFLUXUI-279
Description
Replace all occurrences of
Workspace
in UI byNamespace
Type of change
Screen shots / Gifs for design review
Current
![image](https://private-user-images.githubusercontent.com/15612547/405369850-0146f5ea-a49a-47ba-93c6-3e07f5e9261e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTgyODYsIm5iZiI6MTczOTYxNzk4NiwicGF0aCI6Ii8xNTYxMjU0Ny80MDUzNjk4NTAtMDE0NmY1ZWEtYTQ5YS00N2JhLTkzYzYtM2UwN2Y1ZTkyNjFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDExMTMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmYjYzMjczOWQ4MmQxNTNjYzBlY2JjYmFmYTk2OTQ4OThmNzE2NWQzN2FkMjJiN2JhYTJlMTIzMTA1YjM1YWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4UgdByd8vZjEhz-6iEk3lQU5kRODZSRk2NnzhkXiMVM)
After change
![image](https://private-user-images.githubusercontent.com/15612547/405369581-13bbca9f-bd6c-4a01-815d-d2c60bfb6514.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTgyODYsIm5iZiI6MTczOTYxNzk4NiwicGF0aCI6Ii8xNTYxMjU0Ny80MDUzNjk1ODEtMTNiYmNhOWYtYmQ2Yy00YTAxLTgxNWQtZDJjNjBiZmI2NTE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDExMTMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmZjU3MTk0NTljOTMxMmQxZTQ5YzgzNzRmYjUxMzRhMGFlNjk3ZWViYWQwNTE2ODcyOWFkYzhkYzQ3MzkyZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.A8ro3sDnI_7TxotHJDjydlKC8tfUTrWGWLILIpL1t0c)
Browser conformance: