Disable auditLogs feature across multiple components in the Dashboard for improved performance and user experience.

This commit is contained in:
Tom Butcher 2026-07-04 22:06:32 +01:00
parent 7296ee73b8
commit 67058d72a4
45 changed files with 63 additions and 53 deletions

View File

@ -48,7 +48,7 @@ const InvoiceInfo = () => {
invoiceShipments: true,
payments: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({

View File

@ -39,7 +39,7 @@ const PaymentInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('PaymentInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({

View File

@ -35,7 +35,7 @@ const TaxRecordInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -34,7 +34,7 @@ const FilamentStockInfo = () => {
info: true,
events: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -35,7 +35,7 @@ const OrderItemInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -37,7 +37,7 @@ const PartStockInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -10,7 +10,10 @@ import InfoCollapse from '../../common/InfoCollapse.jsx'
import ObjectInfo from '../../common/ObjectInfo.jsx'
import ObjectProperty from '../../common/ObjectProperty.jsx'
import ViewButton from '../../common/ViewButton.jsx'
import { getModelProperty, getModelByName } from '../../../../database/ObjectModels.js'
import {
getModelProperty,
getModelByName
} from '../../../../database/ObjectModels.js'
import PostProductStock from './PostProductStock.jsx'
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
import NoteIcon from '../../../Icons/NoteIcon.jsx'
@ -44,7 +47,7 @@ const ProductStockInfo = () => {
info: true,
partStocks: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -58,7 +58,7 @@ const PurchaseOrderInfo = () => {
{
info: true,
notes: true,
auditLogs: true,
auditLogs: false,
invoices: true,
stockEvents: true
}

View File

@ -50,7 +50,7 @@ const PurchaseOrderInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -40,7 +40,7 @@ const ShipmentInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -37,7 +37,7 @@ const StockAuditInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -38,7 +38,7 @@ const StockLocationInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -8,7 +8,10 @@ import InfoCollapse from '../../common/InfoCollapse.jsx'
import ObjectInfo from '../../common/ObjectInfo.jsx'
import ObjectProperty from '../../common/ObjectProperty.jsx'
import ViewButton from '../../common/ViewButton.jsx'
import { getModelProperty, getModelByName } from '../../../../database/ObjectModels.js'
import {
getModelProperty,
getModelByName
} from '../../../../database/ObjectModels.js'
import PostStockTransfer from './PostStockTransfer.jsx'
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
import NoteIcon from '../../../Icons/NoteIcon.jsx'
@ -39,7 +42,7 @@ const StockTransferInfo = () => {
info: true,
lines: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -35,7 +35,7 @@ const AppPasswordInfo = () => {
'AppPasswordInfo',
{
info: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -37,7 +37,7 @@ const CourierServiceInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -34,7 +34,7 @@ const CourierInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('CourierInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -38,7 +38,7 @@ const DocumentJobInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -39,7 +39,7 @@ const DocumentPrinterInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -38,7 +38,7 @@ const DocumentSizeInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -33,7 +33,7 @@ const DocumentTemplateDesign = () => {
preview: true,
editor: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -39,7 +39,7 @@ const DocumentTemplateInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -24,13 +24,15 @@ const FilamentSkuInfo = () => {
const location = useLocation()
const objectFormRef = useRef(null)
const actionHandlerRef = useRef(null)
const filamentSkuId = new URLSearchParams(location.search).get('filamentSkuId')
const filamentSkuId = new URLSearchParams(location.search).get(
'filamentSkuId'
)
const [collapseState, updateCollapseState] = useCollapseState(
'FilamentSkuInfo',
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -43,7 +43,7 @@ const FilamentInfo = () => {
filamentSkus: true,
stocks: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -37,7 +37,7 @@ const FileInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('FileInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -39,7 +39,7 @@ const HostInfo = () => {
printers: true,
documentPrinters: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [hostOTPOpen, setHostOTPOpen] = useState(false)

View File

@ -30,11 +30,14 @@ const MaterialInfo = () => {
const objectFormRef = useRef(null)
const actionHandlerRef = useRef(null)
const materialId = new URLSearchParams(location.search).get('materialId')
const [collapseState, updateCollapseState] = useCollapseState('MaterialInfo', {
info: true,
notes: true,
auditLogs: true
})
const [collapseState, updateCollapseState] = useCollapseState(
'MaterialInfo',
{
info: true,
notes: true,
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({
isEditing: false,
editLoading: false,

View File

@ -28,7 +28,7 @@ const NoteTypeInfo = () => {
'NoteTypeInfo',
{
info: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -38,7 +38,7 @@ const NoteInfo = () => {
info: true,
content: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -28,7 +28,7 @@ const PartSkuInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('PartSkuInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -33,7 +33,7 @@ const PartInfo = () => {
info: true,
partSkus: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -32,7 +32,7 @@ const ProductCategoryInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -34,7 +34,7 @@ const ProductSkuInfo = () => {
info: true,
parts: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -32,7 +32,7 @@ const ProductInfo = () => {
info: true,
productSkus: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [newProductSkuOpen, setNewProductSkuOpen] = useState(false)
const productSkusTableRef = useRef()

View File

@ -33,7 +33,7 @@ const TaxRateInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('TaxRateInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -37,7 +37,7 @@ const UserInfo = () => {
info: true,
appPasswords: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -33,7 +33,7 @@ const VendorInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('VendorInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -40,7 +40,7 @@ const GCodeFileInfo = () => {
info: true,
parts: true,
notes: true,
auditLogs: true
auditLogs: false
}
)

View File

@ -39,7 +39,7 @@ const JobInfo = () => {
info: true,
subJobs: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({

View File

@ -35,7 +35,7 @@ const PrinterInfo = () => {
info: true,
stocks: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({

View File

@ -30,7 +30,7 @@ const SubJobInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('SubJobInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -33,7 +33,7 @@ const ClientInfo = () => {
const [collapseState, updateCollapseState] = useCollapseState('ClientInfo', {
info: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,
@ -193,4 +193,3 @@ const ClientInfo = () => {
}
export default ClientInfo

View File

@ -42,7 +42,7 @@ const ListingVarientInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -43,7 +43,7 @@ const ListingInfo = () => {
info: true,
listingVarients: true,
notes: true,
auditLogs: true
auditLogs: false
})
const [objectFormState, setEditFormState] = useState({
isEditing: false,

View File

@ -50,7 +50,7 @@ const MarketplaceInfo = () => {
{
info: true,
notes: true,
auditLogs: true
auditLogs: false
}
)
const [objectFormState, setEditFormState] = useState({

View File

@ -55,7 +55,7 @@ const SalesOrderInfo = () => {
{
info: true,
notes: true,
auditLogs: true,
auditLogs: false,
invoices: true,
stockEvents: true
}