fix: 릴리즈 하단 버튼을 한 줄에 세우고, 로그인을 화면으로 만든다
릴리즈 편집 맨 아래에서 저장과 공개가 서로 다른 높이에 서 있었다. `.studio-secondary-button` 는 목록 행에서 쓰려고 전역으로 `margin-top: 24px` 를 갖는데 하단 푸터에서 primary 만 그 여백을 풀어 주고 있었다 — 그래서 저장은 위에, 공개와 공개에서 내리기는 24px 아래에 앉았다. 로그인은 화면이 없었다. `ui-page` 위에 제목 한 줄과 버튼 하나가 전부라, 보호된 주소를 열었을 때 페이지처럼 보이지 않았다. 카드 하나로 세우고 eyebrow·제목·설명·행동을 갖춘 뒤, 로그인하면 어디로 돌아오는지까지 적는다 — 그것이 이 화면이 답해야 할 질문이다. 오류 화면과 다른 모양이어야 한다. 같은 모양이면 작성자는 무언가 고장 난 줄로 읽는다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XEHXspz4rv5pB5wiiSsVDu
This commit is contained in:
co-authored by
Claude Opus 5
parent
f9d20e8946
commit
6b9dc3f0a2
@@ -87,6 +87,8 @@ const PLATFORM_KO_MESSAGES = {
|
||||
"route.auth.integration.description":
|
||||
"외부 인증 소유자가 연결되면 이 보호 라우트를 사용할 수 있습니다.",
|
||||
"route.auth.recovering.title": "세션을 복구하고 있습니다.",
|
||||
"route.auth.eyebrow": "SIGN IN",
|
||||
"route.auth.returnTo": "로그인하면 {path} 로 돌아옵니다.",
|
||||
"route.auth.required.title": "Studio에 로그인해 주세요.",
|
||||
"route.auth.recovering.description":
|
||||
"이전 로그인이 아직 살아 있는지 확인하고 있습니다. 잠시 뒤에도 이 화면이면 다시 시도해 주세요.",
|
||||
@@ -274,6 +276,8 @@ const PLATFORM_EN_MESSAGES = {
|
||||
"route.auth.integration.description":
|
||||
"This protected route is available after an external authentication owner is connected.",
|
||||
"route.auth.recovering.title": "Recovering the session.",
|
||||
"route.auth.eyebrow": "SIGN IN",
|
||||
"route.auth.returnTo": "You return to {path} after signing in.",
|
||||
"route.auth.required.title": "Sign in to Studio.",
|
||||
"route.auth.recovering.description":
|
||||
"Checking whether the previous sign-in is still valid. Try again if this screen stays.",
|
||||
|
||||
@@ -241,35 +241,48 @@ function ProtectedRoute({
|
||||
);
|
||||
}
|
||||
const recovering = decision.action === "wait-for-session";
|
||||
/*
|
||||
Signing in is a screen, not a bare gate. This used to be a title and a button
|
||||
dropped on `ui-page`, so opening a protected address showed no page at all —
|
||||
just two stray elements. It is one card now, and it names the address the
|
||||
visitor came for so they know where signing in returns them.
|
||||
*/
|
||||
return (
|
||||
<section className="ui-page" data-surface="authentication-required">
|
||||
<PageHeader
|
||||
title={
|
||||
recovering
|
||||
? message("route.auth.recovering.title")
|
||||
: message("route.auth.required.title")
|
||||
}
|
||||
description={
|
||||
recovering
|
||||
? message("route.auth.recovering.description")
|
||||
: message("route.auth.required.description")
|
||||
}
|
||||
/>
|
||||
<Button
|
||||
disabled={pending}
|
||||
onClick={() => void continueSession()}
|
||||
>
|
||||
{pending
|
||||
? message("common.processing")
|
||||
: recovering
|
||||
? message("action.recoverSession")
|
||||
: message("action.signIn")}
|
||||
</Button>
|
||||
{failed ? (
|
||||
<p className="ui-terminal-error" role="alert">
|
||||
{message("shell.session.actionFailed")}
|
||||
</p>
|
||||
) : null}
|
||||
<section className="ui-page auth-gate" data-surface="authentication-required">
|
||||
<div className="auth-gate__card">
|
||||
<PageHeader
|
||||
eyebrow={message("route.auth.eyebrow")}
|
||||
title={
|
||||
recovering
|
||||
? message("route.auth.recovering.title")
|
||||
: message("route.auth.required.title")
|
||||
}
|
||||
description={
|
||||
recovering
|
||||
? message("route.auth.recovering.description")
|
||||
: message("route.auth.required.description")
|
||||
}
|
||||
/>
|
||||
<div className="auth-gate__actions">
|
||||
<Button disabled={pending} onClick={() => void continueSession()}>
|
||||
{pending
|
||||
? message("common.processing")
|
||||
: recovering
|
||||
? message("action.recoverSession")
|
||||
: message("action.signIn")}
|
||||
</Button>
|
||||
<p className="auth-gate__return">
|
||||
{message("route.auth.returnTo", {
|
||||
path: `${location.pathname}${location.search}`,
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
{failed ? (
|
||||
<p className="ui-terminal-error" role="alert">
|
||||
{message("shell.session.actionFailed")}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user