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

Send mainPath and configDir on update success/failure #53

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Aug 28, 2023

Telescoping on #41

Send the main.js location and configDir up on success/failure so we can incorporate it into the UIs.

To QA:

  1. Clear the selected options from main.ts:

    options: addonOptionsMap[CHROMATIC_BASE_URL],

  2. Make findConfig error, select a project, check you see generic instructions (no specific main location)

  3. Make updateMain error, select a project, check you see instructions that include main.ts

  4. Make it all work, select a project, check you see a message that includes main.ts.

📦 Published PR as canary version: 0.0.47--canary.53.792ed16.0

✨ Test out this PR locally via:

npm install @chromaui/addon-visual-tests@0.0.47--canary.53.792ed16.0
# or 
yarn add @chromaui/addon-visual-tests@0.0.47--canary.53.792ed16.0

@linear
Copy link

linear bot commented Aug 28, 2023

AP-3562 Send main config location on success/failure

And report it in the UI

updateProject,
projectUpdatingFailed,
projectIdUpdated,
clearProjectIdUpdated,
] = useProjectId();
} = useProjectId();
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥 thank you for cleaning this up

@weeksling weeksling merged commit 792ed16 into tom/ap-3485-display-the-project-token-and-project-id-to-the-user-in-case Aug 29, 2023
6 checks passed
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