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

imprv: Corrected wording on admin page (/admin/data-transfer) #9098

Merged

Conversation

shironegi39
Copy link
Contributor

@shironegi39 shironegi39 commented Sep 11, 2024

Task

改善 #144244 [v7] 管理画面 (/admin/data-transfer) の文言修正
#153642 文言修正

各言語

  • 英語: For more details, please click here.
  • フランス語: Pour plus de détails, veuillez cliquer ici.
  • 中国語: 有关更多详情,请点击此处。

画面スクリーンショット

org

(左下の path 差分)
スクリーンショット 2024-09-11 163940

cloud

(左下の path 差分)
スクリーンショット 2024-09-11 164057

英語

スクリーンショット 2024-09-12 143146

フランス

スクリーンショット 2024-09-12 143211

中国語

スクリーンショット 2024-09-12 143159

備考

現状、遷移先の「GROWI お引越し機能」 のページについては、日本語以外、未実装のためすべての遷移先を、日本語としている、
英語版「GROWI お引越し機能」ページ作成、link の変更については、後続ストーリーを作成

Copy link

changeset-bot bot commented Sep 11, 2024

⚠️ No Changeset found

Latest commit: ada4bba

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

@shironegi39 shironegi39 changed the title Corrected wording on admin page (/admin/data-transfer) imprv: Corrected wording on admin page (/admin/data-transfer) Sep 11, 2024
@shironegi39 shironegi39 marked this pull request as ready for review September 12, 2024 05:39
@@ -159,6 +159,6 @@
"publish_transfer_key": "移行キーを発行する",
"transfer_key_limit": "※ 移行キーの有効期限は発行から1時間となります。",
"once_transfer_key_used": "※ 移行キーは一度移行に利用するとそれ以降はご利用いただけなくなります。",
"transfer_to_growi_cloud": "※ GROWI.cloud への移行を実施する場合はこちらをご確認ください。"
"transfer_to_growi_cloud": "※ 詳しくは <a href='https://{{growiDataTransferHelpPage}}/ja/admin-guide/management-cookbook/g2g-transfer.html'>こちら</a>"
Copy link
Contributor Author

@shironegi39 shironegi39 Sep 12, 2024

Choose a reason for hiding this comment

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

https://{{growiDataTransferHelpPage}}/ja/admin-guide/management-cookbook/g2g-transfer.html
として、後続ストーリーで en ページができた際に、 ja 部分を en に変更すると英語ページに遷移できる想定です

Copy link
Member

@miya miya Sep 12, 2024

Choose a reason for hiding this comment

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

  • growiDataTransferHelpPage という変数名には少し違和感があります
  • growi.cloud/help or docs.growi.org が来るのであればドメイン名なのでそのニュアンスの変数名に修正お願いします

Copy link
Contributor Author

@shironegi39 shironegi39 Sep 12, 2024

Choose a reason for hiding this comment

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

growiHelpDomain
に変更しました

Copy link
Member

Choose a reason for hiding this comment

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

すみません、growi.cloud/help もあるのでドメインではなかったですね.. documentationUrl などはどうでしょうか?

@@ -123,6 +126,8 @@ const G2GDataTransfer = (): JSX.Element => {
}
}, [setTransferring, startTransferKey, selectedCollections, optionsMap]);

const growiDataTransferHelpPage = growiCloudUri != null && growiAppIdForGrowiCloud != null ? 'growi.cloud/help' : 'docs.growi.org';

Copy link
Member

Choose a reason for hiding this comment

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

このロジックは GROWI 全体で使えそうなロジックなので、useGrowiCloudUri と useGrowiAppIdForGrowiCloud を見て growi.cloud/help か docs.growi.org を返却してくれるカスタム Hook を作ったほうがいいかもしれません。

参考

https://github.com/weseek/growi/blob/e25be0382777e0100735252fb4d8d63288b4026c/apps/app/src/stores-universal/context.tsx#L211-L288

Copy link
Contributor Author

Choose a reason for hiding this comment

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

作成しました

@@ -159,6 +159,6 @@
"publish_transfer_key": "移行キーを発行する",
"transfer_key_limit": "※ 移行キーの有効期限は発行から1時間となります。",
"once_transfer_key_used": "※ 移行キーは一度移行に利用するとそれ以降はご利用いただけなくなります。",
"transfer_to_growi_cloud": "※ GROWI.cloud への移行を実施する場合はこちらをご確認ください。"
"transfer_to_growi_cloud": "※ 詳しくは <a href='https://{{growiDataTransferHelpPage}}/ja/admin-guide/management-cookbook/g2g-transfer.html'>こちら</a>"
Copy link
Member

@miya miya Sep 12, 2024

Choose a reason for hiding this comment

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

  • growiDataTransferHelpPage という変数名には少し違和感があります
  • growi.cloud/help or docs.growi.org が来るのであればドメイン名なのでそのニュアンスの変数名に修正お願いします

@@ -285,3 +285,18 @@ export const useAcceptedUploadFileType = (): SWRResponse<AcceptedUploadFileType,
},
);
};

export const useGrowiHelpDomain = (): SWRResponse<'growi.cloud/help' | 'docs.growi.org', Error> => {
Copy link
Member

Choose a reason for hiding this comment

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

Help という文字が含まれていると GROWI.cloud の Help サイトっぽいニュアンスになるので useGrowiDocumentationUrl などはどうでしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

useGrowiDocumentationUrl
に変更しました

@@ -159,6 +159,6 @@
"publish_transfer_key": "移行キーを発行する",
"transfer_key_limit": "※ 移行キーの有効期限は発行から1時間となります。",
"once_transfer_key_used": "※ 移行キーは一度移行に利用するとそれ以降はご利用いただけなくなります。",
"transfer_to_growi_cloud": "※ GROWI.cloud への移行を実施する場合はこちらをご確認ください。"
"transfer_to_growi_cloud": "※ 詳しくは <a href='https://{{growiDataTransferHelpPage}}/ja/admin-guide/management-cookbook/g2g-transfer.html'>こちら</a>"
Copy link
Member

Choose a reason for hiding this comment

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

すみません、growi.cloud/help もあるのでドメインではなかったですね.. documentationUrl などはどうでしょうか?

const { data: growiAppIdForGrowiCloud } = useGrowiAppIdForGrowiCloud();

return useSWRImmutable(
[growiCloudUri, growiAppIdForGrowiCloud],
Copy link
Member

Choose a reason for hiding this comment

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

これより上に const key = "growiDocumentationUrl" のような key を作って useSWRImmutable の配列に入れるようにしてください

Copy link
Contributor Author

@shironegi39 shironegi39 Sep 13, 2024

Choose a reason for hiding this comment

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

他の Hook を見ると
['documentationUrl', growiCloudUri, growiAppIdForGrowiCloud]
でも行けそうなので、こちらに変更しました

mergify bot added a commit that referenced this pull request Sep 12, 2024
@mergify mergify bot merged commit 26b6204 into master Sep 12, 2024
17 checks passed
@mergify mergify bot deleted the imprv/144244-153642-corrected-wording-on-management-screeen branch September 12, 2024 10:10
@github-actions github-actions bot mentioned this pull request Sep 12, 2024
miya added a commit that referenced this pull request Sep 12, 2024
…ected-wording-on-management-screeen"

This reverts commit 26b6204, reversing
changes made to 42a65bd.
@miya miya restored the imprv/144244-153642-corrected-wording-on-management-screeen branch September 12, 2024 10:17
miya added a commit that referenced this pull request Sep 12, 2024
…642-corrected-wording-on-management-screeen""

This reverts commit 5511beb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants