Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from KelvinTegelaar:main #1

Merged
merged 154 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
0f63a3f
Merge pull request #27 from KelvinTegelaar/dev
kris6673 Apr 29, 2024
efcaffb
Added Places
OfficialEsco Apr 25, 2024
7f86ab0
Merge pull request #30 from KelvinTegelaar/dev
kris6673 Apr 30, 2024
690cc9a
Merge pull request #31 from KelvinTegelaar/dev
kris6673 May 2, 2024
ec0741e
Add new standard for Global Quarantine Notification Interval
kris6673 May 2, 2024
3477cb2
Added checkbox to QuarantineList
OfficialEsco May 2, 2024
fff9cf1
Merge pull request #2379 from Ren-Roros-Digital/PlacesPR
KelvinTegelaar May 3, 2024
55aab74
comma correction
KelvinTegelaar May 3, 2024
40e6860
Merge pull request #2397 from kris6673/dev
KelvinTegelaar May 3, 2024
9823b09
Update GDAPRoles.json
peter-fisher May 3, 2024
ce8861b
Update GDAPRoles.json
peter-fisher May 3, 2024
107df24
Merge pull request #2408 from SwiftPuppy-Technologies/dev
KelvinTegelaar May 3, 2024
8b7a1ab
prettified SAM wizard
KelvinTegelaar May 4, 2024
88d5695
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 4, 2024
3109e1f
added clear callout
KelvinTegelaar May 4, 2024
c7b5064
updating wizard
KelvinTegelaar May 4, 2024
507951b
fixes incorrect showing of completed steps
KelvinTegelaar May 4, 2024
c9ab7cb
prettification
KelvinTegelaar May 4, 2024
b53f012
Merge pull request #33 from KelvinTegelaar/dev
kris6673 May 5, 2024
b62c98e
improvements to experience.
KelvinTegelaar May 6, 2024
94313cb
improvements to setup experience.
KelvinTegelaar May 6, 2024
f940bfd
conditional loading
KelvinTegelaar May 6, 2024
833febd
prevent rerenders
KelvinTegelaar May 6, 2024
82298e4
redo check if step is 5 again
KelvinTegelaar May 6, 2024
1f684c9
prettification
KelvinTegelaar May 6, 2024
591bb9b
prevent reload
KelvinTegelaar May 6, 2024
c72a112
length for errors
KelvinTegelaar May 6, 2024
a387743
nullsafe
KelvinTegelaar May 6, 2024
7a5d157
fixes empty callout
KelvinTegelaar May 6, 2024
09c1e74
fixes
KelvinTegelaar May 6, 2024
1ae8269
interface changes
KelvinTegelaar May 6, 2024
cbae98b
Merge pull request #34 from KelvinTegelaar/dev
kris6673 May 6, 2024
5dbd155
new alert wizard prep
KelvinTegelaar May 7, 2024
12f9cd4
Update TransportRules.jsx
PremierOneData May 7, 2024
16d8a9b
Merge pull request #2416 from PremierOneData/patch-1
JohnDuprey May 7, 2024
8dd4b09
create auditlog schema
KelvinTegelaar May 7, 2024
c44694c
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 7, 2024
55205d2
Replace maintenance page with Durable Functions
JohnDuprey May 7, 2024
0cafcaa
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 7, 2024
46e5d95
Merge pull request #2418 from JohnDuprey/dev
JohnDuprey May 7, 2024
36762be
base setup for new alerting
KelvinTegelaar May 7, 2024
27a7ff7
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 7, 2024
c0c3fa0
button added
KelvinTegelaar May 7, 2024
2debd7b
Durable maintenance tweaks
JohnDuprey May 8, 2024
60766d6
Add spin, disable button when fetching
JohnDuprey May 8, 2024
c0067e0
Add purge orchestrator option
JohnDuprey May 8, 2024
b041c3b
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 8, 2024
49fcdcd
Merge pull request #2419 from JohnDuprey/dev
JohnDuprey May 8, 2024
0ef8910
Update AlertWizard.jsx
JohnDuprey May 8, 2024
dfdc835
Merge pull request #2420 from JohnDuprey/dev
JohnDuprey May 8, 2024
69938a1
Update CippTable.jsx
JohnDuprey May 8, 2024
c374ce7
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 8, 2024
1bfe923
updates to wizard
KelvinTegelaar May 8, 2024
2ef9e4a
Added Add New Blocklist Item
OfficialEsco May 3, 2024
0b1a58e
Rewrite ListTenantAllowBlockList
OfficialEsco May 3, 2024
9be4242
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey May 8, 2024
d82d169
Comment not ready code
OfficialEsco May 8, 2024
a5855bd
Tweaks to Durable Maintenance
JohnDuprey May 8, 2024
1e31a90
Merge pull request #2425 from JohnDuprey/dev
JohnDuprey May 8, 2024
5cc5060
fix schema
KelvinTegelaar May 8, 2024
c95d6fd
Fix schema 2
KelvinTegelaar May 8, 2024
ba8b02d
Added timezoneList
OfficialEsco May 8, 2024
1929231
Timezone Selection
OfficialEsco May 8, 2024
6828ae8
Merge pull request #2424 from Ren-Roros-Digital/timezoneList
KelvinTegelaar May 8, 2024
d1ae131
Merge pull request #2423 from Ren-Roros-Digital/blocklist
KelvinTegelaar May 8, 2024
bc20fc0
JIT Admin frontend
JohnDuprey May 9, 2024
41bc439
Merge branch 'jit-admin' into jit-admin
JohnDuprey May 9, 2024
eb70d9c
classic alerts
KelvinTegelaar May 9, 2024
7845ec5
fix stuff
KelvinTegelaar May 9, 2024
5891171
fix stuff
KelvinTegelaar May 9, 2024
cb57570
Merge pull request #35 from KelvinTegelaar/dev
kris6673 May 9, 2024
974ae6f
fix form click issues
JohnDuprey May 9, 2024
c5ecb6f
Merge pull request #172 from KelvinTegelaar/dev
JohnDuprey May 9, 2024
1fc0b8b
Merge pull request #2428 from JohnDuprey/dev
JohnDuprey May 9, 2024
41e17d3
Merge branch 'jit-admin' into dev
JohnDuprey May 9, 2024
a8b678c
fixes securescore bug
KelvinTegelaar May 10, 2024
8b59c6d
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 10, 2024
4cb9fef
added reload after save
KelvinTegelaar May 10, 2024
d214ad3
moved boxes over card.
KelvinTegelaar May 10, 2024
720fe23
Merge pull request #36 from KelvinTegelaar/dev
kris6673 May 10, 2024
adf28af
fixed error with lookup
KelvinTegelaar May 10, 2024
492535d
prettification
KelvinTegelaar May 10, 2024
5a135af
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey May 10, 2024
7a5a544
Update edit standards page
JohnDuprey May 10, 2024
4fc3215
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 10, 2024
526b262
Revert "Merge branch 'jit-admin' into dev"
JohnDuprey May 10, 2024
cb1561f
Merge branch 'dev' of https://github.com/johnduprey/CIPP into dev
JohnDuprey May 10, 2024
e3b9262
Merge pull request #2433 from JohnDuprey/dev
JohnDuprey May 10, 2024
3d57a56
Standards - Fix all tenant settings
JohnDuprey May 10, 2024
035a086
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 10, 2024
c56b4a2
Merge pull request #2434 from JohnDuprey/dev
JohnDuprey May 10, 2024
50f2645
Update ListAppliedStandards.jsx
JohnDuprey May 10, 2024
fc03791
Update DefaultLayout.jsx
JohnDuprey May 10, 2024
dc23f1f
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 10, 2024
ca9e316
Merge pull request #2435 from JohnDuprey/dev
JohnDuprey May 10, 2024
fb402d1
fix standards layout
JohnDuprey May 10, 2024
7f1068b
auto select recommended time.
KelvinTegelaar May 11, 2024
42e9b32
prepping templates
KelvinTegelaar May 11, 2024
61a0c3b
building templates
KelvinTegelaar May 11, 2024
05aab00
frontend updates
KelvinTegelaar May 11, 2024
6558f65
changes
KelvinTegelaar May 11, 2024
b5c46b8
Fix input bug.
KelvinTegelaar May 12, 2024
d75a237
added multi select
KelvinTegelaar May 12, 2024
8bd0954
Add action button to remove GA from GDAP relations
May 12, 2024
6de5f4c
updated schemas
KelvinTegelaar May 12, 2024
3f171f0
add option for actions
KelvinTegelaar May 12, 2024
b19c7d2
improved wizard interface
KelvinTegelaar May 12, 2024
143b433
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey May 13, 2024
14d21dc
added validation to required fields.
KelvinTegelaar May 13, 2024
c09dc4f
Change nav items(Down with classic alerts!)
KelvinTegelaar May 13, 2024
d346a20
Fix recent job load error for single task
JohnDuprey May 13, 2024
1dca41d
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 13, 2024
9c67618
Merge pull request #2438 from JohnDuprey/dev
JohnDuprey May 13, 2024
5d81b46
added repeats every
KelvinTegelaar May 13, 2024
56d17ff
Added branding standard
OfficialEsco May 13, 2024
d265bba
Improve Extension Mappings
JohnDuprey May 13, 2024
b0ed799
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 13, 2024
f6d09ef
Merge pull request #2439 from JohnDuprey/dev
JohnDuprey May 13, 2024
ca8fc7f
Update MFAReport.jsx
PremierOneData May 13, 2024
39b19e1
Merge pull request #2441 from PremierOneData/patch-2
KelvinTegelaar May 13, 2024
8537576
Merge pull request #2440 from Ren-Roros-Digital/branding
KelvinTegelaar May 13, 2024
4364993
Merge pull request #2436 from rvdwegen/dev
KelvinTegelaar May 13, 2024
268abe5
Extension Accordions
JohnDuprey May 13, 2024
ad2a04f
Merge pull request #2403 from Ren-Roros-Digital/QuarantineCheckbox
KelvinTegelaar May 13, 2024
5817ce6
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 13, 2024
2a024fd
Merge pull request #2442 from JohnDuprey/dev
JohnDuprey May 13, 2024
8f8b376
Update ConnectorList.jsx
PremierOneData May 13, 2024
1ef999f
fix linting issue
KelvinTegelaar May 13, 2024
50aa7e1
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 13, 2024
ae6c03d
Merge pull request #2443 from PremierOneData/patch-3
JohnDuprey May 14, 2024
ef95912
Add additional template types
JohnDuprey May 14, 2024
1fc6c2e
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 14, 2024
cd5b956
Merge pull request #2446 from JohnDuprey/dev
JohnDuprey May 14, 2024
5029187
fix linting issue
JohnDuprey May 14, 2024
e2bf01e
On prem sync warnings
JohnDuprey May 14, 2024
00f64ba
Merge pull request #37 from KelvinTegelaar/dev
kris6673 May 14, 2024
7313277
updated audit log template
KelvinTegelaar May 14, 2024
8c68bea
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP into dev
KelvinTegelaar May 14, 2024
f0e0bfe
Add filter for non-Microsoft service principals in ListEnterpriseApps…
kris6673 May 14, 2024
31403fd
Merge remote-tracking branch 'upstream/dev' into dev
JohnDuprey May 14, 2024
7f546ca
Tenant Onboarding v2
JohnDuprey May 14, 2024
a55fc62
Merge pull request #2449 from JohnDuprey/dev
JohnDuprey May 14, 2024
c8bcc83
Onboarding Standards Exclusion
JohnDuprey May 15, 2024
cc8daf0
Merge pull request #2452 from JohnDuprey/dev
JohnDuprey May 15, 2024
d230813
Add standard exclusion to partner webhook
JohnDuprey May 15, 2024
7d62cd1
Merge pull request #2453 from JohnDuprey/dev
JohnDuprey May 15, 2024
604582f
add member to role update
KelvinTegelaar May 15, 2024
a9effcd
strong authentication
KelvinTegelaar May 15, 2024
fcb2b70
Dashboard - Clickable user chart
JohnDuprey May 15, 2024
5e4d872
Merge branch 'KelvinTegelaar:dev' into dev
JohnDuprey May 15, 2024
0460f6f
Merge pull request #2454 from JohnDuprey/dev
JohnDuprey May 15, 2024
7a7a8ca
version up
KelvinTegelaar May 15, 2024
1fa566f
Merge pull request #2448 from kris6673/dev
KelvinTegelaar May 15, 2024
1c76dec
Merge pull request #2455 from KelvinTegelaar/dev
KelvinTegelaar May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cipp",
"version": "5.6.2",
"version": "5.7.0",
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
"homepage": "https://cipp.app/",
"bugs": {
Expand Down
16 changes: 16 additions & 0 deletions public/GDAPRoles.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,22 @@
"Name": "Virtual Visits Administrator",
"ObjectId": "e300d9e7-4a2b-4295-9eff-f1c78b36cc98"
},
{
"ExtensionData": {},
"Description": "Manage and configure all aspects of Microsoft Viva Goals.",
"IsEnabled": true,
"IsSystem": true,
"Name": "Viva Goals Administrator",
"ObjectId": "92b086b3-e367-4ef2-b869-1de128fb986e"
},
{
"ExtensionData": {},
"Description": "Can manage all settings for Microsoft Viva Pulse app.",
"IsEnabled": true,
"IsSystem": true,
"Name": "Viva Pulse Administrator",
"ObjectId": "87761b17-1ed2-4af3-9acd-92a150038160"
},
{
"ExtensionData": {},
"Description": "Can provision and manage all aspects of Cloud PCs.",
Expand Down
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.6.2
5.7.0
28 changes: 21 additions & 7 deletions src/_nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,9 @@ const _nav = [
},
{
component: CNavItem,
name: 'Alerts (Classic)',
name: 'Alerts',
to: '/tenant/administration/alertsqueue',
},
{
component: CNavItem,
name: 'Alert Rules',
to: '/tenant/administration/AlertRules',
},
{
component: CNavItem,
name: 'Enterprise Applications',
Expand All @@ -155,7 +150,7 @@ const _nav = [
{
component: CNavItem,
name: 'Tenant Onboarding',
to: '/tenant/administration/tenant-onboarding-wizard',
to: '/tenant/administration/tenant-onboarding',
},
{
component: CNavItem,
Expand Down Expand Up @@ -707,6 +702,25 @@ const _nav = [
},
],
},
{
component: CNavGroup,
name: ' Room Management',
section: 'Email & Exchange',
to: '/rooms/management',
icon: <FontAwesomeIcon icon={faToolbox} className="nav-icon" />,
items: [
{
component: CNavItem,
name: 'Rooms',
to: '/rooms/management/list-rooms',
},
{
component: CNavItem,
name: 'Room Lists',
to: '/rooms/management/room-lists',
},
],
},
{
component: CNavGroup,
name: 'Reports',
Expand Down
49 changes: 49 additions & 0 deletions src/components/contentcards/CippAccordionItem.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from 'react'
import {
CAccordionBody,
CAccordionHeader,
CAccordionItem,
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CCardTitle,
} from '@coreui/react'
import Skeleton from 'react-loading-skeleton'
import PropTypes from 'prop-types'

export default function CippAccordionItem({
title,
titleType = 'normal',
CardButton,
children,
isFetching,
}) {
return (
<CAccordionItem>
<CAccordionHeader>{title}</CAccordionHeader>
<CAccordionBody>
<CCard>
<CCardHeader>
<CCardTitle>
{titleType === 'big' ? <h3 className="underline mb-3">{title}</h3> : title}
</CCardTitle>
</CCardHeader>
<CCardBody className="my-3">
{isFetching && <Skeleton />}
{children}
</CCardBody>
<CCardFooter>{CardButton}</CCardFooter>
</CCard>
</CAccordionBody>
</CAccordionItem>
)
}

CippAccordionItem.propTypes = {
title: PropTypes.string.isRequired,
titleType: PropTypes.string,
CardButton: PropTypes.element.isRequired,
children: PropTypes.element.isRequired,
isFetching: PropTypes.bool.isRequired,
}
33 changes: 29 additions & 4 deletions src/components/contentcards/CippChartCard.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { CCard, CCardBody, CCardFooter, CCardHeader, CCardTitle } from '@coreui/react'
import Skeleton from 'react-loading-skeleton'
import { CButton, CCard, CCardBody, CCardHeader, CCardTitle } from '@coreui/react'
import { CChart } from '@coreui/react-chartjs'
import { getStyle } from '@coreui/utils'
import PropTypes from 'prop-types'

export default function CippChartCard({
title,
Expand All @@ -13,23 +13,38 @@ export default function CippChartCard({
ChartType = 'pie',
LegendLocation = 'bottom',
isFetching,
refreshFunction,
}) {
return (
<CCard className="h-100 mb-3">
<CCardHeader>
<CCardTitle>
{titleType === 'big' ? <h3 className="underline mb-3">{title}</h3> : title}
{refreshFunction ? (
<CButton
className="position-absolute top-0 end-0 mt-2 me-2"
variant="ghost"
onClick={refreshFunction}
disabled={isFetching}
>
<FontAwesomeIcon icon="sync" spin={isFetching} />
</CButton>
) : (
<CButton className="position-absolute top-0 end-0 mt-2 me-2" variant="ghost" disabled>
<FontAwesomeIcon icon="sync" spin={isFetching} />
</CButton>
)}
</CCardTitle>
</CCardHeader>
<CCardBody>
{isFetching && <Skeleton />}
{!isFetching && (
{ChartData && (
<CChart
type={ChartType}
data={{
labels: ChartLabels,
datasets: [
{
label: title,
backgroundColor: [
getStyle('--cyberdrain-warning'),
getStyle('--cyberdrain-info'),
Expand Down Expand Up @@ -59,3 +74,13 @@ export default function CippChartCard({
</CCard>
)
}
CippChartCard.propTypes = {
title: PropTypes.string.isRequired,
titleType: PropTypes.oneOf(['normal', 'big']),
ChartData: PropTypes.array.isRequired,
ChartLabels: PropTypes.array.isRequired,
ChartType: PropTypes.oneOf(['pie', 'bar', 'line']),
LegendLocation: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
isFetching: PropTypes.bool,
refreshFunction: PropTypes.func,
}
51 changes: 49 additions & 2 deletions src/components/forms/RFFComponents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ export const RFFCFormSwitch = ({
>
<div className={className}>
<CFormSwitch
{...input}
onChange={input.onChange}
checked={input.checked}
value={input.value}
// @todo revisit this, only shows green when checked
valid={!meta.error && meta.touched && validate}
invalid={meta.error && meta.touched && validate}
Expand Down Expand Up @@ -265,7 +267,9 @@ export const RFFCFormRadio = ({
{({ meta, input }) => (
<div className={className}>
<CFormCheck
{...input}
onChange={input.onChange}
checked={input.checked}
value={input.value}
valid={!meta.error && meta.touched}
invalid={meta.error && meta.touched}
disabled={disabled}
Expand All @@ -285,6 +289,49 @@ RFFCFormRadio.propTypes = {
...sharedPropTypes,
}

export const RFFCFormRadioList = ({
name,
options,
className = 'mb-3',
disabled = false,
onClick,
inline = false,
}) => {
return (
<>
<div className={className}>
{options?.map((option, key) => {
return (
<Field name={name} type="radio" value={option.value} key={key}>
{({ input }) => {
return (
<>
<CFormCheck
name={input.name}
checked={input.checked}
onChange={input.onChange}
type="radio"
{...option}
disabled={disabled}
onClick={onClick}
inline={inline}
/>
</>
)
}}
</Field>
)
})}
</div>
</>
)
}

RFFCFormRadioList.propTypes = {
...sharedPropTypes,
inline: PropTypes.bool,
}

export const RFFCFormTextarea = ({
name,
label,
Expand Down
2 changes: 2 additions & 0 deletions src/components/forms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
RFFCFormSwitch,
RFFCFormInput,
RFFCFormRadio,
RFFCFormRadioList,
RFFCFormTextarea,
RFFCFormSelect,
RFFSelectSearch,
Expand All @@ -18,6 +19,7 @@ export {
RFFCFormSwitch,
RFFCFormInput,
RFFCFormRadio,
RFFCFormRadioList,
RFFCFormTextarea,
RFFCFormSelect,
RFFSelectSearch,
Expand Down
28 changes: 21 additions & 7 deletions src/components/tables/CellBadge.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types'
import React from 'react'
import { CBadge } from '@coreui/react'
import { CBadge, CCol, CRow } from '@coreui/react'

export const CellBadge = ({ label = '', color = '', children, ...rest }) => {
//Create a case select, and return the color based on the label
Expand All @@ -19,14 +19,28 @@ export const CellBadge = ({ label = '', color = '', children, ...rest }) => {
break
case 'running':
color = 'primary'
break
}
//if a label contains a comma, split it, and return multiple badges, if not, return one badge. force the badges to be on their own line

return (
<CBadge color={color} {...rest}>
{label}
{children}
</CBadge>
)
if (label.includes(',')) {
const labels = label.split(',')
return labels.map((label, idx) => (
<>
<CBadge key={idx} className="me-2" color={color} {...rest}>
{label}
{children}
</CBadge>
</>
))
} else {
return (
<CBadge className="me-2" color={color} {...rest}>
{label}
{children}
</CBadge>
)
}
}

CellBadge.propTypes = {
Expand Down
11 changes: 7 additions & 4 deletions src/components/tables/CippTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { debounce } from 'lodash-es'
import { useSearchParams } from 'react-router-dom'
import CopyToClipboard from 'react-copy-to-clipboard'
import { setDefaultColumns } from 'src/store/features/app'
import { CippCallout } from '../layout'

const FilterComponent = ({ filterText, onFilter, onClear, filterlist, onFilterPreset }) => (
<>
Expand Down Expand Up @@ -124,6 +125,7 @@ export default function CippTable({
filterlist,
showFilter = true,
endpointName,
defaultSortAsc = true,
tableProps: {
keyField = 'id',
theme = 'cyberdrain',
Expand Down Expand Up @@ -614,7 +616,7 @@ export default function CippTable({
className="m-1"
size="sm"
>
<FontAwesomeIcon icon={faSync} />
<FontAwesomeIcon icon={faSync} spin={isFetching} />
</CButton>
</CTooltip>,
])
Expand Down Expand Up @@ -888,7 +890,7 @@ export default function CippTable({
{(updatedColumns || !dynamicColumns) && (
<>
{(massResults.length >= 1 || loopRunning) && (
<CCallout color="info">
<CippCallout color="info" dismissible>
{massResults[0]?.data?.Metadata?.Heading && (
<CAccordion flush>
{massResults.map((message, idx) => {
Expand Down Expand Up @@ -963,7 +965,7 @@ export default function CippTable({
<CSpinner size="sm" />
</li>
)}
</CCallout>
</CippCallout>
)}
<DataTable
customStyles={customStyles}
Expand All @@ -988,7 +990,7 @@ export default function CippTable({
expandableRowsComponent={expandableRowsComponent}
highlightOnHover={highlightOnHover}
expandOnRowClicked={expandOnRowClicked}
defaultSortAsc
defaultSortAsc={defaultSortAsc}
defaultSortFieldId={1}
sortFunction={customSort}
paginationPerPage={tablePageSize}
Expand Down Expand Up @@ -1049,6 +1051,7 @@ export const CippTablePropTypes = {
disableCSVExport: PropTypes.bool,
error: PropTypes.object,
filterlist: PropTypes.arrayOf(PropTypes.object),
defaultSortAsc: PropTypes.bool,
}

CippTable.propTypes = CippTablePropTypes
Loading
Loading