-
Notifications
You must be signed in to change notification settings - Fork 220
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
imprv: Corrected wording on admin page (/admin/data-transfer) #9098
Conversation
|
@@ -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>" |
There was a problem hiding this comment.
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 に変更すると英語ページに遷移できる想定です
There was a problem hiding this comment.
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 が来るのであればドメイン名なのでそのニュアンスの変数名に修正お願いします
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
growiHelpDomain
に変更しました
There was a problem hiding this comment.
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'; | |||
|
There was a problem hiding this comment.
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 を作ったほうがいいかもしれません。
参考
There was a problem hiding this comment.
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>" |
There was a problem hiding this comment.
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> => { |
There was a problem hiding this comment.
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
などはどうでしょうか?
There was a problem hiding this comment.
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>" |
There was a problem hiding this comment.
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], |
There was a problem hiding this comment.
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 の配列に入れるようにしてください
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
他の Hook を見ると
['documentationUrl', growiCloudUri, growiAppIdForGrowiCloud]
でも行けそうなので、こちらに変更しました
…642-corrected-wording-on-management-screeen"" This reverts commit 5511beb.
Task
改善 #144244 [v7] 管理画面 (/admin/data-transfer) の文言修正
┗ #153642 文言修正
各言語
画面スクリーンショット
org
(左下の path 差分)
![スクリーンショット 2024-09-11 163940](https://private-user-images.githubusercontent.com/104429196/366369884-fb537fe1-178d-4259-9187-7076e464a5f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDk2OTMsIm5iZiI6MTczOTUwOTM5MywicGF0aCI6Ii8xMDQ0MjkxOTYvMzY2MzY5ODg0LWZiNTM3ZmUxLTE3OGQtNDI1OS05MTg3LTcwNzZlNDY0YTVmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNTAzMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NWJkZmQ1MGViYTg1MjM5MzFiM2ZiYmFhOGEyMWUxNTU1ZDhiZDUzMDczMTkzZWEyYTEwM2RhZmY2OWYyMTZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Dqpc27qFVIHT_tiGQ4_LGciPMYLEoG40KXraJK2ASAc)
cloud
(左下の path 差分)
![スクリーンショット 2024-09-11 164057](https://private-user-images.githubusercontent.com/104429196/366369919-c053c51c-216e-4436-b7e5-7f0b1bf74573.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDk2OTMsIm5iZiI6MTczOTUwOTM5MywicGF0aCI6Ii8xMDQ0MjkxOTYvMzY2MzY5OTE5LWMwNTNjNTFjLTIxNmUtNDQzNi1iN2U1LTdmMGIxYmY3NDU3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNTAzMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04OGFlYTQxMjQ5NTgxNTA3OTdjOWY5ODgwNDMzMTc1ZjQzYjY0YzQxMTZjOTNlYzVmOTY1MWIyZDkzMjE2NTNlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dvIAHN64OTCPcaA8XsxBFcEgchkqNZNaMTUhB_NXqmw)
英語
フランス
中国語
備考
現状、遷移先の「GROWI お引越し機能」 のページについては、日本語以外、未実装のためすべての遷移先を、日本語としている、
英語版「GROWI お引越し機能」ページ作成、link の変更については、後続ストーリーを作成