Skip to content

fix(activity): 修正活动状态和项目社团筛选 - #234

Merged
Palind-Rome merged 1 commit into
devfrom
fix/12-activity-and-project-scope
Sep 10, 2026
Merged

Palind-Rome merged 1 commit into
devfrom
fix/12-activity-and-project-scope

Conversation

@Palind-Rome

Copy link
Copy Markdown
Owner

变更说明

  • 根据报名截止时间、活动开始时间和结束时间计算展示状态:已截止显示“报名已截止”,已开始且未结束显示“进行中”,结束后显示“活动已结束”。页面每 30 秒刷新当前时间,避免长时间停留时状态过期。
  • 活动筛选、状态标签和报名按钮统一使用计算后的展示状态;已截止或进行中的活动不可重复报名。
  • 项目管理和论坛社团下拉框统一只展示已审核且正在运营的社团,过滤掉图灵社等未通过审核或已停运的社团;请求过期时不覆盖较新的数据,并在当前社团不再可选时清理筛选值。
  • 增加活动状态解析的回归测试,并扩展社团筛选测试覆盖项目列表。

验证

  • vitest run: 126 passed, 1 skipped
  • npm run build: exit code 0
  • Prettier check passed

Part of #12
Part of #16

@Palind-Rome Palind-Rome added bug Something isn't working 优先级:P1 核心功能任务 area:activity 活动创建、报名、签到、经费 area:project 项目、任务、成果 labels Sep 10, 2026
@Palind-Rome
Palind-Rome marked this pull request as ready for review September 10, 2026 08:29
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 1913cb5b-db54-46b4-acb0-af4d0725250a

📥 Commits

Reviewing files that changed from the base of the PR and between cf54e86 and 811a743.

📒 Files selected for processing (7)
  • frontend/src/activityStatus.test.ts
  • frontend/src/activityStatus.ts
  • frontend/src/forumClubScope.test.ts
  • frontend/src/forumClubScope.ts
  • frontend/src/views/ActivityList.vue
  • frontend/src/views/ForumCenter.vue
  • frontend/src/views/ProjectList.vue

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Palind-Rome
Palind-Rome merged commit f5de3b1 into dev Sep 10, 2026
18 of 19 checks passed
@Palind-Rome
Palind-Rome deleted the fix/12-activity-and-project-scope branch September 10, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:activity 活动创建、报名、签到、经费 area:project 项目、任务、成果 bug Something isn't working 优先级:P1 核心功能任务

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant