Skip to content

Commit

Permalink
Merge pull request #97 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
pull[bot] authored Feb 13, 2025
2 parents c607084 + 4d7dea8 commit ea79083
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 30 deletions.
2 changes: 1 addition & 1 deletion public/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "7.1.3"
"version": "7.2.1"
}
2 changes: 1 addition & 1 deletion src/components/CippFormPages/CippAddGroupForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const CippAddGroupForm = (props) => {
{ label: "Security Group", value: "generic" },
{ label: "Microsoft 365 Group", value: "m365" },
{ label: "Dynamic Group", value: "dynamic" },
{ label: "Dynamic Distribution Group", value: "dynamicdistribution" },
{ label: "Dynamic Distribution Group", value: "dynamicDistribution" },
{ label: "Distribution List", value: "distribution" },
{ label: "Mail Enabled Security Group", value: "security" },
]}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CippFormPages/CippJSONView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function CippJsonView({
{viewJson ? <VisibilityOffIcon /> : <VisibilityIcon />}
</IconButton>
{viewJson ? (
<CippCodeBlock type="editor" code={JSON.stringify(cleanObject(object))} />
<CippCodeBlock type="editor" code={JSON.stringify(cleanObject(object), null, 2)} />
) : (
<Grid container spacing={2}>
{drilldownData.slice(0, 4).map((data, index) => (
Expand Down
25 changes: 19 additions & 6 deletions src/components/CippWizard/CIPPDeploymentStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { CippWizardStepButtons } from "./CippWizardStepButtons";
import { ApiGetCall } from "../../api/ApiCall";
import CippButtonCard from "../CippCards/CippButtonCard";
import { CippCopyToClipBoard } from "../CippComponents/CippCopyToClipboard";
import { CheckCircle } from "@mui/icons-material";
import { CheckCircle, OpenInNew, Sync } from "@mui/icons-material";
import CippPermissionCheck from "../CippSettings/CippPermissionCheck";
import { useQueryClient } from "@tanstack/react-query";
import { CippApiResults } from "../CippComponents/CippApiResults";
Expand All @@ -43,7 +43,7 @@ export const CippDeploymentStep = (props) => {
const appId = ApiGetCall({
url: `/api/ExecListAppId`,
queryKey: `ExecListAppId`,
waiting: values.selectedOption !== "UpdateTokens" ? false : true,
waiting: true,
});
useEffect(() => {
if (
Expand Down Expand Up @@ -260,19 +260,32 @@ export const CippDeploymentStep = (props) => {
disabled={
appId.isLoading ||
!/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
appId.data.applicationId
appId?.data?.applicationId
)
}
onClick={() => openPopup(appId.data.refreshUrl)}
onClick={() => openPopup(appId?.data?.refreshUrl)}
color="primary"
startIcon={
<OpenInNew />
}
>
Refresh Graph Token
</Button>
<Button
onClick={() => appId.refetch()}
variant="outlined"
color="primary"
startIcon={<Sync />}
disabled={appId.isFetching}
>
Check Application ID
</Button>
{!/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
appId.data.applicationId
appId?.data?.applicationId
) && (
<Alert severity="warning">
The Application ID is not valid. Please return to the first page of the SAM wizard and use the Manual .
The Application ID is not valid. Please return to the first page of the SAM
wizard and use the Manual .
</Alert>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/email/spamfilter/list-templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/email/transport/list-templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/endpoint/MEM/list-templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/identity/administration/group-templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
12 changes: 1 addition & 11 deletions src/pages/identity/administration/groups/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,7 @@ const Page = () => {
</Button>
</>
}
apiUrl="/api/ListGraphRequest"
apiData={{
Endpoint: "groups",
$select:
"id,createdDateTime,displayName,description,mail,mailEnabled,mailNickname,resourceProvisioningOptions,securityEnabled,visibility,organizationId,onPremisesSamAccountName,membershipRule,grouptypes,onPremisesSyncEnabled,resourceProvisioningOptions,userPrincipalName,assignedLicenses",
$count: true,
$orderby: "displayName",
$top: 999,
manualPagination: true,
}}
apiDataKey="Results"
apiUrl="/api/ListGroups"
actions={actions}
offCanvas={offCanvas}
simpleColumns={[
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tenant/conditional/list-template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tenant/standards/bpa-report/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tenant/standards/list-standards/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Page = () => {
},
],
confirmText: "Are you sure you want to save this template to the selected repository?",
condition: () => integrations.isSuccess && integrations?.data?.GitHub.Enabled,
condition: () => integrations.isSuccess && integrations?.data?.GitHub?.Enabled,
},
{
label: "Delete Template",
Expand Down
16 changes: 15 additions & 1 deletion src/pages/tools/community-repos/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import CippJSONView from "/src/components/CippFormPages/CippJSONView";
import { EyeIcon } from "@heroicons/react/24/outline";
import { CippAutoComplete } from "/src/components/CippComponents/CippAutocomplete";
import React from "react";
import { CloudDownload } from "@mui/icons-material";

const Page = () => {
const router = useRouter();
Expand Down Expand Up @@ -202,6 +203,19 @@ const Page = () => {
icon: <EyeIcon />,
hideBulk: true,
},
{
label: "Import Template",
url: "/api/ExecCommunityRepo",
icon: <CloudDownload />,
type: "POST",
data: {
Action: "ImportTemplate",
FullName: selectedRepo,
Path: "path",
Branch: selectedBranch,
},
confirmText: "Are you sure you want to import [path]?",
},
]}
isFetching={fileTreeQuery.isFetching}
refreshFunction={() => fetchFileTree(selectedBranch)}
Expand All @@ -216,7 +230,7 @@ const Page = () => {
<DialogContent>
{fileQuery.isPending ? (
<Box>
<Skeleton height={300} />
<Skeleton height={300} variant="rectangular" />
</Box>
) : (
<CippJSONView object={jsonContent} defaultOpen={true} />
Expand Down

0 comments on commit ea79083

Please sign in to comment.