添加裁剪因素菜单并更新变更记录

This commit is contained in:
ittoview
2026-04-26 08:22:40 +01:00
parent a15c8b60d8
commit 06a45c4716
3 changed files with 10 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import {
Home,
BookOpen,
Layers,
Scissors,
LayoutGrid,
Share2,
Settings,
@@ -21,6 +22,7 @@ const navItems = [
{ path: '/process-practice', label: '过程背诵练习', icon: GraduationCap },
{ path: '/knowledge-areas', label: '知识领域', icon: BookOpen },
{ path: '/process-groups', label: '过程组', icon: Layers },
{ path: '/knowledge-areas-tailoring', label: '裁剪因素', icon: Scissors },
{ path: '/process-graph', label: '过程关系图', icon: Share2 },
{ path: '/principles', label: '十二项原则', icon: BookMarked },
{ path: '/performance-domains', label: '八大绩效域', icon: Gauge },
@@ -77,7 +79,7 @@ export function Sidebar() {
<ul className="space-y-1">
{navItems.map((item) => {
const isActive = location.pathname === item.path ||
(item.path !== '/' && location.pathname.startsWith(item.path))
(item.path !== '/' && location.pathname.startsWith(`${item.path}/`))
const Icon = item.icon
return (

View File

@@ -1,5 +1,12 @@
{
"changelogEntries": [
{
"id": "2026-04-26-tailoring-nav-entry",
"date": "2026-04-26",
"type": "feat",
"title": "新增“裁剪因素”侧边栏入口,并精简知识领域敏捷裁剪因素页面顶部说明文案",
"scope": "导航"
},
{
"id": "2026-04-15-control-procurements-fix",
"date": "2026-04-15",

View File

@@ -640,9 +640,6 @@ export default function KnowledgeAreasTailoringPage() {
<div className="flex items-end justify-between gap-4">
<div>
<h1 className="text-2xl font-bold text-gray-900 dark:text-white"></h1>
<p className="mt-1 text-sm text-gray-500 dark:text-gray-400">
线
</p>
</div>
</div>
)}