Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Improve task error screens to refresh instead of navigating away

未关闭 适合新手
#18,888 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
typescript
领域
frontend

调研方向

从 site/src/pages/TaskPage/TaskPage.tsx 开始,阅读第 50-78 行以了解任务加载错误,以及第 130-145 行以了解构建失败。追踪现有错误屏幕的操作,并遵循当前的 UX 模式和样式。完成标准是两个错误屏幕都提供上下文中的刷新或重试,保留现有的导航选项作为次要操作,并在重试时让用户保持在任务上下文中。

由索引模型根据 Issue 内容生成。

描述

Problem

When a task encounters an error (either during loading or build failure), the current error screens provide navigation buttons that take users away from the task context instead of allowing them to retry within the same context.

Current behavior:

  • Task loading errors show "Back to tasks" button that navigates to /tasks
  • Task build failures show "View logs" button that navigates to build logs
  • Users lose their current task context and have to navigate back manually

Expected Behavior

Task error screens should provide a way to refresh/retry the current task without navigating away from the task context.

Proposed solution:

  • Replace or supplement "Back to tasks" with a "Refresh" or "Try Again" button that refreshes the current page
  • Keep users in the task context while providing retry functionality
  • Maintain existing navigation options as secondary actions

Code Location

The issue is in /site/src/pages/TaskPage/TaskPage.tsx:

  • Lines 50-78: Task loading error handling
  • Lines 130-145: Task build failure error handling

Acceptance Criteria

  • Task error screens include a refresh/retry button that reloads the current task
  • Users remain in the task context when retrying
  • Existing navigation options are preserved as secondary actions
  • Error handling maintains current UX patterns and styling
主要语言
Go
星标
16.6k
派生
1.6k
平均合并
1 天 23 小时
30 天内合并 PR
543

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/coder 的其他 Issue

查看 coder/coder 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。