Skip to content
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

chore: Simplify enclave-manager-sdk typescript dependencies #1595

Merged
merged 8 commits into from Oct 26, 2023

Conversation

Dartoxian
Copy link
Contributor

Description:

The enclave manager sdk has a large number of (I think) unnecessary dependencies, this PR removes a lot of them and tidies up package.json.

Additionally, specify yarn --frozen-lockfile in the enclave-manager/api/typescript/scripts/build.sh so that builds will fail if dependencies are not committed properly.

This change removes the dependency in the enclave manager from the general typescript kurtosis-sdk - I'm not sure why this dependency is present as it's not required by any code generated by the enclave-manager-sdk.

Is this change user facing?

NO

References (if applicable):

N/A

@Dartoxian Dartoxian changed the title Simplify enclave-manager-sdk typescript dependencies chore: Simplify enclave-manager-sdk typescript dependencies Oct 19, 2023
@Dartoxian
Copy link
Contributor Author

@adschwartz thanks for the call earlier, I've now tested this PR inside a locally built kurtosis engine and confirmed it's working.

@Dartoxian
Copy link
Contributor Author

Another tweak to the build process of the typescript enclave manager sdk: by copying the generated kurtosis-sdk files into src pre build, tsc is able to generate more accurate types for the enclave manager sdk. The current type definition of the enclave manager sdk contains lots of any values, but with this change it now contains the correctly defined types.

@adschwartz
Copy link
Contributor

@Dartoxian I'm ok with this if you have tested it and it works.

@Dartoxian Dartoxian added this pull request to the merge queue Oct 26, 2023
Merged via the queue into main with commit 73b8c62 Oct 26, 2023
32 checks passed
@Dartoxian Dartoxian deleted the bg/enclave-manager-api-deps branch October 26, 2023 11:44
github-merge-queue bot pushed a commit that referenced this pull request Oct 31, 2023
## Description:
This PR contains the beginnings of the new enclave manager ui.
Specifically it adds a new project in `enclave-manager/web`. Notable
inclusions:
* Continuing to use Chakra as a component libary, the
KurtosisThemeProvider injects components themed based on the mocks.
* The enclave manager sdk cllient is refactored into authenticated
(remote) and local versions, and provided to react components with
`useKurtosisClient` by the `KurtosisClientProvider`. This provider
blocks loading the application (with a spinner) until it's configured
the client to use.
* react router is used to compose the application.
* react-table is used to create a (reusable) table for showing the
enclaves list.

### Demo (WIP)


https://github.com/kurtosis-tech/kurtosis/assets/4419574/c026a1d9-313d-4e73-944a-2814399e039a

## Is this change user facing?
NO (this is not yet part of the build/deploy process)

## References (if applicable):
This PR is rebased on top of
#1595 which should be
merged first.

---------

Co-authored-by: Anders Schwartz <anders.schwartz@kurtosistech.com>
Co-authored-by: Anders Schwartz <adschwartz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants