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

docs(suspensive.org): add docs for cli #1032

Merged
merged 5 commits into from
Jul 4, 2024
Merged

Conversation

gwansikk
Copy link
Collaborator

@gwansikk gwansikk commented Jul 4, 2024

Overview

I am adding a document introducing the Command-Line Interface (CLI).

support-both-tanstack-query-v4-and-5.en.mdx support-both-tanstack-query-v4-and-5.ko.mdx
image image

Additionally, there are some parts we need to discuss together. Please make sure to check the comments below.

PR Checklist

  • I did below actions if need
  1. I read the Contributing Guide
  2. I added documents and tests.

@gwansikk gwansikk self-assigned this Jul 4, 2024
@gwansikk gwansikk linked an issue Jul 4, 2024 that may be closed by this pull request
Copy link

changeset-bot bot commented Jul 4, 2024

⚠️ No Changeset found

Latest commit: 86ec195

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 2:59pm
v1.suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 2:59pm
visualization.suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 2:59pm


Starting from version 2.2.0, @suspensive/react-query supports both versions 4 and 5 of @tanstack/react-query.

Internally, it consists of @suspensive/react-query-4 and @suspensive/react-query-5, which correspond to the respective versions of @tanstack/react-query. (In this document, these version-specific packages are referred to as modules.) The CLI automatically detects the installed version of @tanstack/react-query in your environment and uses the compatible version.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need to discuss this part. Since version 2.2.0, @suspensive/react-query has been internally switching between @suspensive/react-query-4 and @suspensive/react-query-5. To make it easier for users to understand, I have referred to this as “modules” in the document. I thought it would be confusing to call them versions 4 or 5 of @suspensive/react-query, as it might be mistaken for the actual package versions.

I think “modules” or “adapters” would be good terms. Do you have any better ideas?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@manudeli What do you think about this opinion? I'm concerned that calling @suspensive/react-query-4 and @suspensive/react-query-5 "versions" in the documentation might cause confusion with the actual @suspensive/react-query package versions. I think it would be better to refer to them as "modules" or "adapters."

Copy link
Member

Choose a reason for hiding this comment

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

I agree with you. Rather than entering the version number, I think it would be simpler to understand by expressing it as follows.

Automatically changes Suspensive’s interface according to the version of @tanstack/react-query.

@gwansikk gwansikk changed the title docs(react-query): add docs for cli docs(suspensive.org): add docs for cli Jul 4, 2024
@gwansikk gwansikk marked this pull request as ready for review July 4, 2024 11:20
@gwansikk gwansikk requested a review from manudeli as a code owner July 4, 2024 11:20
@manudeli
Copy link
Member

manudeli commented Jul 4, 2024

image

In my opinion, It would be better to title this document not as "CLI", just like as "Support both TanStack Query v4 and 5" and "TanStack Query v4, 5를 모두 지원"

I think that a title that focuses on the benefits the user will receive may be easier to click on. It would be better to intuitively expose the benefits to users without having to enter the page.

@manudeli
Copy link
Member

manudeli commented Jul 4, 2024

@gwansikk I'm fixing https://github.com/toss/suspensive/pull/1033/files pnpm error.

Maybe this is about our error
pnpm/action-setup#136

@manudeli
Copy link
Member

manudeli commented Jul 4, 2024

I fixed ci error now~! Let's go go

Copy link

codspeed-hq bot commented Jul 4, 2024

CodSpeed Performance Report

Merging #1032 will create unknown performance changes

Comparing docs/feature/how-to-use-cli (86ec195) with main (451ec67)

Summary

⚠️ No benchmarks were detected in both the base of the PR and the PR.

@gwansikk
Copy link
Collaborator Author

gwansikk commented Jul 4, 2024

if this gets merged, I will attempt to request registration in the TanStack Query v5 Docs!

with this:

@@ -1,7 +1,7 @@
{
"motivation": { "title": "Why need to use?" },
"installation": { "title": "Installation" },
"command-line-interface": { "title": "Command-Line Interface" },
"support-both-tanstack-query-v4-and-5": { "title": "Support both TanStack Query v4 and 5" },
Copy link
Member

Choose a reason for hiding this comment

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

There may be a time in the future to support v6, so I hope it is an expandable path name.
I think it's a good idea for links not to change frequently

For example, when adding this link to a user's blog, I would like to prevent the user from being unable to enter if the link changes.

Suggested change
"support-both-tanstack-query-v4-and-5": { "title": "Support both TanStack Query v4 and 5" },
"tanstack-query-compatibility": { "title": "Support both TanStack Query v4 and 5" },

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, I hadn't thought of that. Thank you!

Copy link
Member

@manudeli manudeli left a comment

Choose a reason for hiding this comment

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

image

Coool! So much better experience to use cli

@manudeli manudeli merged commit 51671ca into main Jul 4, 2024
16 checks passed
@manudeli manudeli deleted the docs/feature/how-to-use-cli branch July 4, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: How to use cli in https://suspensive.org
2 participants