Skip to content

feat: 添加 App 功能过滤规则 - #45

Merged
zhxycn merged 2 commits into
mainfrom
feat/filter
Nov 3, 2026
Merged

zhxycn merged 2 commits into
mainfrom
feat/filter

Conversation

@zhxycn

@zhxycn zhxycn commented Nov 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T08:36:28.232749Z 61b1d37 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61b1d37e1e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/functions/sections.ts
route: "/exam",
filter: {
requireBound: true,
allow: [{ eduLevels: ["本科"] }],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate the existing home exam entry too

When a non-undergraduate account is bound on a device that still has a previous exam import, this filter hides the Functions tile but Home can still show NextExamCard and navigate to /exam; unbinding does not clear the persisted exam store. Gate or suppress that Home entry too, or enforce eligibility at the route.

Useful? React with 👍 / 👎.

@zhxycn
zhxycn merged commit 26e3ac3 into main Nov 3, 2026
8 checks passed
@zhxycn
zhxycn deleted the feat/filter branch November 3, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant