Commit Graph

11 Commits

Author SHA1 Message Date
Charles Thao c859cf5a03 Refactor restYAML to restFILE
Signed-off-by: Charles Thao <cthao@redhat.com>
2025-07-10 15:40:38 -04: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
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 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
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 0ee177f05d
feat(ws): prepare frontend calls to pause and start endpoints (#346)
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
2025-05-19 14:10:35 +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
Yossi Elias 744c3bb900
feat(ws): add frontend hooks to call create WS backend (#217)
* feat(ws): Notebooks 2.0 // Frontend // Call To Create Workspace

Signed-off-by: Yossi Elias (EXT-Nokia) <yossi.elias.ext@nokia.com>

* Create types for WorkspacePodTemplate and adjust camelCase leftovers

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

---------

Signed-off-by: Yossi Elias (EXT-Nokia) <yossi.elias.ext@nokia.com>
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
Co-authored-by: Yossi Elias (EXT-Nokia) <yossi.elias.ext@nokia.com>
Co-authored-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
Co-authored-by: senanz <33982987+senanz@users.noreply.github.com>
2025-05-06 15:13:38 +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
YosiElias 57fc8b17e5
feat(ws): add namespace dropdown to UI (#154)
* feat(ws): Notebooks 2.0 // Frontend // Namespace selector

Signed-off-by: yelias <yossi.elias@nokia.com>

* add MenuSearch

Signed-off-by: yelias <yossi.elias@nokia.com>

* feat(ws): Notebooks 2.0 // Frontend // Namespace selector

Signed-off-by: yelias <yossi.elias@nokia.com>

---------

Signed-off-by: yelias <yossi.elias@nokia.com>
Co-authored-by: yelias <yossi.elias@nokia.com>
2025-01-09 13:26:22 +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