Repository navigation
refactor(web): 将风险审计拆为前置、Jev 和状态三页 - #1171
Merged
Merged
Conversation
Contributor
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: b6911bac-6aa3-479b-82cd-43c660aab378) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
验证
Note
Low Risk
Frontend-only panel reorganization and documentation; behavior and API contracts are unchanged, with navigation compatibility and draft-leave guards added.
Overview
Replaces the old gate rail (per-stage tabs plus inline stats/settings) with three top-level tabs: 前置 (account scope, distill, hard regex, refusal/ban tooling), Jev (model config, usage, downgrade routing), and 状态 (default landing — today’s metrics, filtered hits/feeds, ban/fingerprint records, upstream 400, downgrade and pass breakdowns).
Refusal / policy UI is split by context: instant toggles and ban/tool/phrase policy on 前置; downgrade targets and margins on Jev via a
sectionprop onRefusalSettingsandRiskPolicyForm. Ban records move to 状态 asRefusalRecords. Navigation uses newriskSearch(with vitest coverage) so legacyview=distill|hard-regex|refusallinks open 前置; unknown views default to 状态. Unsaved drafts are tracked per area and guarded withuseBlockerwhen switching tabs or rules.docs/RISK.md is updated to describe the three panel areas.
gate-rail.tsxis removed; small layout/copy tweaks elsewhere (e.g. toggle grid, Jev label in feeds).Reviewed by Cursor Bugbot for commit 4b5e961. Configure here.