Optionally show program status on the org profile's Events-attended cards
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
调研方向
从 app/views/organizations/sections/_events.html.erb 中的 events.each 卡片循环开始,然后检查 facilitator_status_as_of(event.start_date) 和 OrganizationDecorator.program_status_classes(status)。确认该徽章是遵循现有的仅管理员可见规则,还是会显示给已认证的查看者。完成标准是每个 Events-attended 卡片都呈现对应事件的状态,且不重复单独的 Program status 区块。
由索引模型根据 Issue 内容生成。
描述
🤖 From Claude: Raised as a "maybe" during the #1993 session; deferred.
Context
On the org profile (organizations#show), the admin-only "Program status" block shows one chip per event the org participated in — the org's facilitator-program status as of that event's date (New/Ongoing/Reinstate), each linking to the event participation report.
Separately, the "Events attended" section renders event cards (render "people/show_card" in app/views/organizations/sections/_events.html.erb) with no status on them.
Idea
Also surface each event's program status inline on its card in the Events-attended section, so the status is visible while browsing events — not only in the separate Program status block.
Notes for whoever picks this up
- Per-event status is already computed:
organization.decorate.facilitator_status_as_of(event.start_date)→OrganizationDecorator.program_status_classes(status)for the pill classes (New= indigo,Ongoing= blue,Reinstate= purple). - Visibility mismatch to resolve: the event cards are shown to authenticated users (gated by
profile_show_events_registered?), whereas the Program-status chips are admin-only (allowed_to?(:manage?, Organization)⇒admin?). Decide whether a per-card status badge should be admin-only too, or public. - Avoid duplicating the existing block — a small badge on the card, not a second full chip row.
- File:
app/views/organizations/sections/_events.html.erb(theevents.eachcard loop). The events are already loaded there.
- 主要语言
- Ruby
- 星标
- 15
- 派生
- 28
- 平均合并
- 1 天 12 分钟
- 30 天内合并 PR
- 262
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rubyforgood/awbw 的其他 Issue
-
blocked
难度 2/5 1-3 小时 新手友好度 68/100
rubyforgood/awbw#2824 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
rubyforgood/awbw#2822 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
rubyforgood/awbw#2160 ·
维护者通常 1 天内回复
-
Update callout faq defualt text when the new person subscription launches可能已有人在做 @maebeale 于 80 天前认领。 未关闭blocked
难度 2/5 1-3 小时 新手友好度 72/100
rubyforgood/awbw#2095 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
rubyforgood/awbw#2088 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 10 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 2 天内回复
-
area: devops area: integration help wanted lane: free-agent roadmap size: S type: fixture
难度 2/5 1-3 小时 新手友好度 87/100
arminazimi/evergreen#1505 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
waiting-intake
难度 2/5 1-3 小时 新手友好度 65/100