Repository navigation
整理制度版本、附件的表单;remove 兼容旧结构环境 - #40
Merged
Merged
Conversation
旧结构的环境里没有 brightrule_policy_attachment,统计附件数时 404 直接退出,一份都没删。 改为查不到就查旧的版本文档表(两者都随版本级联删除,删除顺序不变); 单份制度查询出错不再中断整批。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKKVniLvsfBswNHAfKKTVi
表单只放人填的字段:版本信息、正文(整行);原件保留给后期用,放在最后、默认折叠。 条号索引、字数、token、内容哈希由导入工具维护,不在表单里。字段下的提示改为给填表人 看的短句(对象字段的 description 写给 AI,不变)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKKVniLvsfBswNHAfKKTVi
- 去掉顶部重复的分组导航来源:主字段合成一组「版本信息」/「附件信息」,原件单独一组、默认折叠; - 版本号、版本状态等不再显示写给 AI 的说明(helpText 置空),只在正文下留一句怎么写; - 弹窗用 xl。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKKVniLvsfBswNHAfKKTVi
Merged
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.
改动
制度版本、附件的新建 / 编辑表单
helpText置空),只在正文下面留一句怎么写。对象字段的description不变,仍然给 AI 用。xl。remove 兼容还没部署附件子表的环境
brightrule_policy_attachment就改查旧的brightrule_policy_document。验证
os validate、tsc通过;脱敏工具单元测试通过。os dev浏览器实测「新建制度版本」「新建附件」:表单只有一组主字段,原件默认折叠,没有多余的说明文字。Refs #13
🤖 Generated with Claude Code
https://claude.ai/code/session_01RKKVniLvsfBswNHAfKKTVi