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: convert link command #6313

Conversation

khendrikse
Copy link
Contributor

@khendrikse khendrikse commented Jan 12, 2024

πŸŽ‰ Thanks for submitting a pull request! πŸŽ‰

Summary

Fixes: https://linear.app/netlify/issue/CT-477/convert-link-command-to-clack

This converts the link command into using the new NetlifyLog. It is part of a bigger piece of work that can be seen in #6293. This is also the reason why this PR is merged into the branch CP-101/design-system-clack-implementation. It's a way in which I'm trying to keep possible failing tests, but also the review work to a minimum amount of work for those who are reviewing.

It also changes a few things for outro()

Before

I'm sorry it's a looot of screenshotting otherwise

After

CleanShot 2024-01-12 at 17 00 24

CleanShot 2024-01-12 at 17 03 03

CleanShot.2024-01-12.at.17.15.45.mp4

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code πŸ§‘β€πŸ’». This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire πŸ”₯ (e.g. incident related), you can skip this step.
  • Read the contribution guidelines πŸ“–. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) πŸ§ͺ
  • Update or add documentation (if features were changed or added) πŸ“
  • Make sure the status checks below are successful βœ…

A picture of a cute animal (not mandatory, but encouraged)

@khendrikse khendrikse changed the title Cp 477 convert link command chore: convert link command Jan 12, 2024
@@ -22,9 +22,9 @@ export const unlink = async (options: OptionValues, command: BaseCommand) => {
})

if (site) {
NetlifyLog.success(`Unlinked ${site.configPath} from ${siteData ? siteData.name : siteId}`)
NetlifyLog.success(`Unlinked from ${siteData ? siteData.name : siteId}`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This did not work before my changes :D it was always undefined

*/
// @ts-expect-error TS(7006) FIXME: Parameter 'command' implicitly has an 'any' type.
const linkPrompt = async (command, options) => {
const linkPrompt = async (command: BaseCommand, options: OptionValues) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the big file to look at

@khendrikse khendrikse marked this pull request as ready for review January 12, 2024 16:24
@khendrikse khendrikse requested a review from a team as a code owner January 12, 2024 16:24
@khendrikse khendrikse self-assigned this Jan 12, 2024
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
Copy link
Member

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

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

Nice! I left a few nitty suggestions around copy/styling, but they boil down to personal preference so feel free to take or leave.

src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Outdated Show resolved Hide resolved
src/commands/link/link.ts Show resolved Hide resolved
src/commands/link/link.ts Show resolved Hide resolved
src/commands/link/link.ts Show resolved Hide resolved
@khendrikse
Copy link
Contributor Author

@ericapisani @eduardoboucas thanks!! I implemented your feedback :)

@khendrikse khendrikse merged commit 5d98d73 into CP-101/design-system-clack-implementation Jan 15, 2024
30 checks passed
@khendrikse khendrikse deleted the CP-477-convert-link-command branch January 15, 2024 09:11
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

3 participants