Skip to content

Commit f263c74

Browse files
refactor(admin-ui): rename audit nav section and standardize route paths
Rename sidebar section from Activity to Audit, change nav labels to Query Logs / Admin Logs, and rename /audit route to /query-audit for consistency with /admin-audit.
1 parent a1373de commit f263c74

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

admin-ui/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function App() {
5757
<Route path="policies" element={<PoliciesListPage />} />
5858
<Route path="policies/create" element={<PolicyCreatePage />} />
5959
<Route path="policies/:id/edit" element={<PolicyEditPage />} />
60-
<Route path="audit" element={<QueryAuditPage />} />
60+
<Route path="query-audit" element={<QueryAuditPage />} />
6161
<Route path="admin-audit" element={<AdminAuditPage />} />
6262
</Route>
6363
</Route>

admin-ui/src/components/Layout.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ export function Layout() {
109109
</NavLink>
110110
</div>
111111

112-
{/* Activity */}
112+
{/* Audit */}
113113
<div className="space-y-1">
114-
<p className="px-3 text-[10px] font-semibold text-gray-500 uppercase tracking-wider">Activity</p>
114+
<p className="px-3 text-[10px] font-semibold text-gray-500 uppercase tracking-wider">Audit</p>
115115
<NavLink
116-
to="/audit"
116+
to="/query-audit"
117117
className={({ isActive }) =>
118118
`flex items-center gap-2 px-3 py-2 rounded-lg text-sm transition-colors ${
119119
isActive
@@ -125,7 +125,7 @@ export function Layout() {
125125
<svg className="h-4 w-4" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor">
126126
<path strokeLinecap="round" strokeLinejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
127127
</svg>
128-
Query Audit
128+
Query Logs
129129
</NavLink>
130130
<NavLink
131131
to="/admin-audit"
@@ -140,7 +140,7 @@ export function Layout() {
140140
<svg className="h-4 w-4" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor">
141141
<path strokeLinecap="round" strokeLinejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15a2.25 2.25 0 0 1 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z" />
142142
</svg>
143-
Admin Audit
143+
Admin Logs
144144
</NavLink>
145145
</div>
146146
</nav>

0 commit comments

Comments
 (0)