Commit Graph

102 Commits

Author SHA1 Message Date
Dominik Kawka aa3f270e54
Merge branch 'notebooks-v2' into workspaceKindSummary
Signed-off-by: Dominik Kawka  <31955648+dominikkawka@users.noreply.github.com>
2025-07-24 15:30:25 +01:00
DominikKawka dcf488596d resolved merge conflict
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-24 15:26:34 +01:00
Jenny a721c5073d
fix(ws): Apply sentence case to text elements across UI (#497)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

fix(ws): align nav item names with corresponding page headers

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

fix(ws): apply sentence case, fix tests

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

fix(ws): apply correct sentence case to TableTitleText
2025-07-24 13:29:01 +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
Paulo Rego 345481885e
chore(ws): enforce component specific imports (#475)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-07-21 19:26:58 +00:00
Jenny 3542f848de
fix(ws): Implement dual scrolling for workspace kind wizard (#484)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

fix(ws): remove extra DrawerPanelBody

remove unused file

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

fix(ws): remove comment and hide drawer on previousStep callback

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

fix(ws): when navigating between wizard steps, show drawer for steps that have drawer content
2025-07-21 15:08:58 +00:00
Charles Thao e05d4ad298
feat(ws): Make Workspace Kind drawer resizable and add table view to WS kind details (#483)
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-07-18 19:29:41 +00:00
Jenny d7664f8375
fix(ws): normalize text case for workspace count buttons, update column header (#481)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

fix(ws): add className to remaining buttons in ws kind tabs

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

fix(ws): Update the column header to "Workspaces"

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

fix(ws): fix formatting in theme stylesheet
2025-07-17 13:54:40 +00:00
Charles Thao 8def0ff0cf
feat(ws): Refactor restYAML to restFILE (#478)
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-07-17 13:53:40 +00:00
DominikKawka 954202adf9 prettier check
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-14 21:07:40 +01:00
Dominik Kawka 141c33e5c0
Merge branch 'workspaceKindSummary' into dominikMLEnhancements
Signed-off-by: Dominik Kawka  <31955648+dominikkawka@users.noreply.github.com>
2025-07-14 21:00:12 +01:00
Jenny a272e6e532 fix(ws): apply left alignment and fix padding to match other items
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2025-07-14 12:15:02 -04:00
Charles Thao fb0e74aa88
feat(ws): Add advanced pod configurations in Workspace Edit (#468)
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-07-10 16:49:53 +00:00
DominikKawka 607ab7419b prettier check
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-10 15:29:12 +01:00
DominikKawka 41792d9dac replaced inline styling with PF utility classes
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-10 15:20:35 +01:00
DominikKawka 6cb8ca87d3 Merge branch 'notebooks-v2' into workspaceKindSummary 2025-07-10 15:07:20 +01: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
Jenny e76308aee3
fix(ws): Improve workspace form drawer details and wizard flow (#467)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

move formatLabel to separate util

add title, divider, and fix wizard buttons to align with PF design guidelines

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

prevent wizard button from active state when no selection

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

rebase

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

handle standard infra resource types
2025-07-09 11:20:51 +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
DominikKawka 2e8362752d frontend build and test fix
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-08 15:40:55 +01:00
DominikKawka f766f767bc Workspace Kinds Summary:UX Enchancements
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-08 14:55:16 +01:00
Jenny 526ef9dd58
fix(ws): Updates to Table Columns, Expandable Rows, and Theming (#432)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

add icon to workspaceKindsColumns interface

fix(ws): Update table with expandable variant and fix styles

fix secondary border in menu toggle

fix menu toggle expanded text color and update icon to use status prop

remove unused files

add cluster storage description list group

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

Add title and packages

revert form label styling, revert homeVol column

fix linting

fix lint

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

Add PR code suggestions, remove unused interfaces

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

remove unused import

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

fix filterWorkspacesTest

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

fix(ws): apply feedback to fix Cypress tests

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

Update tests, add width to defineDataFields, remove duplicate WorkspaceTableColumnKeys type

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

fix wrapping behavior

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

Replace Th values with mapped instance

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

revert column order

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

remove hardcoded package label instances

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

delete cursor rule
2025-07-07 19:09:50 +00:00
Paulo Rego 1916b95399
chore(ws): added prettier to test and test:fix scripts (#470)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-07-07 11:17:22 +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 cbedbfff58
feat(ws): prepare frontend for validation errors during WorkspaceKind creation (#471)
* feat(ws): prepare frontend for validation errors during WorkspaceKind creation

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

* feat(ws): extract validation alert to its own component

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

* fix(ws): use error icon for helper text

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

---------

Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-07-07 11:14:21 +00:00
Dominik Kawka f90ee781ac
fix: removed blank space on left of dropdown options (#329)
Signed-off-by: DominikKawka <dkawka@redhat.com>
2025-07-04 14:40:19 +00:00
Charles Thao e3a9c747d1
feat: workspace kind Edit Pod Configs (#425)
* Add Pod Config to WorkspaceKind form

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add resource section for PodConfig

Signed-off-by: Charles Thao <cthao@redhat.com>

* Use refactored types

Signed-off-by: Charles Thao <cthao@redhat.com>

* Improve Resource input

Signed-off-by: Charles Thao <cthao@redhat.com>

* Move form view to edit mode only

Signed-off-by: Charles Thao <cthao@redhat.com>

* Bug fix and improvements

Signed-off-by: Charles Thao <cthao@redhat.com>

---------

Signed-off-by: Charles Thao <cthao@redhat.com>
2025-07-04 14:38:20 +00:00
Jenny 063d533979
fix(ws): Improve Workspace Creation Wizard Step Descriptions (#452)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

Changes to step descriptions based on feedback
2025-07-04 14:36:19 +00:00
Charles Thao 981527855a
feat(ws): Make Create Workspace Kind button visible (#466)
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-07-02 20:45:18 +00:00
Charles Thao ca8e94c5c1
feat: refactor Form View to Edit only (#451)
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-06-27 18:31:18 +00:00
Guilherme Caponetto 28f2471bb5
feat(ws): add fallback mechanism to broken images (#448)
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-06-27 13:46:17 +00:00
Mathew Wicks ca3289c8d1
chore: add OWNERS files with reviewers and labels (#450)
Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
2025-06-26 21:42:17 +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
Charles Thao 27e5877d84
feat(ws): Notebooks v2 Create Workspace Kind (#365)
* Add routes for Workspace Kind Create

Signed-off-by: Charles Thao <cthao@redhat.com>

* Implement method selection step for Workspace Kind Create wizard

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add styling

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add type guards for yaml file upload

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add properties step to WorkspaceKindForm

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add image step to WorkspaceKindForm

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add empty steps and switch Method step to radio buttons

Signed-off-by: Charles Thao <cthao@redhat.com>

* Add step description to Workspace Kind Form

Signed-off-by: Charles Thao <cthao@redhat.com>

* Migrate Workspace Kind Form to utilize Toggle Group

Signed-off-by: Charles Thao <cthao@redhat.com>

* Disable Form View when YAML is not uploaded or valid

Signed-off-by: Charles Thao <cthao@redhat.com>

* Allow VScode to discover local ESLint rules

Signed-off-by: Charles Thao <cthao@redhat.com>

* Styling organization improvements + Refactor types

Signed-off-by: Charles Thao <cthao@redhat.com>

---------

Signed-off-by: Charles Thao <cthao@redhat.com>
2025-06-25 10:50:15 +00:00
Paulo Rego f23af69671
chore(ws): allowed theme configuration during frontend start (#438)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-24 12:48:15 +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 6f6ba502b8
chore(ws): enforce named imports for react hooks (#414)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-16 20:51:08 +00:00
Jenny 6b2c2bbe46
fix(ws): Expose active nav item on initial Workspaces page load (#419)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>
2025-06-16 20:28:08 +00:00
Jenny ee2e14d50b
fix(ws): Action Button Alignment and Jupyter Image Display (#408)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

add icon to workspaceKindsColumns interface

fix actions cell alignment

move card title to fix spacing
2025-06-16 20:25:08 +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
Paulo Rego 7c660e41ba
feat(ws): added namespaces tab to workspace kind details (#406)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-05 11:01:15 +00:00
Jenny 248c242f84
fix(ws): Update Progress Stepper with UX feedback (#401)
Signed-off-by: Jenny <32821331+jenny-s51@users.noreply.github.com>

add description beneath title

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

fix(ws): apply isCurrentStep correctly and Flex layout

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

fix linting issues

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

delete tsConfig.json
2025-06-03 15:11:14 +00:00
Paulo Rego 6490251310
feat(ws): added pod configs tab to workspace kind details (#399)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-02 20:11:23 +00:00
Paulo Rego 83caeff57c
feat(ws): added images tab to workspace kind details (#398)
* feat(ws): added images tab to workspace kind details

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

* feat(ws): added images tab to workspace kind details

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

* feat(ws): added images tab to workspace kind details

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

---------

Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-06-02 17:47:23 +00:00
aviavissar d668eb83c7
feat(ws): Workspace Kind details drawer #252 (#387)
* feat(ws):Workspace Kind details drawer #252

Signed-off-by: Avi Avissar (EXT-Nokia) <avi.avissar.ext@nokia.com>

* feat(ws): feat(ws):Workspace Kind details drawer #252

Signed-off-by: Avi Avissar (EXT-Nokia) <avi.avissar.ext@nokia.com>

* feat(ws): feat(ws): Workspace Kind details drawer #252

Signed-off-by: Avi Avissar (EXT-Nokia) <avi.avissar.ext@nokia.com>

* feat(ws): Workspace Kind details drawer #252

Signed-off-by: Avi Avissar (EXT-Nokia) <avi.avissar.ext@nokia.com>

---------

Signed-off-by: Avi Avissar (EXT-Nokia) <avi.avissar.ext@nokia.com>
Co-authored-by: Avi Avissar (EXT-Nokia) <avi.avissar.ext@nokia.com>
2025-05-29 19:31:19 +00:00
Charles Thao 92b488bb67
feat(ws): Persist last used namespace across refreshes and tabs (#341)
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-05-28 18:54:19 +00:00
Paulo Rego db82bd54f6
fix(ws): removed empty table column from workspace kinds table and fixed labels (#389)
Signed-off-by: paulovmr <832830+paulovmr@users.noreply.github.com>
2025-05-28 17:38:19 +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