feat(web): show task logs only to administrators - #1
Merged
Conversation
…n user role - Created project function and design documentation in `docs/project/README.md`, `docs/project/architecture.md`, `docs/project/billing-and-data.md`, `docs/project/development-guide.md`, `docs/project/frontend-design.md`, `docs/project/relay-pipeline.md`, and `docs/project/features.md`. - Implemented a `.gitignore` file for CodeGraph data files. - Updated `SiderBar.jsx` to conditionally display the task item based on user role and local storage setting. - Enhanced `use-sidebar-data.ts` to include task logs visibility for admin users only.
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.
Important
📝 变更描述 / Description
普通用户不再看到“任务日志”导航入口,管理员和根用户仍可正常使用。
role >= 10时添加。docs/project/功能与设计文档,记录导航可见性与后端授权的边界。此变更只控制导航入口可见性,不改变直接 URL 或后端日志接口的现有权限。
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
web/default: TypeScript、Oxlint 和 Oxfmt 检查通过,bun run build通过。web/classic: ESLint 和 Prettier 检查通过,bun run build通过。