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

feat: add detailed view to Workspaces #1682

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

radekkaluzik
Copy link
Contributor

@radekkaluzik radekkaluzik commented Oct 22, 2024

Description

Implementation of Workspace detail, navigation tab, action menu and workspace hierarchy breadcrumb. Data is mocked at the moment and needs to be connected to the API when ready.
RHCLOUD-31942


Screenshots

workspace-detail

Checklist ☑️

  • PR only fixes one issue or story
  • Change reviewed for extraneous code
  • UI best practices adhered to
  • Commits squashed and meaningfully named
  • All PR checks pass locally (build, lint, test, E2E)

  • (Optional) QE: Needs QE attention (OUIA changed, perceived impact to tests, no test coverage)
  • (Optional) QE: Has been mentioned
  • (Optional) UX: Needs UX attention (end user UX modified, missing designs)
  • (Optional) UX: Has been mentioned

@radekkaluzik radekkaluzik force-pushed the RHCLOUD-31942 branch 4 times, most recently from 9e3af2b to ef32681 Compare October 23, 2024 14:41
@radekkaluzik radekkaluzik force-pushed the RHCLOUD-31942 branch 4 times, most recently from 19dd10d to 4f3bd5a Compare November 7, 2024 14:53
@radekkaluzik radekkaluzik marked this pull request as ready for review November 7, 2024 14:58
@karelhala
Copy link
Contributor

/retest

1 similar comment
@karelhala
Copy link
Contributor

/retest

}, [dispatch]);

const buildWorkspacesHierarchy = (workspaces: any[], workspaceId: string): WorkspaceData[] => {
let currentWorkspace = workspaces.find((ws) => ws.uuid === workspaceId);
Copy link
Contributor

Choose a reason for hiding this comment

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

you can probably use selectedWorkspace

Copy link
Contributor Author

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 I can do that assuming that selectedWorkspace is mainly used to get workspace name and description in the header and we don't want that to be changed after the page gets loaded.

@fhlavac
Copy link
Contributor

fhlavac commented Nov 8, 2024

Snímek obrazovky 2024-11-08 v 10 33 21

The application-level breadcrumbs do not seem to be working in the detail

It should probably contain
image

Copy link
Contributor

@karelhala karelhala left a comment

Choose a reason for hiding this comment

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

There was recently a change of UUID to ID and the database has some data, so no need to commit mocked data.

src/helpers/workspaces/workspaces-helper.ts Outdated Show resolved Hide resolved
src/helpers/workspaces/workspaces-helper.ts Outdated Show resolved Hide resolved
src/redux/actions/workspaces-actions.ts Outdated Show resolved Hide resolved
src/smart-components/workspaces/WorkspaceDetail.tsx Outdated Show resolved Hide resolved
src/smart-components/workspaces/WorkspaceDetail.tsx Outdated Show resolved Hide resolved
src/smart-components/workspaces/WorkspaceDetail.tsx Outdated Show resolved Hide resolved
src/smart-components/workspaces/WorkspaceDetail.tsx Outdated Show resolved Hide resolved
src/smart-components/workspaces/WorkspaceDetail.tsx Outdated Show resolved Hide resolved
@radekkaluzik radekkaluzik force-pushed the RHCLOUD-31942 branch 2 times, most recently from 393e9e8 to fb54a6c Compare November 11, 2024 15:57
@radekkaluzik
Copy link
Contributor Author

Snímek obrazovky 2024-11-08 v 10 33 21

The application-level breadcrumbs do not seem to be working in the detail

It should probably contain image

This will be fixed by: #1699

Copy link
Contributor

@karelhala karelhala left a comment

Choose a reason for hiding this comment

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

Looking good! Just two minor things and we are golden.

src/redux/reducers/workspaces-reducer.ts Outdated Show resolved Hide resolved
src/utilities/pathnames.js Outdated Show resolved Hide resolved
@radekkaluzik radekkaluzik requested a review from a team as a code owner November 12, 2024 15:16
@karelhala karelhala merged commit 2f1efc1 into RedHatInsights:master Nov 13, 2024
10 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.

3 participants