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

README draft #14

Merged
merged 10 commits into from
Sep 22, 2023
Merged

README draft #14

merged 10 commits into from
Sep 22, 2023

Conversation

AkifumiSato
Copy link
Collaborator

@AkifumiSato AkifumiSato commented Sep 15, 2023

  • リポジトリのREADME作成

参考

#6

README.md Outdated Show resolved Hide resolved
@AkifumiSato AkifumiSato changed the title README.ms first draft README draft Sep 15, 2023
@AkifumiSato AkifumiSato mentioned this pull request Sep 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2023

⚠️ No Changeset found

Latest commit: 8247dd0

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 changesets to release 2 packages
Name Type
@location-state/core Major
@location-state/next Major

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

@@ -0,0 +1,31 @@
# @location-state/core
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

coreの方のREADME構成も追加してみました。
前半は被ってしまうけどnpmのサイトにも載るのでほぼ同じでも書くべきかと思って載せてます。
Advanced usageはそこそこ長くなってしまう気がしてて、別ドキュメントにしてリンクだけ貼っとくべきか悩んでます。

Copy link
Member

Choose a reason for hiding this comment

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

それぞれのパッケージのREADME.mdはトップのやつのコピペでもいいかもですね
そしてAPIドキュメントは別ファイルでも構わないかな
Advanced Usageは最初からなくてもいいかなぁ
どうせAPIリファレンスに必要な情報は出てくるし

Copy link
Member

Choose a reason for hiding this comment

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

あと先頭付近の一行説明についてはこちらも
#6 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

この1行説明をリポジトリに反映するのはどこでやるんだろう?
リポジトリ一覧を見るとrecoil-sync-nextには説明があるけどlocation-stateにはない。。。?
https://github.com/orgs/recruit-tech/repositories

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Github上のAboutで設定できるので、追加しておきました。
スクリーンショット 2023-09-19 22 12 27

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

構成忘れそうなので、一旦API.mdをTBWで作成してcoreとnextそれぞれのREADMEからリンクだけ貼ってみました。
0257c7a

それぞれのパッケージのREADME.mdはトップのやつのコピペでもいいかもですね

それぞれタイトル変えるくらいなイメージだったので一旦それで置いてみましたが、どうでしょう?
@location-state/nextの方はpages routerのquick startだけでいいかなと思ったものの、App Routerどうするかも書いておくべき≒やはりほぼ同じ内容であるべきなのか悩んで、意見聞いてからにしようかと思い...

Copy link
Member

Choose a reason for hiding this comment

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

コピペと書いたのはよくなかったですね、@location-state/coreのREADMEにはPages Routerの使い方は要らなくて、@location-state/nextのREADMEにはApp Routerの使い方は要らないと思います

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@location-state/coreのREADMEにはPages Routerの使い方は要らなくて、@location-state/nextのREADMEにはApp Routerの使い方は要らないと思います

↑のように一部削除しました。
418bcfc

Copy link
Member

Choose a reason for hiding this comment

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

オッケーでーす
日本語になってるところをDeepLでもなんでもいいので英語化しましょう

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

deeplしました!
4f61ad6

AkifumiSato and others added 9 commits September 22, 2023 15:41
# Conflicts:
#	packages/location-state-core/package.json
#	packages/location-state-next/package.json
# Conflicts:
#	packages/location-state-core/package.json
#	packages/location-state-next/package.json
# Conflicts:
#	packages/location-state-core/package.json
#	packages/location-state-next/package.json
@AkifumiSato
Copy link
Collaborator Author

chagesets修正してmajorにしました
9380fd7

@AkifumiSato AkifumiSato marked this pull request as ready for review September 22, 2023 07:07
Copy link
Member

@koichik koichik left a comment

Choose a reason for hiding this comment

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

コミットにコメントしたけどコミット自体が古くなってたようなので改めてコメントしなおし
なんか日本語の段階でもう少し精査すべきだった。。。 というかその時点でDeepLしておけばよかったのか?

README.md Outdated

## Features

TBW
- You can manage the state linked to the history location.
Copy link
Member

Choose a reason for hiding this comment

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

ライブラリのFeaturesなのに「You can ~」は微妙かなぁ。。。
その点は日本語の時点で気付くべきだったか
つまり誰かが「行うことができる」ではなくライブラリが「何をする」あるいは「何をしてくれる」という表現にすべきだった
あと「連動する」はlinkedになるのね、、、linke(d)はこの世界だとlinked listとかlinkerとかで使われるように結びつきが強い場合に選ばれる印象
なのでここは日本語の段階で「同期する」にすべきだったか
合わせると「履歴位置に同期する状態を管理する」となり、DeepLしてちょっと調整 (positionをlocationに) すると

Manage the state to synchronize with the history location.

となり、この方が自然かなと
1行紹介と違いがない気がしなくもないけど!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

なるほどです!
修正しました。
8247dd0

README.md Outdated

## Features

TBW
- You can manage the state linked to the history location.
- By default, Session Storage/URL can be specified as the destination.
Copy link
Member

Choose a reason for hiding this comment

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

こっちも同様にライブラリが何をしてくれるかという観点と、destinationだけだとなんのdestinationか分かりにくいので「デフォルトでは、永続先としてSession StorageとURLをサポートする」としてからDeepLすると

By default, supports Session Storage and URL as persistent destinations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

修正しました。
8247dd0

Copy link
Member

@koichik koichik left a comment

Choose a reason for hiding this comment

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

ちょっと追加

"@location-state/core": patch
"@location-state/next": patch
"@location-state/core": major
"@location-state/next": major
---

Initial construction of the package.
Copy link
Member

Choose a reason for hiding this comment

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

これも微妙だなー
constructionっていうとシステムとかの構築では使ってもライブラリで使うんだっけ?という疑問が (というかまず見かけない気がする)
ここはシンプルに「Initial release.」でいいかなぁ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

修正しました。
8247dd0

README.md Outdated
[![npm version](https://badge.fury.io/js/@location-state%2Fcore.svg)](https://badge.fury.io/js/@location-state%2Fcore)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

State management library for React that synchronizes with history entries supporting Next.js App Router.
Copy link
Member

Choose a reason for hiding this comment

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

history entriesとhistory locationが混在するのも気になるので一行紹介もhistory locationに揃えましょうか

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

修正しました。
8247dd0

export function Providers({ children }: { children: React.ReactNode }) {
return <LocationStateProvider>{children}</LocationStateProvider>;
}

Copy link
Member

Choose a reason for hiding this comment

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

ここでファイルが変わるのでコードブロックも区切りましょうか

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

修正しました。
8247dd0

Copy link
Member

@koichik koichik left a comment

Choose a reason for hiding this comment

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

乙! LGTM!!!

@AkifumiSato AkifumiSato merged commit dc68ac6 into main Sep 22, 2023
2 checks passed
@AkifumiSato AkifumiSato deleted the readme branch September 22, 2023 11:14
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