Skip to content
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

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

JoaoPedroPP
Copy link
Contributor

@JoaoPedroPP JoaoPedroPP commented Jan 21, 2025

Fixes

KFLUXUI-279

Description

Replace all occurrences of Workspace in UI by Namespace

Type of change

  • Feature
  • Bugfix
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Screen shots / Gifs for design review

Current
image

After change
image

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.14%. Comparing base (39c0ff7) to head (c6c4a9f).
Report is 11 commits behind head on main.

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     
Flag Coverage Δ
unittests 80.14% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JoaoPedroPP JoaoPedroPP marked this pull request as ready for review January 21, 2025 20:07
@JoaoPedroPP
Copy link
Contributor Author

I searched in other places of the UI but apparently this is the only place beside the Workspace switcher, that should have another story.

@JoaoPedroPP JoaoPedroPP force-pushed the KFLUXUI-279 branch 3 times, most recently from 16011d6 to 7993236 Compare January 22, 2025 12:18
@CryptoRodeo
Copy link
Contributor

Would any of these qualify for an update?

  • src/components/PageAccess/NoAccessState.tsx
  • src/components/ReleaseService/ReleasePlan/TriggerRelease/TriggerReleaseForm.tsx
  • src/components/ReleaseService/ReleasePlanAdmission/ReleasePlanAdmissionListHeader.tsx
  • src/components/UserAccess/UserAccessForm/EditAccessPage.tsx
  • src/components/UserAccess/UserAccessForm/UserAccessForm.tsx
  • src/components/UserAccess/UserAccessForm/UsernameSection.tsx
  • src/utils/pipeline-utils.ts

@JoaoPedroPP JoaoPedroPP force-pushed the KFLUXUI-279 branch 2 times, most recently from 51ca090 to f93a288 Compare January 24, 2025 22:02
@JoaoPedroPP
Copy link
Contributor Author

JoaoPedroPP commented Jan 24, 2025

Would any of these qualify for an update?

* `src/components/PageAccess/NoAccessState.tsx`

* `src/components/ReleaseService/ReleasePlan/TriggerRelease/TriggerReleaseForm.tsx`

* `src/components/ReleaseService/ReleasePlanAdmission/ReleasePlanAdmissionListHeader.tsx`

* `src/components/UserAccess/UserAccessForm/EditAccessPage.tsx`

* `src/components/UserAccess/UserAccessForm/UserAccessForm.tsx`

* `src/components/UserAccess/UserAccessForm/UsernameSection.tsx`

* `src/utils/pipeline-utils.ts`

They certainly qualify! Thanks for the close look @CryptoRodeo :)

Code updated

CryptoRodeo
CryptoRodeo previously approved these changes Jan 27, 2025
Copy link
Contributor

@CryptoRodeo CryptoRodeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -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.`}
Copy link
Contributor

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}`);
Copy link
Contributor

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}`
Copy link
Contributor

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`} />}
Copy link
Contributor

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?

Copy link
Contributor Author

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`} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@JoaoPedroPP JoaoPedroPP added this pull request to the merge queue Feb 7, 2025
@sahil143 sahil143 removed this pull request from the merge queue due to a manual request Feb 7, 2025
@sahil143 sahil143 merged commit 29cfa26 into konflux-ci:main Feb 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants