-
Notifications
You must be signed in to change notification settings - Fork 918
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Workspace]Add right sidebar to workspace create form (#7750)
* Move workspace form inside workspace creator Signed-off-by: Lin Wang <[email protected]> * Remove enter details panel Signed-off-by: Lin Wang <[email protected]> * Rename workspace_form to workspace_creator_form Signed-off-by: Lin Wang <[email protected]> * Clarify workspace form types Signed-off-by: Lin Wang <[email protected]> * Add right sidebar to workspace creator Signed-off-by: Lin Wang <[email protected]> * Add submitting lock for workspace create page Signed-off-by: Lin Wang <[email protected]> * Changeset file for PR #7750 created/updated * Fix form submitting lock not been covered Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 76d7a8b) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e99e98d
commit b4e3fec
Showing
24 changed files
with
952 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
feat: | ||
- [Workspace]Add right sidebar to workspace create form ([#7750](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7750)) |
66 changes: 66 additions & 0 deletions
66
...space/public/components/workspace_creator/__snapshots__/workspace_faq_panel.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/plugins/workspace/public/components/workspace_creator/utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const RIGHT_SIDEBAR_SCROLL_KEY = 'data-right-sidebar-scroll'; | ||
|
||
export enum RightSidebarScrollField { | ||
Name = 'name', | ||
Description = 'description', | ||
Color = 'color', | ||
UseCase = 'useCase', | ||
DataSource = 'dataSource', | ||
Member = 'member', | ||
} | ||
|
||
export const generateRightSidebarScrollProps = (key: RightSidebarScrollField) => { | ||
return { [RIGHT_SIDEBAR_SCROLL_KEY]: key }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/plugins/workspace/public/components/workspace_creator/workspace_creator_form.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
$workspaceCreateRightSideBarTopOffset: 116px; | ||
$workspaceCreateRightSideBarBottomOffset: 100px; | ||
|
||
.workspaceCreateRightSidebar { | ||
position: sticky; | ||
top: $workspaceCreateRightSideBarTopOffset; | ||
max-height: calc(100vh - $workspaceCreateRightSideBarTopOffset - $workspaceCreateRightSideBarBottomOffset); | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: column; | ||
width: 280px; | ||
|
||
@include ouiBreakpoint("xs","s") { | ||
position: static; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.workspaceCreateRightSideBarContentWrapper { | ||
overflow-y: scroll; | ||
|
||
@include ouiBreakpoint("xs","s") { | ||
overflow: visible; | ||
} | ||
} | ||
|
||
.workspaceCreateRightSideBarActionsWrapper { | ||
padding: $ouiSizeM; | ||
border-radius: $ouiSizeM; | ||
background: $ouiColorEmptyShade; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.