diff --git a/components/conference/ConferenceDetails.test.tsx b/components/conference/ConferenceDetails.test.tsx
index a1d2e4135..7556a82c7 100644
--- a/components/conference/ConferenceDetails.test.tsx
+++ b/components/conference/ConferenceDetails.test.tsx
@@ -597,7 +597,7 @@ describe("ConferenceDetails", () => {
mockUser = { uid: "reader", emailVerified: true }
render()
expect(
- screen.getByRole("dialog", { name: "input.panel_title" })
+ screen.getByRole("dialog", { name: "input.cosign_title" })
).toBeInTheDocument()
letGo()
})
@@ -613,7 +613,7 @@ describe("ConferenceDetails", () => {
mockUser = { uid: "reader", emailVerified: true }
rerender()
expect(
- screen.getByRole("dialog", { name: "input.panel_title" })
+ screen.getByRole("dialog", { name: "input.cosign_title" })
).toBeInTheDocument()
expect(mockDispatch).toHaveBeenCalledTimes(1)
})
diff --git a/components/conference/ConferenceDetails.tsx b/components/conference/ConferenceDetails.tsx
index a41ecd49f..5b11bee3d 100644
--- a/components/conference/ConferenceDetails.tsx
+++ b/components/conference/ConferenceDetails.tsx
@@ -664,12 +664,15 @@ function InputPanel({
return () => onDraft(undefined)
}, [edit.draft, edit.loading, onDraft])
+ const mode = cosigning ? "cosign_" : ""
const title =
step === "review"
- ? "input.review_title"
- : cosigning && edit.publication
+ ? `input.${mode}review_title`
+ : !cosigning
+ ? "input.panel_title"
+ : edit.publication
? "input.cosign_edit_title"
- : "input.panel_title"
+ : "input.cosign_title"
return (
{
const onPosted = jest.fn()
const onStep = jest.fn()
mount(edit, "write", { onPosted, onStep })
- press("input.review")
+ press("input.cosign_review")
expect(onStep).not.toHaveBeenCalled()
fireEvent.click(
screen.getByRole("checkbox", { name: "input.cosign_no_words_label" })
)
expect(screen.getByRole("textbox")).toBeDisabled()
- press("input.review")
+ press("input.cosign_review")
expect(onStep).toHaveBeenCalledWith("review")
expect(edit.publishTestimony.execute).not.toHaveBeenCalled()
})
@@ -254,7 +254,7 @@ describe("CosignForm", () => {
fireEvent.change(screen.getByRole("textbox"), {
target: { value: "After." }
})
- press("input.review")
+ press("input.cosign_review")
expect(onStep).toHaveBeenCalledWith("review")
})
diff --git a/components/conference/input/CosignForm.tsx b/components/conference/input/CosignForm.tsx
index 6cabf2fad..18d3191ba 100644
--- a/components/conference/input/CosignForm.tsx
+++ b/components/conference/input/CosignForm.tsx
@@ -24,6 +24,7 @@ import {
Body,
ConductRule,
Field,
+ Hint,
Label,
Muted,
Primary,
@@ -233,6 +234,12 @@ const Optional = styled(Cosigned)`
color: ${ink.faint};
`
+/** Where the reader's line lands in the letter. */
+const LineHint = styled(Hint)`
+ margin: -4px 0 8px;
+ text-align: left;
+`
+
const NoteField = styled(Field)`
&:disabled {
background: ${wash.default};
@@ -447,6 +454,9 @@ export function CosignForm({
{t("input.cosign_body_label")}{" "}
{t("input.cosign_optional")}
+
+ {t("input.cosign_line_hint", { name: nameOf(parent) })}
+
(ready ? onStep("review") : ask.ask())}
>
- {t("input.review")}
+ {t("input.cosign_review")}