Skip to content

add guidance#374

Open
AlexisEvan wants to merge 3 commits into
mainfrom
Add-user-guidance
Open

add guidance#374
AlexisEvan wants to merge 3 commits into
mainfrom
Add-user-guidance

Conversation

@AlexisEvan
Copy link
Copy Markdown
Collaborator

截屏2026-05-17 下午7 34 23 截屏2026-05-17 下午7 34 51

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

Test Results

24 tests   24 ✅  2s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit e1797aa.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

Package Line Rate Branch Rate Complexity Health
BlotzTask 3% 14% 1590
BlotzTask 3% 14% 1590
Summary 3% (1812 / 63148) 14% (196 / 1428) 3180

Comment thread blotztask-mobile/src/feature/gashapon-machine/screens/gashapon-machine-screen.tsx Outdated
Comment thread blotztask-mobile/src/feature/gashapon-machine/screens/gashapon-machine-screen.tsx Outdated
Comment thread blotztask-mobile/src/feature/gashapon-machine/screens/gashapon-machine-screen.tsx Outdated
Comment thread blotztask-mobile/src/feature/gashapon-machine/screens/gashapon-machine-screen.tsx Outdated
export default function GashaponMachineScreen() {
const { t } = useTranslation("notes");
const translatedHelpSteps = t("gashapon.helpSteps", { returnObjects: true });
const helpSteps = Array.isArray(translatedHelpSteps)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this doing

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useTranslation("notes") means will look for the translation files in notes.json.
translatedHelpSteps means read gashapon.helpSteps from notes.json
the return type of t() is string, "helpSteps" make sure always returns an array to avoid crush

Comment thread blotztask-mobile/src/i18n/locales/zh/notes.json Outdated
Comment thread blotztask-mobile/src/i18n/locales/zh/notes.json Outdated
Comment thread blotztask-mobile/src/feature/gashapon-machine/screens/gashapon-machine-screen.tsx Outdated
shadowOffset: { width: 0, height: 10 },
shadowRadius: 20,
elevation: 10,
}}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use tailwind css for this?

<SafeAreaView className="flex-1 items-center justify-center">
<Pressable
accessibilityRole="button"
accessibilityLabel={t("gashapon.helpButtonA11yLabel")}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think you need accessibilityLabel

className="absolute right-6 z-50 w-9 h-9 items-center justify-center rounded-full bg-white/90 border border-[#D6E8C7]"
style={{ top: 110 }}
>
<Text className="text-lg font-bold text-secondary">?</Text>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to use icon instead of text

style={{ flex: 1 }}
>
<SafeAreaView className="flex-1 items-center justify-center">
<Pressable
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

The button location is weird. You need to make it on the same line as the "Go Back" button. Please don't use absolute positioning.

"先晃一晃手机,打乱星星顺序。",
"然后按住红色按钮,像拧瓶盖一样绕圈转动 2-3 圈。",
"听到“咔哒”声后,小门会打开。",
"最后将手机向左倾斜,机器会随机掉落一个便签,作为你接下来的任务。"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check the content here 🥲 why are you using English comma in some places and Chinese comma in others.
Also, you need to tell users they need to shake their phone to the left at the same time they spin the red button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants