-
Notifications
You must be signed in to change notification settings - Fork 903
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive Tree Tooltips, and Active State Markers #688
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
Open
Brijesh619
wants to merge
6
commits into
apache:master
Choose a base branch
from
Brijesh619:ATLAS-5324
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4f8da80
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive …
Brijesh619 2e9a350
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive …
Brijesh619 fa7f11d
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive …
Brijesh619 fdcc3af
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive …
Brijesh619 d221626
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive …
Brijesh619 bb91bc7
ATLAS-5324: Enhance Collapsed Sidebar with Module Icons, Interactive …
Brijesh619 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
dashboard/public/img/sidebar-icons/icon-business-metadata.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 hidden or 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,78 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| import React, { ChangeEvent } from "react"; | ||
| import { Paper, InputBase, Stack } from "@mui/material"; | ||
| import ClearIcon from "@mui/icons-material/Clear"; | ||
| import { IconButton } from "@components/muiComponents"; | ||
|
|
||
| interface SidebarSearchInputProps { | ||
| searchTerm: string; | ||
| onChange: (value: string) => void; | ||
| dataCy?: string; | ||
| } | ||
|
|
||
| export const SidebarSearchInput: React.FC<SidebarSearchInputProps> = ({ | ||
| searchTerm, | ||
| onChange, | ||
| dataCy | ||
| }) => ( | ||
| <Paper | ||
| sx={{ | ||
| width: "100%", | ||
| paddingLeft: "8px", | ||
| display: "flex", | ||
| alignItems: "center" | ||
| }} | ||
| className="sidebar-searchbar" | ||
| > | ||
| <InputBase | ||
| fullWidth | ||
| sx={{ color: "rgba(0, 0, 0, 0.7)" }} | ||
| placeholder="Search" | ||
| inputProps={{ "aria-label": "search" }} | ||
| value={searchTerm} | ||
| onChange={(e: ChangeEvent<HTMLInputElement>) => onChange(e.target.value)} | ||
| data-cy={dataCy} | ||
| endAdornment={ | ||
| <Stack direction="row" alignItems="center" gap="4px"> | ||
| {searchTerm.length > 0 && ( | ||
| <IconButton | ||
| size="small" | ||
| onClick={() => onChange("")} | ||
| edge="end" | ||
| sx={{ padding: "4px" }} | ||
| > | ||
| <ClearIcon fontSize="small" sx={{ color: "rgba(0, 0, 0, 0.4)" }} /> | ||
| </IconButton> | ||
| )} | ||
| <img | ||
| src="/img/sidebar-icons/icon-search.svg" | ||
| style={{ | ||
| width: "16px", | ||
| height: "16px", | ||
| filter: "brightness(0.4)", | ||
| opacity: 1, | ||
| marginLeft: "4px" | ||
| }} | ||
| alt="Search" | ||
| /> | ||
| </Stack> | ||
| } | ||
| /> | ||
| </Paper> | ||
| ); | ||
This file contains hidden or 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 hidden or 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,46 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| import { Stack } from "@mui/material"; | ||
| import SkeletonLoader from "./SkeletonLoader"; | ||
|
|
||
| const TreeSkeletonLoader = ({ count = 7 }: { count?: number }) => { | ||
| const treeItemSkeleton = (indentLevel: number, textWidth: string, key: number) => ( | ||
| <Stack key={key} direction="row" alignItems="center" gap="12px" paddingLeft={`${indentLevel * 24}px`}> | ||
| <SkeletonLoader animation="pulse" variant="rectangular" width={16} height={16} sx={{ borderRadius: "4px", backgroundColor: "rgba(255,255,255,0.08)" }} count={1} /> | ||
| <SkeletonLoader animation="pulse" variant="rectangular" width={textWidth} height={20} sx={{ borderRadius: "4px", backgroundColor: "rgba(255,255,255,0.08)" }} count={1} /> | ||
| </Stack> | ||
| ); | ||
|
|
||
| const allRows = [ | ||
| treeItemSkeleton(0, "80%", 0), | ||
| treeItemSkeleton(1, "65%", 1), | ||
| treeItemSkeleton(1, "75%", 2), | ||
| treeItemSkeleton(2, "50%", 3), | ||
| treeItemSkeleton(2, "60%", 4), | ||
| treeItemSkeleton(0, "85%", 5), | ||
| treeItemSkeleton(1, "70%", 6) | ||
| ]; | ||
|
|
||
| return ( | ||
| <Stack gap="16px" padding="16px 16px" width="100%"> | ||
| {allRows.slice(0, count)} | ||
| </Stack> | ||
| ); | ||
| }; | ||
|
|
||
| export default TreeSkeletonLoader; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.