Closed emoss08 closed 1 month ago
This pull request improves the audit log page by refactoring the frontend components, updating the backend models, and making various other enhancements. The changes include updating the audit log table, modifying the Go module dependencies, and adding new components for better UI/UX. Additionally, several SQL migrations and Go model updates were made to support the new audit log structure.
Files | Changes |
---|---|
pkg/models/division_code.go pkg/models/delay_code.go pkg/models/fleet_code.go pkg/models/table_change_alert.go pkg/models/shipment_control.go |
Replaced bun ORM annotations with xorm annotations and renamed receiver variables for consistency. |
web/frontend/src/components/audit-log/dialog-table.tsx web/frontend/src/components/json-viewer.tsx |
Added new components for displaying audit log details and JSON data. |
Summary by Sourcery
This pull request improves the audit log page by introducing a new
AuditLogView
component for better display of audit log details, refactors theAuditLogs
page, updates theAuditLog
type, and enhances theAuditLogDataDialog
. It also updates the Go version and several dependencies, and includes various minor improvements and cleanups.AuditLogView
component to display audit log details with a toggle for dark/light theme and a JSON viewer for changes.AuditLogs
page to use the newAuditLogView
component for displaying audit log details.AuditLog
type to includeusername
,description
,errorMessage
, andchanges
fields.AuditLogDataDialog
to use the newAuditLogView
component and reduced its maximum width.bun
ORM annotations withxorm
annotations in several model files for consistency.filterQuery
method inAuditLogService
to support case-insensitive table name filtering.go.mod
.go.mod
to their latest versions.include_file
,send_interrupt
, andstop_on_error
configurations to.air.toml
for better development experience.Department
andDepot
types fromorganization.ts
.