From 3d37fb21ed0a69a8b40c19e520a20f8d319b8a80 Mon Sep 17 00:00:00 2001 From: rvrv1234 Date: Mon, 16 Mar 2026 02:56:07 +0530 Subject: [PATCH 1/2] Fix UI freeze and timestamp format in Usage Report (Issue #4787) --- .../components/APISettings/UsageReport.jsx | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/portals/admin/src/main/webapp/source/src/app/components/APISettings/UsageReport.jsx b/portals/admin/src/main/webapp/source/src/app/components/APISettings/UsageReport.jsx index 6e7abcea541..bb343b7a410 100644 --- a/portals/admin/src/main/webapp/source/src/app/components/APISettings/UsageReport.jsx +++ b/portals/admin/src/main/webapp/source/src/app/components/APISettings/UsageReport.jsx @@ -236,25 +236,27 @@ export default function UsageReport() { const [selectedEndDate, setSelectedEndDate] = useState(endDate); const fetchTransactionData = () => { + if (!selectedStartDate || !selectedEndDate) { + return; + } + setLoading(true); - if (selectedStartDate && selectedEndDate) { - const api = new API(); - api.getTransactionCount({ - startTime: selectedStartDate.unix().toString(), - endTime: selectedEndDate.unix().toString(), + const api = new API(); + api.getTransactionCount({ + startTime: selectedStartDate.valueOf().toString(), + endTime: selectedEndDate.valueOf().toString(), + }) + .then((result) => { + setTransactionCount(result.body.count); }) - .then((result) => { - setTransactionCount(result.body.count); - }) - .catch((error) => { - console.error('Error fetching transaction count:', error); - throw error; - }) - .finally(() => { - setLoading(false); - }); - } + .catch((error) => { + console.error('Error fetching transaction count:', error); + throw error; + }) + .finally(() => { + setLoading(false); + }); }; useEffect(() => { From c944a5b4c63fbd0ab192cc35faf8837a04892fbc Mon Sep 17 00:00:00 2001 From: rvrv1234 Date: Mon, 16 Mar 2026 07:55:07 +0530 Subject: [PATCH 2/2] Fix Devportal application details layout shift when custom leftMenu width is applied and correct mobile alignment --- .../src/app/components/Applications/Details/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Applications/Details/index.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Applications/Details/index.jsx index d2de4679e93..0c7fea8c84b 100755 --- a/portals/devportal/src/main/webapp/source/src/app/components/Applications/Details/index.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Applications/Details/index.jsx @@ -134,14 +134,14 @@ const Root = styled('div')(( display: 'flex', flex: 1, flexDirection: 'column', - marginLeft: (theme.custom.leftMenu.position === 'vertical-left' ? (theme.custom.leftMenu.width - 4) : 0), + marginLeft: (theme.custom.leftMenu.position === 'vertical-left' ? (theme.custom.leftMenu.width) : 0), marginRight: (theme.custom.leftMenu.position === 'vertical-right' ? theme.custom.leftMenu.width : 0), paddingBottom: theme.spacing(3), overflowX: 'hidden', [theme.breakpoints.down('md')]: { - marginLeft: (theme.custom.leftMenu.position === 'vertical-left' ? (theme.custom.leftMenu.width - 4) : 0) !== 0 && 50, - marginRight: (theme.custom.leftMenu.position === 'vertical-right' ? theme.custom.leftMenu.width : 0) !== 0 && 50, - }, + marginLeft: 0, + marginRight: 0, +}, }, [`& .${classes.contentLoader}`]: {