-
Notifications
You must be signed in to change notification settings - Fork 7
DONT MERGE: 1727 Allow adding more version info to hover modal #1733
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5883066
Add icon, gql query, sub context menu
Sparrow1029 3cce3e9
Add orchestrator-ui-components npm pkg version to popover
Sparrow1029 1b4896c
Change icon
Sparrow1029 41b0278
Add changeset
Sparrow1029 f73ba0c
Add translations
Sparrow1029 5e519da
Break up nested ternary; address PR comments
Sparrow1029 f042e7d
Small change to gql query for version endpoint
Sparrow1029 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
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,5 @@ | ||
| --- | ||
| '@orchestrator-ui/orchestrator-ui-components': minor | ||
| --- | ||
|
|
||
| Added support for displaying software versions in hamburger menu |
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
27 changes: 27 additions & 0 deletions
27
packages/orchestrator-ui-components/src/icons/heroicons/WfoSquareStack3dStack.tsx
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,27 @@ | ||
| import React, { FC } from 'react'; | ||
|
|
||
| import { WfoIconProps } from '@/icons'; | ||
|
|
||
| import { withWfoHeroIconsWrapper } from './WfoHeroIconsWrapper'; | ||
|
|
||
| const WfoSquareStack3dStackSvg: FC<WfoIconProps> = ({ | ||
| width = 20, | ||
| height = 20, | ||
| color = 'currentColor', | ||
| }) => ( | ||
| <svg | ||
| width={width} | ||
| height={height} | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| viewBox="0 0 24 24" | ||
| fill={color} | ||
| > | ||
| <path d="M11.644 1.59a.75.75 0 0 1 .712 0l9.75 5.25a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.712 0l-9.75-5.25a.75.75 0 0 1 0-1.32l9.75-5.25Z" /> | ||
| <path d="m3.265 10.602 7.668 4.129a2.25 2.25 0 0 0 2.134 0l7.668-4.13 1.37.739a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.71 0l-9.75-5.25a.75.75 0 0 1 0-1.32l1.37-.738Z" /> | ||
| <path d="m10.933 19.231-7.668-4.13-1.37.739a.75.75 0 0 0 0 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 0 0 0-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 0 1-2.134-.001Z" /> | ||
| </svg> | ||
| ); | ||
|
|
||
| export const WfoSquareStack3dStack = withWfoHeroIconsWrapper( | ||
| WfoSquareStack3dStackSvg, | ||
| ); |
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
27 changes: 27 additions & 0 deletions
27
packages/orchestrator-ui-components/src/rtk/endpoints/versions.ts
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,27 @@ | ||
| import { orchestratorApi } from '../api'; | ||
|
|
||
| const versionsQuery = ` | ||
| query Versions { | ||
| versions { | ||
| applicationVersions | ||
| } | ||
| } | ||
| `; | ||
|
|
||
| export type VersionsResponse = { | ||
| versions: { | ||
| applicationVersions: [string]; | ||
| }; | ||
| }; | ||
|
|
||
| const versionsApi = orchestratorApi.injectEndpoints({ | ||
| endpoints: (build) => ({ | ||
| getVersions: build.query<VersionsResponse, void>({ | ||
| query: () => ({ | ||
| document: versionsQuery, | ||
| }), | ||
| }), | ||
| }), | ||
| }); | ||
|
|
||
| export const { useGetVersionsQuery } = versionsApi; |
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.