jangerhard / jangerhard/react-github-showcase

Feature - Enhance error page

未关闭
#8 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement good first issue help wanted
主要语言
JavaScript
星标
2
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

Is your feature request related to a problem? Please describe.
Make sure the component shows a nice-looking message if the component crashes by a 401.

Describe the solution you'd like
Display information stating that the API-key is expired/invalid.

The file "ErrorComponent.js" currently shows an error message in plaintext, but the look is really ugly. Anything else is preferred! Preferably with a picture indicating something went wrong.

Test plan

We need snapshot testing and unit testing!

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 ErrorComponent.js 及其当前针对 401 的纯文本错误路径开始;在添加所请求的 snapshot 和 unit 覆盖之前,先检查现有的测试设置。完成的标准是,该组件针对已过期或无效的 API-key 提供更清晰的消息,并采用改进的视觉呈现,同时两种测试类型都覆盖这一情况。

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

评估

技术栈
javascript, react
领域
frontend, testing
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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