mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
feat(frontend): add shortcuts to audit logs (#2975)
* feat(frontend): add shortcuts to audit logs * feat(frontend): simplify audit logs shortcuts
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
Calendar,
|
||||
Share,
|
||||
Archive,
|
||||
Clipboard
|
||||
Clipboard,
|
||||
Eye
|
||||
} from 'lucide-svelte'
|
||||
|
||||
export let flow: Flow & { has_draft?: boolean; draft_only?: boolean; canWrite: boolean }
|
||||
@@ -160,6 +161,11 @@
|
||||
icon: List,
|
||||
href: `/runs/${path}`
|
||||
},
|
||||
{
|
||||
displayName: 'Audit logs',
|
||||
icon: Eye,
|
||||
href: `/audit_logs?resource=${path}`
|
||||
},
|
||||
{
|
||||
displayName: 'Move/Rename',
|
||||
icon: FileUp,
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
Calendar,
|
||||
Code,
|
||||
Copy,
|
||||
Eye,
|
||||
FileUp,
|
||||
GitFork,
|
||||
List,
|
||||
@@ -205,6 +206,11 @@
|
||||
icon: List,
|
||||
href: `/runs/${script.path}`
|
||||
},
|
||||
{
|
||||
displayName: 'Audit logs',
|
||||
icon: Eye,
|
||||
href: `/audit_logs?resource=${script.path}`
|
||||
},
|
||||
{
|
||||
displayName: 'Schedule',
|
||||
icon: Calendar,
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
GitFork,
|
||||
History,
|
||||
Columns,
|
||||
Pen
|
||||
Pen,
|
||||
Eye
|
||||
} from 'lucide-svelte'
|
||||
|
||||
import DetailPageHeader from '$lib/components/details/DetailPageHeader.svelte'
|
||||
@@ -201,6 +202,14 @@
|
||||
Icon: FolderOpen
|
||||
})
|
||||
|
||||
menuItems.push({
|
||||
label: 'Audit logs',
|
||||
Icon: Eye,
|
||||
onclick: () => {
|
||||
goto(`/audit_logs?resource=${flow?.path}`)
|
||||
}
|
||||
})
|
||||
|
||||
menuItems.push({
|
||||
label: 'Deploy to staging/prod',
|
||||
onclick: () => deploymentDrawer.openDrawer(flow?.path ?? '', 'flow'),
|
||||
|
||||
@@ -257,6 +257,11 @@
|
||||
icon: List,
|
||||
href: '/runs/?schedule_path=' + path
|
||||
},
|
||||
{
|
||||
displayName: 'Audit logs',
|
||||
icon: Eye,
|
||||
href: `/audit_logs?resource=${path}`
|
||||
},
|
||||
{
|
||||
displayName: 'Run now',
|
||||
icon: Play,
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
Activity,
|
||||
Archive,
|
||||
ArchiveRestore,
|
||||
Eye,
|
||||
FolderOpen,
|
||||
GitFork,
|
||||
Globe2,
|
||||
@@ -241,7 +242,6 @@
|
||||
return buttons
|
||||
}
|
||||
|
||||
|
||||
if (Array.isArray(script.parent_hashes) && script.parent_hashes.length > 0) {
|
||||
buttons.push({
|
||||
label: `History`,
|
||||
@@ -320,6 +320,14 @@
|
||||
}
|
||||
})
|
||||
|
||||
menuItems.push({
|
||||
label: 'Audit logs',
|
||||
Icon: Eye,
|
||||
onclick: () => {
|
||||
goto(`/audit_logs?resource=${script?.path}`)
|
||||
}
|
||||
})
|
||||
|
||||
menuItems.push({
|
||||
label: 'Share',
|
||||
Icon: Share,
|
||||
|
||||
Reference in New Issue
Block a user