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, invoiceShipments: true,
payments: true, payments: true,
notes: true, notes: true,
auditLogs: true auditLogs: false
}) })
const [objectFormState, setEditFormState] = useState({ const [objectFormState, setEditFormState] = useState({

View File

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

View File

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

View File

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

View File

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

View File

@ -37,7 +37,7 @@ const PartStockInfo = () => {
info: true, info: true,
stocks: true, stocks: true,
notes: 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 ObjectInfo from '../../common/ObjectInfo.jsx'
import ObjectProperty from '../../common/ObjectProperty.jsx' import ObjectProperty from '../../common/ObjectProperty.jsx'
import ViewButton from '../../common/ViewButton.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 PostProductStock from './PostProductStock.jsx'
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx' import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
import NoteIcon from '../../../Icons/NoteIcon.jsx' import NoteIcon from '../../../Icons/NoteIcon.jsx'
@ -44,7 +47,7 @@ const ProductStockInfo = () => {
info: true, info: true,
partStocks: true, partStocks: true,
notes: true, notes: true,
auditLogs: true auditLogs: false
} }
) )

View File

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

View File

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

View File

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

View File

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

View File

@ -38,7 +38,7 @@ const StockLocationInfo = () => {
{ {
info: true, info: true,
notes: 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 ObjectInfo from '../../common/ObjectInfo.jsx'
import ObjectProperty from '../../common/ObjectProperty.jsx' import ObjectProperty from '../../common/ObjectProperty.jsx'
import ViewButton from '../../common/ViewButton.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 PostStockTransfer from './PostStockTransfer.jsx'
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx' import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
import NoteIcon from '../../../Icons/NoteIcon.jsx' import NoteIcon from '../../../Icons/NoteIcon.jsx'
@ -39,7 +42,7 @@ const StockTransferInfo = () => {
info: true, info: true,
lines: true, lines: true,
notes: true, notes: true,
auditLogs: true auditLogs: false
} }
) )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -24,13 +24,15 @@ const FilamentSkuInfo = () => {
const location = useLocation() const location = useLocation()
const objectFormRef = useRef(null) const objectFormRef = useRef(null)
const actionHandlerRef = 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( const [collapseState, updateCollapseState] = useCollapseState(
'FilamentSkuInfo', 'FilamentSkuInfo',
{ {
info: true, info: true,
notes: true, notes: true,
auditLogs: true auditLogs: false
} }
) )
const [objectFormState, setEditFormState] = useState({ const [objectFormState, setEditFormState] = useState({

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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