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

Optionally show program status on the org profile's Events-attended cards

未关闭
#2,066 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rails, ruby

调研方向

从 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 (the events.each card loop). The events are already loaded there.
主要语言
Ruby
星标
15
派生
28
平均合并
1 天 12 分钟
30 天内合并 PR
262

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

rubyforgood/awbw 的其他 Issue

查看 rubyforgood/awbw 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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