mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
fix(web): clarify open answer visibility
This commit is contained in:
1 parent
ade2c42d51
commit
49a9cd270f
3 files changed
+9
-2
No files matched your search
@@ -65,6 +65,13 @@ describe('/join/[code] JoinClient', () => {
|
|||||||
expect(source).not.toContain('glass-light')
|
expect(source).not.toContain('glass-light')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('describes open-answer visibility truthfully', async () => {
|
||||||
|
const source = await readFile(componentPath, 'utf8')
|
||||||
|
|
||||||
|
expect(source).toContain('For open-answer questions, each response can be visible after you have both answered.')
|
||||||
|
expect(source).not.toContain('Neither of you sees the other’s individual answers.')
|
||||||
|
})
|
||||||
|
|
||||||
it('shows a clear fallback message for a malformed invite code', async () => {
|
it('shows a clear fallback message for a malformed invite code', async () => {
|
||||||
const source = await readFile(componentPath, 'utf8')
|
const source = await readFile(componentPath, 'utf8')
|
||||||
|
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export function JoinClient({ code }: { code: string }) {
|
|||||||
const storeUnavailableTitle = isOnline ? undefined : 'Reconnect to open the app store.'
|
const storeUnavailableTitle = isOnline ? undefined : 'Reconnect to open the app store.'
|
||||||
const desktopCopy = platform === 'desktop'
|
const desktopCopy = platform === 'desktop'
|
||||||
? 'Sauci is a phone app. Copy your code, then open this link on your phone or install from the store there.'
|
? 'Sauci is a phone app. Copy your code, then open this link on your phone or install from the store there.'
|
||||||
: 'They have already answered questions about you two. When you join, you will both see only the things you agree on. Neither of you sees the other’s individual answers.'
|
: 'They have already answered questions about you two. Join them to discover what you have in common. For open-answer questions, each response can be visible after you have both answered.'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="min-h-screen bg-gradient-to-b from-background-light to-background">
|
<main className="min-h-screen bg-gradient-to-b from-background-light to-background">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { JoinClient } from './JoinClient'
|
|||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'Compare answers together on Sauci',
|
title: 'Compare answers together on Sauci',
|
||||||
description: 'Copy your invite code, then join Sauci to discover what you both agree on.',
|
description: 'Copy your invite code, then join Sauci to make shared discoveries together.',
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function JoinPage({
|
export default async function JoinPage({
|
||||||
|
|||||||
Reference in new issue
Block a user