Skip to content

Commit

Permalink
fix: highlight bookmark tab (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
saravmajestic authored Jul 31, 2024
1 parent d9a881f commit c67b438
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ const QueryPanelTitle = ({
</NewFeatureIndicator>
</NavItem>
<NavItem>
<NavLink
active={QueryPanelTitleTabState.Bookmarks === tabState}
onClick={() => toggleTabState(QueryPanelTitleTabState.Bookmarks)}
>
Bookmarks
</NavLink>
<NewFeatureIndicator featureKey="query-results-bookmarks-clicked">
<NavLink
active={QueryPanelTitleTabState.Bookmarks === tabState}
onClick={() =>
toggleTabState(QueryPanelTitleTabState.Bookmarks)
}
>
Bookmarks
</NavLink>
</NewFeatureIndicator>
</NavItem>
</>
) : null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styles from "../../querypanel.module.scss";
import { Stack, CodeBlock, Label, IconButton } from "@uicore";
import { Stack, CodeBlock, Label, IconButton, Alert } from "@uicore";
import { useEffect, useState } from "react";
import { QueryBookmark } from "@modules/queryPanel/context/types";
import { ChevronRightIcon, OpenNewIcon } from "@assets/icons";
Expand Down Expand Up @@ -46,6 +46,13 @@ const QueryPanelBookmarks = (): JSX.Element => {
className={`${styles.queryTwoCol} ${tabState === QueryPanelTitleTabState.Bookmarks ? "" : "d-none"}`}
>
<Stack direction="column" className={styles.limitWidth}>
<Alert color="warning">
Check out the{" "}
<a href="https://docs.myaltimate.com/govern/querybookmarks/">
documentation
</a>{" "}
to learn more about Query Bookmarks.
</Alert>
<BookmarkAccordion
onSelect={onSelect}
privacy="private"
Expand Down

0 comments on commit c67b438

Please sign in to comment.