Skip to content

Commit 073b96c

Browse files
authored
Merge pull request KelvinTegelaar#5956 from KelvinTegelaar/dev
Dev to hotfix
2 parents 8b0cd1a + 76ab16e commit 073b96c

25 files changed

Lines changed: 2146 additions & 258658 deletions

File tree

next.config.js

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
1+
const disableOptimizePackageImports = process.env.NEXT_DISABLE_OPTIMIZE_PACKAGE_IMPORTS === '1'
2+
13
/** @type {import('next').NextConfig} */
24
const config = {
35
reactStrictMode: false,
6+
experimental: {
7+
optimizePackageImports: disableOptimizePackageImports
8+
? []
9+
: [
10+
'@mui/material',
11+
'@mui/icons-material',
12+
'@mui/lab',
13+
'@mui/system',
14+
'@mui/x-date-pickers',
15+
'material-react-table',
16+
'mui-tiptap',
17+
'recharts',
18+
'@react-pdf/renderer',
19+
],
20+
webpackMemoryOptimizations: true,
21+
preloadEntriesOnStart: false,
22+
turbopackFileSystemCacheForDev: false,
23+
turbopackMemoryLimit: 4096,
24+
},
425
images: {
526
unoptimized: true,
627
},
@@ -12,12 +33,6 @@ const config = {
1233
},
1334
},
1435
},
15-
experimental: {
16-
webpackMemoryOptimizations: true,
17-
preloadEntriesOnStart: false,
18-
turbopackFileSystemCacheForDev: false,
19-
turbopackMemoryLimit: 4096,
20-
},
2136
async redirects() {
2237
return []
2338
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cipp",
3-
"version": "10.4.2",
3+
"version": "10.4.3",
44
"author": "CIPP Contributors",
55
"homepage": "https://cipp.app/",
66
"bugs": {
@@ -16,7 +16,7 @@
1616
},
1717
"scripts": {
1818
"dev": "next -H 127.0.0.1",
19-
"build": "next build && rm -rf package.json yarn.lock",
19+
"build": "next build --webpack && rm -rf package.json yarn.lock",
2020
"start": "next start",
2121
"export": "next export",
2222
"lint": "npx eslint .",

public/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "10.4.2"
2+
"version": "10.4.3"
33
}

src/components/CippComponents/CippApiResults.jsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -188,21 +188,23 @@ export const CippApiResults = (props) => {
188188
} else {
189189
setFetchingVisible(false);
190190
}
191-
if (!errorsOnly) {
192-
if (allResults.length > 0) {
193-
setFinalResults(
194-
allResults.map((res, index) => ({
195-
id: index,
196-
text: res.text,
197-
copyField: res.copyField,
198-
severity: res.severity,
199-
visible: true,
200-
...res,
201-
})),
202-
);
203-
} else {
204-
setFinalResults([]);
205-
}
191+
const resultsToShow = errorsOnly
192+
? allResults.filter((r) => r.severity === "error")
193+
: allResults;
194+
195+
if (resultsToShow.length > 0) {
196+
setFinalResults(
197+
resultsToShow.map((res, index) => ({
198+
id: index,
199+
text: res.text,
200+
copyField: res.copyField,
201+
severity: res.severity,
202+
visible: true,
203+
...res,
204+
})),
205+
);
206+
} else {
207+
setFinalResults([]);
206208
}
207209
}, [
208210
apiObject.isError,

src/components/CippComponents/CippAuditLogSearchDrawer.jsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,6 @@ export const CippAuditLogSearchDrawer = ({
9898
);
9999
}
100100

101-
// Extract values from ServiceFilters array
102-
if (Array.isArray(formattedData.ServiceFilters)) {
103-
formattedData.ServiceFilters = formattedData.ServiceFilters.map((item) =>
104-
typeof item === "object" ? item.value : item
105-
);
106-
}
107-
108101
// Extract values from OperationsFilters array
109102
if (Array.isArray(formattedData.OperationsFilters)) {
110103
formattedData.OperationsFilters = formattedData.OperationsFilters.map((item) =>
@@ -206,28 +199,6 @@ export const CippAuditLogSearchDrawer = ({
206199
validators: { required: "End time is required" },
207200
required: true,
208201
},
209-
{
210-
type: "autoComplete",
211-
name: "ServiceFilters",
212-
label: "Services",
213-
multiple: true,
214-
creatable: false,
215-
options: [
216-
{ label: "Azure Active Directory", value: "AzureActiveDirectory" },
217-
{ label: "Dynamics 365", value: "CRM" },
218-
{ label: "Exchange Online", value: "Exchange" },
219-
{ label: "Microsoft Flow", value: "MicrosoftFlow" },
220-
{ label: "Microsoft Teams", value: "MicrosoftTeams" },
221-
{ label: "OneDrive for Business", value: "OneDrive" },
222-
{ label: "Power BI", value: "PowerBI" },
223-
{ label: "Security & Compliance", value: "ThreatIntelligence" },
224-
{ label: "SharePoint Online", value: "SharePoint" },
225-
{ label: "Yammer", value: "Yammer" },
226-
],
227-
validators: {
228-
validate: (values) => values?.length > 0 || "Please select at least one service",
229-
},
230-
},
231202
{
232203
type: "autoComplete",
233204
name: "RecordTypeFilters",
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import { Alert, CircularProgress, Stack, Typography } from '@mui/material'
2+
import { ApiGetCall } from '../../api/ApiCall'
3+
import CippJsonView from '../CippFormPages/CippJSONView'
4+
5+
export const CippIntunePolicyDetails = ({ row, tenant }) => {
6+
const isConfigurationPolicy = row?.URLName?.toLowerCase() === 'configurationpolicies'
7+
const tenantFilter = tenant === 'AllTenants' && row?.Tenant ? row.Tenant : tenant
8+
9+
const policyDetails = ApiGetCall({
10+
url: '/api/ListIntunePolicy',
11+
queryKey: `ListIntunePolicyDetails-${tenantFilter}-${row?.id}`,
12+
data: {
13+
TenantFilter: tenantFilter,
14+
ID: row?.id,
15+
URLName: 'configurationPolicies',
16+
IncludeSettingDefinitions: true,
17+
},
18+
waiting: Boolean(isConfigurationPolicy && tenantFilter && row?.id),
19+
retry: 1,
20+
refetchOnWindowFocus: false,
21+
toast: false,
22+
})
23+
24+
if (!isConfigurationPolicy) {
25+
return null
26+
}
27+
28+
const details = Array.isArray(policyDetails.data) ? policyDetails.data[0] : policyDetails.data
29+
const fallbackDetails = row?.settings ? row : null
30+
const settingsObject = details?.settings ? details : fallbackDetails
31+
32+
if (policyDetails.isLoading || policyDetails.isFetching) {
33+
return (
34+
<Stack direction="row" spacing={1.5} alignItems="center" sx={{ py: 2 }}>
35+
<CircularProgress size={18} />
36+
<Typography variant="body2" color="text.secondary">
37+
Loading policy settings and Microsoft descriptions...
38+
</Typography>
39+
</Stack>
40+
)
41+
}
42+
43+
if (policyDetails.isError && !settingsObject) {
44+
return (
45+
<Alert severity="warning" variant="outlined">
46+
Could not load live Settings Catalog details for this policy.
47+
</Alert>
48+
)
49+
}
50+
51+
if (!settingsObject) {
52+
return (
53+
<Alert severity="info" variant="outlined">
54+
This Settings Catalog policy did not return any settings.
55+
</Alert>
56+
)
57+
}
58+
59+
return <CippJsonView object={settingsObject} type="intune" defaultOpen title="Policy Settings" />
60+
}

src/components/CippFormPages/CippAddEditUser.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ const CippAddEditUser = (props) => {
846846
label: userGroups.DisplayName,
847847
value: userGroups.id,
848848
addedFields: {
849-
groupType: userGroups.groupType,
849+
groupType: userGroups.calculatedGroupType || userGroups.groupType,
850850
},
851851
}))}
852852
creatable={false}

0 commit comments

Comments
 (0)