Repository navigation
fix(workshop): 让主题投稿和 ZIP 入口可用 - #2054
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Devin Review found 1 potential issue.
2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| onPressed: () => unawaited( | ||
| Navigator.of(context).push(MaterialPageRoute<void>(builder: (_) => const WorkshopPublishPage())), | ||
| ), |
There was a problem hiding this comment.
🟡 Wrong destination after Workshop submission
After submitting from Browse, “Back to My uploads” returns to Browse. The result button calls _leave, which pops WorkshopPublishPage without switching tabs.
Learn more
Before Browse could open the submission page directly, the My uploads launcher had already selected the destination tab. The result action still assumes that popping the submission page returns to that tab. The new launcher leaves Browse selected.
Example: Open Browse, submit a theme, and tap “Back to My uploads” on the confirmation screen. Browse reappears instead of the submission list.
Recommended fix: Return a distinct navigation result from the explicit My uploads action and have the Browse launcher select WorkshopTab.mine on that result. Preserve ordinary Back behavior. Add a widget test that starts from Browse and checks the selected tab after tapping the result action.
Was this helpful? React with 👍 or 👎 to provide feedback.
Why the change
主题工坊的「发现」页找不到投稿入口,投稿页会保留旧的本机来源列表,文件提示也漏写了主题 ZIP。
Special things to note
Change outline
「发现 → 投稿」直接打开原投稿页;结果页的「回到我的投稿」会切到对应标签,普通返回仍留在「发现」。来源列表离开后释放,重进时读取本机主题;ZIP 行不依赖本机列表加载,系统文件选择器失败后会提示并允许重试。同步中英文说明及内置指南,并补回归用例:发现页导航、来源刷新、选档失败重试,以及本机主题和 ZIP 的两条打包路径。
Verification
git diff --cached --checkpython3 app/tool/l10n_merge.py --checkpython3 app/tool/guide_sync.py --checkdart format --output=none(改动的 Dart 文件)Summary by CodeRabbit