code-corps / code-corps/code-corps-ember

Add loading state to volunteer-headshot component

未关闭
#1,221 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Difficulty: Easy feature Skill: CSS Skill: Ember.js Skill: HTML Skill: JavaScript
主要语言
JavaScript
星标
120
派生
75
PR 合并指标
30 天内没有已合并 PR

描述

# Problem

The `volunteer-headshot` should have some loading states for async data.

## Subtasks
- [ ] Add a light gray background for the image as a placeholder, until loaded (keeping in mind that a user may have a transparent PNG, so the background shouldn't remain gray)
- [ ] Add a light gray rectangular area for the user's name as a placeholder, until loaded
- [ ] Add a light gray rectangular area for the user's role as a placeholder, until loaded

贡献指南

打开贡献指南

调研方向

找到 `volunteer-headshot` 组件,并检查异步数据等待期间其图像、姓名和角色的渲染方式。为这三个区域都添加加载占位符,确保透明 PNG 加载后图像背景不会仍然是灰色;当每个占位符都被已加载的内容替换时即可完成。

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

评估

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

把新 issue 发到你的邮箱

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