-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support flyte deck #none Signed-off-by: James <[email protected]> * fix: rebase with master #none Signed-off-by: James <[email protected]> * fix: fix iframe height and api response type; #none Signed-off-by: James <[email protected]> * fix: modal style; #none; Signed-off-by: James <[email protected]> * fix: use env variable for server ssl config #none; Signed-off-by: James <[email protected]> * fix: use h2 instead of h3 for future migration #none Signed-off-by: James <[email protected]>
- Loading branch information
1 parent
1013deb
commit 32686cc
Showing
12 changed files
with
158 additions
and
20 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
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
14 changes: 14 additions & 0 deletions
14
packages/zapp/console/src/components/Executions/ExecutionDetails/ExecutionNodeDeck.tsx
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,14 @@ | ||
import { useDownloadLocation } from 'components/hooks/useDataProxy'; | ||
import { WaitForData } from 'components/common/WaitForData'; | ||
import * as React from 'react'; | ||
|
||
/** Fetches and renders the deck data for a given `deckUri` */ | ||
export const ExecutionNodeDeck: React.FC<{ deckUri: string }> = ({ deckUri }) => { | ||
const downloadLocation = useDownloadLocation(deckUri); | ||
|
||
return ( | ||
<WaitForData {...downloadLocation}> | ||
<iframe title="deck" height="100%" src={downloadLocation.value.signedUrl} /> | ||
</WaitForData> | ||
); | ||
}; |
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
17 changes: 17 additions & 0 deletions
17
packages/zapp/console/src/components/hooks/useDataProxy.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,17 @@ | ||
import { useAPIContext } from 'components/data/apiContext'; | ||
import { DownloadLocation } from 'models/Execution/types'; | ||
import { FetchableData } from './types'; | ||
import { useFetchableData } from './useFetchableData'; | ||
|
||
/** A hook for fetching a NodeExecution */ | ||
export function useDownloadLocation(nativeUrl: string): FetchableData<DownloadLocation> { | ||
const { getDownloadLocation } = useAPIContext(); | ||
return useFetchableData<DownloadLocation, string>( | ||
{ | ||
debugName: 'CreateDownloadLocation', | ||
defaultValue: {} as DownloadLocation, | ||
doFetch: (nativeUrl) => getDownloadLocation(nativeUrl), | ||
}, | ||
nativeUrl, | ||
); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1640,10 +1640,25 @@ | |
minimatch "^3.0.4" | ||
strip-json-comments "^3.1.1" | ||
|
||
"@flyteorg/[email protected]": | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/@flyteorg/flyteidl/-/flyteidl-1.1.0.tgz#9fcf06d878616439939e932c5a35357d3d7eea04" | ||
integrity sha512-p07Vd6rxmASKJvfF56ArVyuZLjxTJPnAQsTs3rDJL74gd9Ixs4cEDa/A4+iMYSNl42iTVPvAkM4movXDD1Hmgg== | ||
"@eslint/eslintrc@^1.3.0": | ||
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.0.tgz#29f92c30bb3e771e4a2048c95fa6855392dfac4f" | ||
integrity sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw== | ||
dependencies: | ||
ajv "^6.12.4" | ||
debug "^4.3.2" | ||
espree "^9.3.2" | ||
globals "^13.15.0" | ||
ignore "^5.2.0" | ||
import-fresh "^3.2.1" | ||
js-yaml "^4.1.0" | ||
minimatch "^3.1.2" | ||
strip-json-comments "^3.1.1" | ||
|
||
"@flyteorg/[email protected]": | ||
version "1.1.4" | ||
resolved "https://registry.yarnpkg.com/@flyteorg/flyteidl/-/flyteidl-1.1.4.tgz#7a02d80e22c623817b6061f1f5e88ec243041cf1" | ||
integrity sha512-CmO/H3vbjluV/G4J9TFnSo3HiefOQ8f46BbpordSlVA2CANWQZaNc6Csz7JTGdotyZ2DdUXJkBcPRiA/r9H3lQ== | ||
|
||
"@gar/promisify@^1.0.1", "@gar/promisify@^1.1.3": | ||
version "1.1.3" | ||
|