-
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: Fix flow from subnav #8822
imprv: Fix flow from subnav #8822
Conversation
- add flag on subnav and switching register link appearance
- add flag to common props
- set flag swr from common props
apps/app/src/pages/utils/commons.ts
Outdated
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.
/pages/[[...path]].page.tsx と /pages/share/[[...path]].page.tsx で利用する程度でしたら、commons ではなくそれらの Next Page に直接取得処理を書くで良いかもしれないです。
props.currentUser など大半の Next Page で利用する値の取得を commons に書くイメージです。
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.
common から取り除き、それぞれのページコンポーネントで個別にサーバサイドから取得する実装を加えました。
- move isRegistrationEnabled from common to specific files
reg-suit detected visual differences. Check this report, and review them. 🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴 ⚫⚫⚫⚫⚫⚫⚫⚫⚫⚫⚫⚫⚫⚫ What do the circles mean?The number of circles represent the number of changed images.🔴 : Changed items, ⚪ : New items, ⚫ : Deleted items, and 🔵 Passed items How can I change the check status?If reviewers approve this PR, the reg context status will be green automatically. |
@@ -45,6 +47,7 @@ type Props = CommonProps & { | |||
isSearchServiceReachable: boolean, | |||
isSearchScopeChildrenAsDefault: boolean, | |||
isEnabledMarp: boolean, | |||
isRegistrationEnabled: boolean, |
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.
isLocalAccountRegistrationEnabled
に変更する
<Link href="/login#register" className="btn me-2" prefetch={false}> | ||
<span className="material-symbols-outlined me-1">person_add</span>{t('Sign up')} | ||
</Link> | ||
)} |
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.
ストーリーの期待される動作通りではないが、それがベストではない気もする。
再考してほしい。
グレーアウト案
ストーリーの説明ではグレーアウトさせるのが期待される動作となっている
disabled にするのであれば tooltip も一緒に実装すべき
ボタンを表示しない案
OIDC や SAML で初回ログインすれば新規作成できる場合、「ログイン」ボタンをクリックする気になるだろうか?
表示はするが href をログイン画面にする案
ボタンは表示しつつ、href を /login
にする?
ログインボタンのラベルを「新規作成 or ログイン」にする案
ただし local account が有効だろうが無効だろうが、OIDC / SAML でも新規アカウント作成できる点はかわらない
その条件で変えてしまっていいだろうか?
|
task
https://redmine.weseek.co.jp/issues/146145
window image