emoss08 / Trenova

An Open Source AI-driven asset based transportation management system
http://trenova.app
Other
24 stars 5 forks source link

🟡(change): improve audit log page #278

Closed emoss08 closed 1 month ago

emoss08 commented 1 month ago

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 the AuditLogs page, updates the AuditLog type, and enhances the AuditLogDataDialog. It also updates the Go version and several dependencies, and includes various minor improvements and cleanups.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

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.

File-Level Changes

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.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.