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: Automatically contruct circuit name and slug from the pattern … #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wryonik
Copy link
Contributor

@wryonik wryonik commented Jan 8, 2025

…name

@wryonik wryonik requested a review from DimiDumo January 9, 2025 11:25
@@ -24,27 +26,39 @@ const PatternDetails = ({

const { setField } = store;

const checkExistingBlueprint = useDebouncedCallback(async (circuitName: string) => {
const results = await sdk.listBlueprints({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use getBlueprint https://github.com/zkemail/zk-email-sdk-js/blob/de24128780d2959a9c1bce4a4ab6ddb655dda4e5/src/index.ts#L42

If the githubusername + title already exists it will have a v1 version, so you could use

get getBlueprint("githubusername/title@v1")

The search function is a bit heavy for this

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.

2 participants