Commit Graph

29 Commits

Author SHA1 Message Date
Guilherme Caponetto f25a22eac3
feat(ws): automate generation of types and HTTP client layer from Swagger definitions (#496)
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-08-05 12:28:53 +00:00
Paulo Rego bd66a26175
chore(ws): Upgrade vulnerable packages (#495)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-07-23 11:15:00 +00:00
Jenny 023f84b3a3
chore(ws): Add support for PF utility classes (#476)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

chore(ws): Add support for PF utility classes
2025-07-10 13:46:53 +00:00
Paulo Rego 768000ed68
chore(ws): upgrade deprecated rimraf transitive dependency (#474)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-07-09 11:16:51 +00:00
Paulo Rego 825ed0e266
chore(ws): added cspell to enforce spelling check (#469)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-07-07 11:15:22 +00:00
Guilherme Caponetto 3f7d7fb430
chore(ws): show ESLint errors from local rules on IDE (#439)
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-06-25 10:52:16 +00:00
Guilherme Caponetto dd4fa4d9a1
chore(ws): lint frontend on each commit (#440)
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-06-25 10:51:16 +00:00
Guilherme Caponetto 09f8f370a1
feat(ws): add `WorkspaceKindSummary` page and other improvements around it (#415)
* Minor refactorings and initial work for the Workspace Kind summary page

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* feat(ws): added links from workspace kind details drawer to workspace kinds details page (#1)

Signed-off-by: Paulo Rego <832830+paulovmr@users.noreply.github.com>

* Enable workspace filtering by namespace in the WorkspaceKind summary page

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Update Pause/Start action response types according to backend

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Fix WorkspaceKind logo href

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Replace placeholders for GPU data with real values in WorkspaceKind summary page

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Allow columns to be hidden in the WorkspaceTable

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* feat(ws): added links from workspace kind details drawer namespace tab to workspace kinds details page (#2)

Signed-off-by: Paulo Rego <832830+paulovmr@users.noreply.github.com>

* Improve types around Filter component

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* feat: Add Workspace Actions Context and related components

- Introduced WorkspaceActionsContext to manage workspace actions such as view, edit, delete, start, restart, and stop.
- Created WorkspaceActionsContextProvider to encapsulate the context logic and provide it to child components.
- Implemented WorkspaceKindSummary and Workspaces components to utilize the new context for handling workspace actions.
- Added polling for refreshing workspaces at a default interval.
- Enhanced WorkspaceTable to support row actions for workspaces.
- Updated various components to include sortable and filterable data fields.
- Refactored WorkspaceStartActionModal and WorkspaceStopActionModal to handle optional onActionDone callback.
- Added loading and error handling components for better user experience.

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* feat: Add buildWorkspaceList function and integrate into mockAllWorkspaces

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* refactor: Update mock data and formatting for workspace activity timestamps

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* feat: Implement usePolling hook and refactor workspace actions in Workspaces and WorkspaceKindSummary components

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* refactor: Update column key usage in ExpandedWorkspaceRow and adjust workspace actions visibility in Workspaces component

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Make mocked workspace list deterministic

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* feat: Enhance WorkspaceTable with additional columns and filtering capabilities

- Added 'namespace', 'gpu', and 'idleGpu' columns to WorkspaceTable.
- Updated filtering logic to support new columns in WorkspaceTable.
- Refactored useWorkspaces hook to remove unnecessary parameters related to idle and GPU filtering.
- Modified WorkspaceKindSummary and its expandable card to utilize new filtering functionality.
- Updated WorkspaceUtils to include a method for formatting workspace idle state.
- Adjusted Filter component to support generic filtered column types.
- Updated Workspaces page to hide new columns as needed.

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* refactor: Improve sorting functionality in WorkspaceTable by utilizing specific types for sortable columns

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Adjustments after rebase

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Format with prettier

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

---------

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
Signed-off-by: Paulo Rego <832830+paulovmr@users.noreply.github.com>
Co-authored-by: Paulo Rego <832830+paulovmr@users.noreply.github.com>
2025-06-17 11:46:09 +00:00
Paulo Rego 6f12fa7fd3
chore(ws): Upgrade vulnerable packages (#427)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-16 21:20:09 +00:00
Paulo Rego b2bee1d04b
chore(ws): Upgrade vulnerable package webpack-dev-server (#407)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-05 15:14:15 +00:00
Guilherme Caponetto 3c8c8e0c2a
feat(ws): call delete Workspace API from the frontend (#383)
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-05-27 13:44:33 +00:00
Guilherme Caponetto aa45741867
feat(ws): create new script to start frontend returning mocked data (#314)
* Enable start:dev with real data and start:dev:mock with mocked data

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Reorganize mock-related code

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Refactor FE types according to BE types and adapt the FE code accordingly

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Reorganize types

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Prepare code for create/update/patch

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Format files with prettier

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Clean up unnecessary eslint comments

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Minor adjustments after rebase

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Add error boundary

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Add EnsureAPIAvailability component

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Add instructions for running the UI with a mocked API

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

* Enable create workspace

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>

---------

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-05-13 13:11:21 +00:00
Paulo Rego 6123650b86
chore(ws): Upgrade vulnerable packages (#281)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-04-30 14:48:04 +00:00
Jenny e59def8f18
chore(ws): Upgrade to Patternfly 6.2.0 (#258)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2025-04-21 20:00:30 +00:00
Paulo Rego c69ba08e22
chore(ws): add fork-ts-checker-webpack-plugin and fix typescript errors (#250)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-04-02 15:46:33 +00:00
Paulo Rego 2bc10ecc20
feat(ws): add initial workspace creation wizard frontend (#227)
* feat(ws): add initial workspace creation wizard frontend

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>

* feat(ws): add initial workspace creation wizard frontend

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>

* card view style fixes (#2)

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

* fix(ws): fix scroll behavior with PageGroup

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

* feat(ws): add initial workspace creation wizard frontend

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>

* fix(ws): Apply flex-grow: 0 to page section

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

---------

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
Co-authored-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2025-03-19 20:44:42 +00:00
Paulo Rego 9e023c2aff
chore(ws): Upgrade vulnerable packages (#231)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-03-12 15:41:39 +00:00
Liav Weiss b981275b81
feat(ws): Notebooks 2.0 // Frontend // Workspaces details // Pod template tab #173 (#197)
* feat(ws): Notebooks 2.0 // Frontend // Workspaces details // Pod template tab #173

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces details // Pod template tab kubeflow#173

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces details // Pod template tab kubeflow#173

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

---------

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
Co-authored-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
2025-02-20 12:58:43 +00:00
Liav Weiss 055150bb2e
feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148 (#177)
* Merge notebooks-v2 into kind_logo_modification/#148 branch

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>

---------

Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
Co-authored-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
2025-01-29 18:05:51 +00:00
Paulo Rego 2c05c38aaa
chore(ws): Upgrade vulnerable packages (#187)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-01-29 18:03:52 +00:00
Jenny 9479c7bebf
feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Add MUI Support (#183)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

apply env var to activate MUI theme

remove masthead toggle, fix padding

add bottom padding

Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

apply latest changes from MR and npm run test:fix
2025-01-22 14:24:50 +00:00
ElayAharoni 2d1298913a
feat(ws): add filter to workspaces table (#157)
* Filter workspaces table

Signed-off-by: Elay Aharoni (EXT-Nokia) <elay.aharoni.ext@nokia.com>

* feat(ws) add filter to workspaces table

Signed-off-by: Elay Aharoni (EXT-Nokia) <elay.aharoni.ext@nokia.com>

---------

Signed-off-by: Elay Aharoni (EXT-Nokia) <elay.aharoni.ext@nokia.com>
Co-authored-by: Elay Aharoni (EXT-Nokia) <elay.aharoni.ext@nokia.com>
2025-01-20 13:26:02 +00:00
YosiElias 034a5303c6
feat(ws): Fetch API Infra (#167)
Signed-off-by: yelias <yossi.elias@nokia.com>
Co-authored-by: yelias <yossi.elias@nokia.com>
2025-01-06 13:13:20 +00:00
Paulo Rego 68a0060742
chore(ws): Setup eslint and jest configurations (#141)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2024-12-03 15:21:59 +00:00
Paulo Rego 68d0b91c2f
feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Live mockup (#140)
* Workspaces initial frontend

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>

* Fixing a CVE and cypress test

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>

---------

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
Co-authored-by: Eder Ignatowicz <ignatowicz@gmail.com>
2024-12-03 13:47:58 +00:00
Griffin Sullivan 9d02acfdd7
chore(ws): add cypress structure and initial tests for frontend (#73)
Signed-off-by: Griffin-Sullivan <gsulliva@redhat.com>
2024-11-08 19:59:13 +00:00
Griffin Sullivan a3a7c84b95
chore(ws): restructure frontend and setup navigation (#67)
Signed-off-by: Griffin-Sullivan <gsulliva@redhat.com>
2024-10-23 18:52:30 +00:00
Eder Ignatowicz 574ed81e65
chore(ws): remove unused libraries `react-axe` and `react-docgen-typescript-loader` (#24)
Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
2024-07-18 16:39:57 +00:00
Eder Ignatowicz b0367e8b3d
feat(ws): initial commit for frontend (#19)
* feat: client ui frontend scaffolding

In this PR:
- UI frontend scaffolding
- Github Action for frontend and backend

Most of the content of this PR is extract from https://github.com/patternfly/patternfly-react-seed/tree/v6. Thank you so much patternfly team for the seed!

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>

* Changes requested by code review

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>

* Fixing icons

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>

---------

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
2024-06-28 00:48:41 +00:00