diff --git a/src/assets/css/app.css b/src/assets/css/app.css index bd34d56907..f2bc9f3aaf 100644 --- a/src/assets/css/app.css +++ b/src/assets/css/app.css @@ -3901,7 +3901,7 @@ fieldset:disabled .btn { --bs-dropdown-link-hover-color: var(--bs-body-color); --bs-dropdown-link-hover-bg: var(--bs-tertiary-bg); --bs-dropdown-link-active-color: #fff; - --bs-dropdown-link-active-bg: #31bb6b; + --bs-dropdown-link-active-bg: #a8c7fa; --bs-dropdown-link-disabled-color: var(--bs-tertiary-color); --bs-dropdown-item-padding-x: 1rem; --bs-dropdown-item-padding-y: 0.25rem; @@ -5645,7 +5645,7 @@ fieldset:disabled .btn { --bs-progress-border-radius: var(--bs-border-radius); --bs-progress-box-shadow: var(--bs-box-shadow-inset); --bs-progress-bar-color: #fff; - --bs-progress-bar-bg: #31bb6b; + --bs-progress-bar-bg: #0056b3; --bs-progress-bar-transition: width 0.6s ease; display: flex; height: var(--bs-progress-height); diff --git a/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx b/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx index 0d317266d9..9c9a822e22 100644 --- a/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx +++ b/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx @@ -113,7 +113,11 @@ function addOnEntry({ {description} @@ -263,7 +266,7 @@ const AddPeopleToTag: React.FC = ({ centered > @@ -301,7 +304,7 @@ const AddPeopleToTag: React.FC = ({ setMemberToAssignToSearchFirstName(e.target.value.trim()) @@ -315,7 +318,7 @@ const AddPeopleToTag: React.FC = ({ setMemberToAssignToSearchLastName(e.target.value.trim()) @@ -345,8 +348,7 @@ const AddPeopleToTag: React.FC = ({ next={loadMoreMembersToAssignTo} hasMore={ userTagsMembersToAssignToData?.getUsersToAssignTo - .usersToAssignTo.pageInfo.hasNextPage ?? - /* istanbul ignore next */ false + .usersToAssignTo.pageInfo.hasNextPage ?? false } loader={} scrollableTarget="addPeopleToTagScrollableDiv" @@ -357,7 +359,7 @@ const AddPeopleToTag: React.FC = ({ hideFooter={true} getRowId={(row) => row.id} slots={{ - noRowsOverlay: /* istanbul ignore next */ () => ( + noRowsOverlay: () => ( = ({ diff --git a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.module.css b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.module.css deleted file mode 100644 index e4f244807f..0000000000 --- a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.module.css +++ /dev/null @@ -1,79 +0,0 @@ -.entrytoggle { - margin: 24px 24px 0 auto; - width: fit-content; -} - -.entryaction { - display: flex !important; -} - -.entryaction i { - margin-right: 8px; - margin-top: 4px; -} - -.entryaction .spinner-grow { - height: 1rem; - width: 1rem; - margin-right: 8px; -} - -.admedia { - object-fit: cover; - height: 16rem; -} - -.buttons { - display: flex; - justify-content: flex-end; -} - -.card { - width: 28rem; -} - -.dropdownButton { - background-color: transparent; - color: #000; - border: none; - cursor: pointer; - display: flex; - width: 100%; - justify-content: flex-end; - padding: 8px 10px; -} - -.dropdownContainer { - position: relative; - display: inline-block; -} - -.dropdownmenu { - display: none; - position: absolute; - z-index: 1; - background-color: white; - width: 120px; - box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); - padding: 5px 0; - margin: 0; - list-style-type: none; - right: 0; - top: 100%; -} - -.dropdownmenu li { - cursor: pointer; - padding: 8px 16px; - text-decoration: none; - display: block; - color: #333; -} - -.dropdownmenu li:hover { - background-color: #f1f1f1; -} - -.dropdownContainer:hover .dropdownmenu { - display: block; -} diff --git a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx index 7656f1f0cf..dca9adb45a 100644 --- a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx +++ b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import PropTypes from 'prop-types'; -import styles from './AdvertisementEntry.module.css'; +import styles from '../../../../style/app.module.css'; import { Button, Card, Col, Row, Spinner, Modal } from 'react-bootstrap'; import { DELETE_ADVERTISEMENT_BY_ID } from 'GraphQl/Mutations/mutations'; import { useMutation } from '@apollo/client'; @@ -99,7 +99,7 @@ function AdvertisementEntry({ {Array.from({ length: 1 }).map((_, idx) => ( - +
{formStatus === 'register' ? ( diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index c9048eb552..397df845fb 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -549,7 +549,7 @@ const Calendar: React.FC = ({
) : (
))} @@ -745,7 +746,7 @@ function EventListCardModals({
))} @@ -811,7 +813,7 @@ function EventListCardModals({ - diff --git a/src/components/TagActions/TagActions.module.css b/src/components/TagActions/TagActions.module.css deleted file mode 100644 index 079dffea65..0000000000 --- a/src/components/TagActions/TagActions.module.css +++ /dev/null @@ -1,42 +0,0 @@ -.errorContainer { - min-height: 100vh; -} - -.errorMessage { - margin-top: 25%; - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; -} - -.errorIcon { - transform: scale(1.5); - color: var(--bs-danger); - margin-bottom: 1rem; -} - -.scrollContainer { - height: 100px; - overflow-y: auto; -} - -.tagBadge { - display: flex; - align-items: center; - padding: 5px 10px; - border-radius: 12px; - box-shadow: 0 1px 3px var(--bs-gray-400); - max-width: calc(100% - 2rem); -} - -.removeFilterIcon { - cursor: pointer; -} - -.loadingDiv { - min-height: 300px; - display: flex; - justify-content: center; - align-items: center; -} diff --git a/src/components/TagActions/TagActions.tsx b/src/components/TagActions/TagActions.tsx index 083341372f..f237c70212 100644 --- a/src/components/TagActions/TagActions.tsx +++ b/src/components/TagActions/TagActions.tsx @@ -7,7 +7,7 @@ import type { InterfaceQueryOrganizationUserTags, InterfaceTagData, } from 'utils/interfaces'; -import styles from './TagActions.module.css'; +import styles from '../../style/app.module.css'; import { ORGANIZATION_USER_TAGS_LIST } from 'GraphQl/Queries/OrganizationQueries'; import { ASSIGN_TO_TAGS, @@ -82,7 +82,7 @@ const TagActions: React.FC = ({ }; }, ) => { - if (!fetchMoreResult) /* istanbul ignore next */ return prevResult; + if (!fetchMoreResult) return prevResult; return { organizations: [ @@ -106,7 +106,7 @@ const TagActions: React.FC = ({ const userTagsList = orgUserTagsData?.organizations[0]?.userTags.edges.map( (edge) => edge.node, - ) ?? /* istanbul ignore next */ []; + ) ?? []; // tags that we have selected to assigned const [selectedTags, setSelectedTags] = useState([]); @@ -129,7 +129,7 @@ const TagActions: React.FC = ({ useEffect(() => { const newCheckedTags = new Set(checkedTags); const newAncestorTagsDataMap = new Map(ancestorTagsDataMap); - /* istanbul ignore next */ + addAncestorTagsData.forEach( (ancestorTag: InterfaceUserTagsAncestorData) => { const prevAncestorTagValue = ancestorTagsDataMap.get(ancestorTag._id); @@ -148,7 +148,7 @@ const TagActions: React.FC = ({ useEffect(() => { const newCheckedTags = new Set(checkedTags); const newAncestorTagsDataMap = new Map(ancestorTagsDataMap); - /* istanbul ignore next */ + removeAncestorTagsData.forEach( (ancestorTag: InterfaceUserTagsAncestorData) => { const prevAncestorTagValue = ancestorTagsDataMap.get(ancestorTag._id); @@ -178,7 +178,6 @@ const TagActions: React.FC = ({ const deSelectTag = (tag: InterfaceTagData): void => { if (!selectedTags.some((selectedTag) => selectedTag._id === tag._id)) { - /* istanbul ignore next */ return; } @@ -240,7 +239,6 @@ const TagActions: React.FC = ({ hideTagActionsModal(); } } catch (error: unknown) { - /* istanbul ignore next */ if (error instanceof Error) { toast.error(error.message); } @@ -270,7 +268,7 @@ const TagActions: React.FC = ({ centered > @@ -312,7 +310,7 @@ const TagActions: React.FC = ({ setTagSearchName(e.target.value.trim())} data-testid="searchByName" @@ -388,13 +386,18 @@ const TagActions: React.FC = ({ - diff --git a/src/components/TagActions/TagNode.tsx b/src/components/TagActions/TagNode.tsx index fc41ef4066..22173e7834 100644 --- a/src/components/TagActions/TagNode.tsx +++ b/src/components/TagActions/TagNode.tsx @@ -7,7 +7,7 @@ import type { } from 'utils/interfaces'; import type { InterfaceOrganizationSubTagsQuery } from 'utils/organizationTagsUtils'; import { TAGS_QUERY_DATA_CHUNK_SIZE } from 'utils/organizationTagsUtils'; -import styles from './TagActions.module.css'; +import styles from '../../style/app.module.css'; import InfiniteScroll from 'react-infinite-scroll-component'; import InfiniteScrollLoader from 'components/InfiniteScrollLoader/InfiniteScrollLoader'; import { WarningAmberRounded } from '@mui/icons-material'; @@ -61,7 +61,7 @@ const TagNode: React.FC = ({ fetchMoreResult?: { getChildTags: InterfaceQueryUserTagChildTags }; }, ) => { - if (!fetchMoreResult) /* istanbul ignore next */ return prevResult; + if (!fetchMoreResult) return prevResult; return { getChildTags: { @@ -93,8 +93,7 @@ const TagNode: React.FC = ({ } const subTagsList = - subTagsData?.getChildTags.childTags.edges.map((edge) => edge.node) ?? - /* istanbul ignore next */ []; + subTagsData?.getChildTags.childTags.edges.map((edge) => edge.node) ?? []; const handleTagClick = (): void => { setExpanded(!expanded); @@ -173,7 +172,6 @@ const TagNode: React.FC = ({ next={loadMoreSubTags} hasMore={ subTagsData?.getChildTags.childTags.pageInfo.hasNextPage ?? - /* istanbul ignore next */ false } loader={} diff --git a/src/components/Venues/VenueCard.tsx b/src/components/Venues/VenueCard.tsx index 43da734bd6..557a5c77e4 100644 --- a/src/components/Venues/VenueCard.tsx +++ b/src/components/Venues/VenueCard.tsx @@ -85,22 +85,22 @@ const VenueCard = ({
{/* Edit button */} {/* Delete button */}
- -
-
+ {/*
*/} + {/*
*/} +
{ dataTestIdPrefix="userFilter" className={`${styles.createButton} mt-2`} /> +
+
{ />
+ {/*
*/} + {/*
*/}
{/* Table */} {loadingMembers === false && diff --git a/src/screens/FundCampaignPledge/FundCampaignPledge.tsx b/src/screens/FundCampaignPledge/FundCampaignPledge.tsx index 323f30aa67..68ecfeaced 100644 --- a/src/screens/FundCampaignPledge/FundCampaignPledge.tsx +++ b/src/screens/FundCampaignPledge/FundCampaignPledge.tsx @@ -359,7 +359,7 @@ const fundCampaignPledge = (): JSX.Element => { -
diff --git a/src/screens/ManageTag/ManageTag.tsx b/src/screens/ManageTag/ManageTag.tsx index 0832b2ab3e..b0748a9bf3 100644 --- a/src/screens/ManageTag/ManageTag.tsx +++ b/src/screens/ManageTag/ManageTag.tsx @@ -131,7 +131,6 @@ function ManageTag(): JSX.Element { }; }, ) => { - /* istanbul ignore next -- @preserve */ if (!fetchMoreResult) return prevResult; return { @@ -174,7 +173,6 @@ function ManageTag(): JSX.Element { toggleUnassignUserTagModal(); toast.success(t('successfullyUnassigned') as string); } catch (error: unknown) { - /* istanbul ignore next -- @preserve */ if (error instanceof Error) { toast.error(error.message); } @@ -209,14 +207,12 @@ function ManageTag(): JSX.Element { }, }); - /* istanbul ignore else -- @preserve */ if (data) { toast.success(t('tagUpdationSuccess')); userTagAssignedMembersRefetch(); setEditUserTagModalIsOpen(false); } } catch (error: unknown) { - /* istanbul ignore next -- @preserve */ if (error instanceof Error) { toast.error(error.message); } @@ -236,7 +232,6 @@ function ManageTag(): JSX.Element { toggleRemoveUserTagModal(); toast.success(t('tagRemovalSuccess') as string); } catch (error: unknown) { - /* istanbul ignore next -- @preserve */ if (error instanceof Error) { toast.error(error.message); } @@ -259,7 +254,7 @@ function ManageTag(): JSX.Element { const userTagAssignedMembers = userTagAssignedMembersData?.getAssignedUsers.usersAssignedTo.edges.map( (edge) => edge.node, - ) ?? /* istanbul ignore next -- @preserve */ []; + ) ?? []; // get the ancestorTags array and push the current tag in it // used for the tag breadcrumbs @@ -291,7 +286,7 @@ function ManageTag(): JSX.Element { minWidth: 100, align: 'center', headerAlign: 'center', - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, sortable: false, renderCell: (params: GridCellParams) => { return
{params.row.id}
; @@ -303,7 +298,7 @@ function ManageTag(): JSX.Element { flex: 2, minWidth: 100, sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return (
@@ -320,7 +315,7 @@ function ManageTag(): JSX.Element { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return (
@@ -329,7 +324,9 @@ function ManageTag(): JSX.Element { state={{ id: params.row._id }} data-testid="viewProfileBtn" > -
+
{t('viewProfile')}
@@ -436,7 +433,6 @@ function ManageTag(): JSX.Element { > {tag.name} {orgUserTagAncestors.length - 1 !== index && ( - /* istanbul ignore next -- @preserve */ )}
@@ -452,8 +448,7 @@ function ManageTag(): JSX.Element { next={loadMoreAssignedMembers} hasMore={ userTagAssignedMembersData?.getAssignedUsers - .usersAssignedTo.pageInfo.hasNextPage ?? - /* istanbul ignore next -- @preserve */ false + .usersAssignedTo.pageInfo.hasNextPage ?? false } loader={} scrollableTarget="manageTagScrollableDiv" @@ -464,16 +459,15 @@ function ManageTag(): JSX.Element { hideFooter={true} getRowId={(row) => row.id} slots={{ - noRowsOverlay: - /* istanbul ignore next -- @preserve */ () => ( - - {t('noAssignedMembersFound')} - - ), + noRowsOverlay: () => ( + + {t('noAssignedMembersFound')} + + ), }} sx={dataGridStyle} getRowClassName={() => `${styles.rowBackgrounds}`} @@ -501,7 +495,7 @@ function ManageTag(): JSX.Element { setTagActionType('assignToTags'); showTagActionsModal(); }} - className="my-2 btn btn-primary btn-sm w-75" + className={`my-2 btn btn-primary btn-sm w-75 ${styles.editButton}`} data-testid="assignToTags" > {t('assignToTags')} @@ -525,7 +519,7 @@ function ManageTag(): JSX.Element { />
{tCommon('edit')} diff --git a/src/screens/ManageTag/RemoveUserTagModal.tsx b/src/screens/ManageTag/RemoveUserTagModal.tsx index dc000f443c..91ba0b38aa 100644 --- a/src/screens/ManageTag/RemoveUserTagModal.tsx +++ b/src/screens/ManageTag/RemoveUserTagModal.tsx @@ -1,6 +1,7 @@ import type { TFunction } from 'i18next'; import React from 'react'; import { Button, Modal } from 'react-bootstrap'; +import styles from '../../style/app.module.css'; /** * Remove UserTag Modal component for the Manage Tag screen. @@ -33,7 +34,7 @@ const RemoveUserTagModal: React.FC = ({ keyboard={false} centered > - + {t('removeUserTag')} @@ -44,7 +45,7 @@ const RemoveUserTagModal: React.FC = ({ diff --git a/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx b/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx index 640fdde032..099a897435 100644 --- a/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx +++ b/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx @@ -113,17 +113,24 @@ const ItemUpdateStatusModal: FC = ({ {isCompleted ? (
- -
) : ( -
-
-
+ +
+
+ setSearchTerm(e.target.value)} + data-testid="searchFullName" + /> + +
+ {/*
*/} +
{ buttonLabel={tCommon('sort')} />
-
+
+ {/*
*/}
-
+
= ({ } }; - /*istanbul ignore next*/ const updateFundHandler = async ( e: ChangeEvent, ): Promise => { @@ -228,7 +227,7 @@ const FundModal: React.FC = ({ type="checkbox" checked={formState.taxDeductible} data-testid="setTaxDeductibleSwitch" - className="ms-2" + className={`ms-2 ${styles.switch}`} onChange={() => setFormState({ ...formState, @@ -241,7 +240,7 @@ const FundModal: React.FC = ({ @@ -259,7 +258,7 @@ const FundModal: React.FC = ({ type="checkbox" checked={formState.isArchived} data-testid="archivedSwitch" - className="ms-2" + className={`ms-2 ${styles.switch}`} onChange={() => setFormState({ ...formState, diff --git a/src/screens/OrganizationFunds/OrganizationFunds.tsx b/src/screens/OrganizationFunds/OrganizationFunds.tsx index 6af889ab83..3794da0338 100644 --- a/src/screens/OrganizationFunds/OrganizationFunds.tsx +++ b/src/screens/OrganizationFunds/OrganizationFunds.tsx @@ -161,7 +161,7 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, align: 'center', headerAlign: 'center', - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, sortable: false, renderCell: (params: GridCellParams) => { return
{params.row.id}
; @@ -175,11 +175,11 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return (
handleClick(params.row._id as string)} > @@ -196,7 +196,7 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return params.row.creator.firstName + ' ' + params.row.creator.lastName; }, @@ -208,7 +208,7 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, flex: 2, renderCell: (params: GridCellParams) => { return ( @@ -226,7 +226,7 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return params.row.isArchived ? 'Archived' : 'Active'; }, @@ -239,7 +239,7 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return ( <> @@ -267,7 +267,7 @@ const organizationFunds = (): JSX.Element => { minWidth: 100, headerAlign: 'center', sortable: false, - headerClassName: `${styles.tableHeaders}`, + headerClassName: `${styles.tableHeader}`, renderCell: (params: GridCellParams) => { return ( -
-
- - setSortBy(value as 'createdAt_DESC' | 'createdAt_ASC') - } - dataTestIdPrefix="filter" - buttonLabel={tCommon('sort')} - /> -
+
+
+
+ setSearchTerm(e.target.value)} + data-testid="searchByName" + />
+
+ + setSortBy(value as 'createdAt_DESC' | 'createdAt_ASC') + } + dataTestIdPrefix="filter" + buttonLabel={tCommon('sort')} + /> +
+ +
+
diff --git a/src/screens/OrganizationPeople/AddMember.tsx b/src/screens/OrganizationPeople/AddMember.tsx index 7743768611..a6f8fbe4b0 100644 --- a/src/screens/OrganizationPeople/AddMember.tsx +++ b/src/screens/OrganizationPeople/AddMember.tsx @@ -528,35 +528,29 @@ function AddMember(): JSX.Element { />
+ +
- +
); diff --git a/src/screens/OrganizationTags/OrganizationTags.tsx b/src/screens/OrganizationTags/OrganizationTags.tsx index 0b233cfaef..39a2a26032 100644 --- a/src/screens/OrganizationTags/OrganizationTags.tsx +++ b/src/screens/OrganizationTags/OrganizationTags.tsx @@ -82,7 +82,6 @@ function OrganizationTags(): JSX.Element { first: TAGS_QUERY_DATA_CHUNK_SIZE, after: orgUserTagsData?.organizations?.[0]?.userTags?.pageInfo?.endCursor ?? - /* istanbul ignore next */ null, }, updateQuery: ( @@ -95,7 +94,7 @@ function OrganizationTags(): JSX.Element { }; }, ) => { - if (!fetchMoreResult) /* istanbul ignore next */ return prevResult; + if (!fetchMoreResult) return prevResult; return { organizations: [ @@ -146,7 +145,6 @@ function OrganizationTags(): JSX.Element { setCreateTagModalIsOpen(false); } } catch (error: unknown) { - /* istanbul ignore next */ if (error instanceof Error) { toast.error(error.message); } @@ -283,7 +281,7 @@ function OrganizationTags(): JSX.Element { variant="outline-primary" onClick={() => redirectToManageTag(params.row._id)} data-testid="manageTagBtn" - className={styles.addButton} + className={styles.editButton} > {t('manageTag')} @@ -366,7 +364,7 @@ function OrganizationTags(): JSX.Element { next={loadMoreUserTags} hasMore={ orgUserTagsData?.organizations?.[0]?.userTags?.pageInfo - ?.hasNextPage ?? /* istanbul ignore next */ false + ?.hasNextPage ?? false } loader={} scrollableTarget="orgUserTagsScrollableDiv" @@ -377,7 +375,7 @@ function OrganizationTags(): JSX.Element { hideFooter={true} getRowId={(row) => row.id} slots={{ - noRowsOverlay: /* istanbul ignore next */ () => ( + noRowsOverlay: () => ( hideCreateTagModal()} data-testid="closeCreateTagModal" - className={styles.closeButton} + className={styles.removeButton} > {tCommon('cancel')} diff --git a/src/screens/SubTags/SubTags.tsx b/src/screens/SubTags/SubTags.tsx index 034c7dfea9..cb2f7ba053 100644 --- a/src/screens/SubTags/SubTags.tsx +++ b/src/screens/SubTags/SubTags.tsx @@ -92,7 +92,6 @@ function SubTags(): JSX.Element { fetchMoreResult?: { getChildTags: InterfaceQueryUserTagChildTags }; }, ) => { - /* istanbul ignore next -- @preserve */ if (!fetchMoreResult) return prevResult; return { @@ -126,7 +125,6 @@ function SubTags(): JSX.Element { }, }); - /* istanbul ignore next -- @preserve */ if (data) { toast.success(t('tagCreationSuccess') as string); subTagsRefetch(); @@ -134,7 +132,6 @@ function SubTags(): JSX.Element { setAddSubTagModalIsOpen(false); } } catch (error: unknown) { - /* istanbul ignore next -- @preserve */ if (error instanceof Error) { toast.error(error.message); } @@ -155,7 +152,6 @@ function SubTags(): JSX.Element { } const subTagsList = - /* istanbul ignore next -- @preserve */ subTagsData?.getChildTags.childTags.edges.map((edge) => edge.node) ?? []; const parentTagName = subTagsData?.getChildTags.name; @@ -265,9 +261,9 @@ function SubTags(): JSX.Element { return ( @@ -373,7 +369,6 @@ function SubTags(): JSX.Element { next={loadMoreSubTags} hasMore={ subTagsData?.getChildTags.childTags.pageInfo.hasNextPage ?? - /* istanbul ignore next -- @preserve */ false } loader={} @@ -385,16 +380,15 @@ function SubTags(): JSX.Element { hideFooter={true} getRowId={(row) => row.id} slots={{ - noRowsOverlay: - /* istanbul ignore next -- @preserve */ () => ( - - {t('noTagsFound')} - - ), + noRowsOverlay: () => ( + + {t('noTagsFound')} + + ), }} sx={dataGridStyle} getRowClassName={() => `${styles.rowBackground}`} @@ -423,7 +417,7 @@ function SubTags(): JSX.Element { centered > @@ -435,7 +429,7 @@ function SubTags(): JSX.Element { hideAddSubTagModal()} data-testid="addSubTagModalCloseBtn" - className={styles.closeButton} + className={styles.removeButton} > {tCommon('cancel')} diff --git a/src/style/app.module.css b/src/style/app.module.css index 6763be4b24..dfba774886 100644 --- a/src/style/app.module.css +++ b/src/style/app.module.css @@ -55,7 +55,7 @@ --tablerow-bg: #eff1f7; --date-picker-bg: #f2f2f2; --table-bg-color: var(--grey-bg-color); - --tablerow-bg-color: var(--dropdown-hover-color); + --tablerow-bg-color: #ffffff; --row-background: var(--bs-white, var(--bs-white)); --modal-background: rgba(0, 0, 0, 0.7); @@ -91,16 +91,16 @@ --bs-gray-400: #9ca3af; --bs-gray-300: #d1d5db; --toggle-button-bg: #1e4e8c; - - --table-head-bg: var(--blue-subtle, var(--blue-color)); + --table-head-bg: #eaebef; --table-head-color: var(--bs-white, var(--white-color)); - - --table-header-color: var(--bs-white, var(--bs-gray-300)); + --table-header-color: #000000; --input-area-color: #f1f3f6; --date-picker-background: #f2f2f2; --grey-bg-color-dark: #707070; --dropdown-border-color: #cccccc; --primary-border-solid: 1px solid var(--dropdown-border-color); + --light-blue: #a8c7fa; + --dark-blue: #1778f2; --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* breakpoints */ @@ -195,7 +195,7 @@ font-size: 20px; margin-bottom: 30px; padding-bottom: 5px; - border-bottom: 3px solid var(--light-green); + border-bottom: 3px solid var(--light-blue); width: 15%; } @@ -205,7 +205,7 @@ font-size: 18px; margin-bottom: 20px; padding-bottom: 5px; - border-bottom: 3px solid var(--light-green); + border-bottom: 3px solid var(--light-blue); width: 60%; } @@ -283,7 +283,15 @@ margin-bottom: 10px; */ } -.dropdown:is(:hover, :focus, :active, :focus-visible, .show) { +.dropdown:is( + :hover, + :focus, + :active, + :focus-visible, + .show, + :disabled, + :checked + ) { background-color: transparent !important; border: 1px solid var(--brown-color); color: var(--brown-color) !important; @@ -291,8 +299,21 @@ .dropdown:is(:focus, :focus-visible) { outline: 2px solid var(--highlight-color, var(--search-button-bg)); + border: 1px solid var(--brown-color); } +.dropdown:not(:focus) { + background-color: var(--bs-white); + border: 1px solid var(--brown-color); + color: var(--brown-color) !important; +} + +/* .dropdown:disabled { + background-color: transparent !important; + border: 1px solid var(--brown-color); + color: var(--brown-color) !important; +} */ + .dropdownItem { background-color: var(--bs-white) !important; color: var(--brown-color) !important; @@ -380,6 +401,11 @@ gap: 8px; } +.deleteButton:is(:hover, :active) { + background-color: var(--delete-button-color) !important; + color: white; +} + .actionItemDeleteButton { background-color: var(--delete-button-bg); color: var(--delete-button-color); @@ -418,6 +444,10 @@ box-shadow: 0 1px 1px var(--input-shadow-color); } +.inputField:focus { + box-shadow: 0 0 0 0.25rem var(--light-blue); +} + .inputFieldModal { margin-bottom: 10px; background-color: var(--bs-white); @@ -449,24 +479,49 @@ .searchButton:active { transform: scale(0.95); + background-color: var(--search-button-hover-bg, #286fe0) !important; + border-color: transparent !important; } .addButton { margin-bottom: 10px; - background-color: var(--search-button-bg); + background-color: var(--light-blue); border-color: var(--grey-bg-color); } -.addButton:hover { - background-color: var(--light-blue-color); +.addButton:is(:hover, :active) { + background-color: var(--dark-blue) !important; border-color: var(--search-button-border); } +.removeButton { + margin-bottom: 10px; + background-color: var(--delete-button-bg); + color: var(--delete-button-color); + margin-right: 10px; +} + +.removeButton:is(:hover, :active, :focus) { + background-color: var(--delete-button-color) !important; + border-color: var(--delete-button-color); + color: white; +} + .yesButton { background-color: var(--search-button-bg); border-color: var(--search-button-border); } +.regularBtn { + background-color: var(--search-button-bg); + border-color: var(--search-button-border); +} + +.regularBtn:is(:hover, :active) { + background-color: #286fe0 !important; + border-color: var(--search-button-border) !important; +} + .searchIcon { color: var(--brown-color); } @@ -506,12 +561,56 @@ overflow-y: auto; } +.scrollContainer { + height: 100px; + overflow-y: auto; + margin-bottom: 1rem; +} + +.memberBadge { + display: flex; + align-items: center; + padding: 5px 10px; + border-radius: 12px; + box-shadow: 0 1px 3px var(--bs-gray-400); + max-width: calc(100% - 2rem); +} + +.loadingDiv { + min-height: 300px; + display: flex; + justify-content: center; + align-items: center; +} + +.tagBadge { + display: flex; + align-items: center; + padding: 5px 10px; + border-radius: 12px; + box-shadow: 0 1px 3px var(--bs-gray-400); + max-width: calc(100% - 2rem); +} + .tableHeader { background-color: var(--table-head-bg); color: var(--table-header-color); font-size: var(--font-size-header); } +.editButton { + background-color: var(--light-blue); + color: var(--brown-color); + border-color: var(--grey-bg-color); + --bs-btn-active-bg: var(--dark-blue); + --bs-btn-active-border-color: var(--grey-bg-color); +} + +.editButton:is(:hover, :active) { + background-color: var(--dark-blue); + border-color: var(--search-button-border); +} + .errorContainer { min-height: 100vh; } @@ -562,6 +661,7 @@ scrollbar-color: var(--bs-gray-400) var(--bs-white); max-height: calc(100vh - 18rem); overflow: auto; + margin-top: 20px !important; } .tagsBreadCrumbs:hover { @@ -665,6 +765,18 @@ hr { display: flex; justify-content: center; align-items: center; + /* background-color: var(--search-button-bg); */ +} + +.switch input { + /* box-shadow: 0 0 0.1rem 0.2rem var(--light-blue); */ + --bs-form-switch-bg: transparent; +} + +.switch input:checked { + background-color: var(--dark-blue); + border-color: var(--dark-blue); + box-shadow: 0 0 0.1rem 0.2rem var(--light-blue); } .pageNotFound { @@ -691,7 +803,7 @@ hr { .pageNotFound h1.head { font-size: 250px; font-weight: 900; - color: var(--light-green); + color: var(--light-blue); letter-spacing: 25px; margin: 10px 0 0 0; } @@ -734,10 +846,11 @@ hr { .greenregbtnPledge { margin-top: 15px; border: 1px solid var(--bs-gray-300); + border-color: var(--grey-bg-color); box-shadow: 0 2px 2px var(--grey-border-box-color); padding: 10px 10px; border-radius: 5px; - background-color: var(--bs-primary); + background-color: var(--search-button-bg); width: 100%; font-size: 16px; color: var(--bs-white); @@ -771,7 +884,7 @@ hr { .inputFieldPledge { background-color: var(--bs-white); - box-shadow: 0 1px 1px var(--light-green); + box-shadow: 0 1px 1px var(--light-blue); } .dropdownPledge { @@ -873,6 +986,10 @@ hr { gap: 0.3rem; } +/* .progressBar .bg-info { + background-color: #286fe0 !important; +} */ + .endpoints { display: flex; position: relative; @@ -934,10 +1051,20 @@ hr { display: flex; justify-content: center; align-items: center; + border-color: var(--grey-border-box-color); +} + +.toggleBtnPledge:is(:focus, :active, :checked) + label { + color: black !important; + border-color: black !important; +} + +.toggleBtnPledge:not(:checked) + label { + color: var(--subtle-blue-grey-hover) !important; } -.toggleBtnPledge:hover { - color: var(--light-green) !important; +.toggleBtnPledge:is(:hover) + label { + color: var(--light-blue) !important; } .card { @@ -1188,7 +1315,7 @@ hr { } .customcell { - background-color: var(--light-green) !important; + background-color: var(--light-blue) !important; color: var(--bs-white) !important; font-size: medium !important; font-weight: 500 !important; @@ -1214,7 +1341,7 @@ hr { } .table-body > .table-row:nth-child(2n) { - background: var(--light-neon-green) !important; + background: var(--light-blue) !important; } .organizationFundCampaignContainer { @@ -1235,11 +1362,12 @@ hr { .greenregbtnOrganizationFundCampaign { margin: 1rem 0 0; margin-top: 15px; - border: 1px solid var(--bs-gray-300); + /* border: 1px solid var(--search-button-bg); */ + border-color: var(--grey-bg-color); box-shadow: 0 2px 2px var(--grey-border-box-color); padding: 10px 10px; border-radius: 5px; - background-color: var(--bs-primary); + background-color: var(--search-button-bg); width: 100%; font-size: 16px; color: var(--bs-white); @@ -1252,6 +1380,11 @@ hr { flex: 1; } +.greenregbtnOrganizationFundCampaign:hover { + background-color: #286fe0; + border-color: var(--grey-bg-color); +} + .goalButtonOrganizationFundCampaign { border: 1px solid var(--grey-border-box-color) !important; color: var(--grey-bg-color-dark) !important; @@ -1575,6 +1708,13 @@ hr { .modalHeader { border: none; padding-bottom: 0; + background-color: var(--white-color) !important; + padding: 1rem 1rem; + color: #000000; +} + +.modalHeader div { + color: #000000 !important; } .label { @@ -1671,7 +1811,7 @@ hr { } .toggleBtn:hover { - color: var(--light-green) !important; + color: var(--light-blue) !important; } input[type='radio']:checked + label { @@ -1780,6 +1920,14 @@ input[type='radio']:checked + label:hover { box-shadow: 0 1px 1px var(--brand-primary); } +.dropdowns { + background-color: var(--bs-white); + border: 1px solid var(--dropdown-border-color); + position: relative; + display: inline-block; + color: black; +} + .chipIcon { height: 0.9rem !important; } @@ -1790,12 +1938,19 @@ input[type='radio']:checked + label:hover { .active { background-color: var(--status-active-bg); + color: var(--light-blue) !important; + border-color: var(--light-blue) !important; } .pending { background-color: var(--status-pending-bg); - color: var(--status-pending-text); - border-color: var(--status-pending-border); + color: var(--light-blue) !important; + border-color: var(--light-blue) !important; +} + +.checkboxButton input:checked { + background-color: var(--dark-blue); + border-color: var(--dark-blue); } /* Modals */ @@ -1876,6 +2031,7 @@ input[type='radio']:checked + label:hover { border: 0.5px solid var(--brown-color); } .searchButtonOrgList { + background-color: var(--light-blue); position: absolute; z-index: 10; bottom: 0; @@ -3413,7 +3569,7 @@ button[data-testid='createPostBtn'] { display: flex !important; align-items: center; background-color: transparent; - color: var(--light-green); + color: var(--light-blue); } .entryaction .spinner-grow { @@ -3423,6 +3579,86 @@ button[data-testid='createPostBtn'] { } } +.entrytoggle { + margin: 24px 24px 0 auto; + width: fit-content; +} + +.entryaction { + display: flex !important; +} + +.entryaction i { + margin-right: 8px; + margin-top: 4px; +} + +.entryaction .spinner-grow { + height: 1rem; + width: 1rem; + margin-right: 8px; +} + +.admedia { + object-fit: cover; + height: 16rem; +} + +.buttons { + display: flex; + justify-content: flex-end; +} + +.addCard { + width: 28rem; +} + +.dropdownButton { + background-color: transparent; + color: #000; + border: none; + cursor: pointer; + display: flex; + width: 100%; + justify-content: flex-end; + padding: 8px 10px; +} + +.dropdownContainer { + position: relative; + display: inline-block; +} + +.dropdownmenu { + display: none; + position: absolute; + z-index: 1; + background-color: white; + width: 120px; + box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); + padding: 5px 0; + margin: 0; + list-style-type: none; + right: 0; + top: 100%; +} + +.dropdownmenu li { + cursor: pointer; + padding: 8px 16px; + text-decoration: none; + display: block; + color: #333; +} + +.dropdownmenu li:hover { + background-color: #f1f1f1; +} + +.dropdownContainer:hover .dropdownmenu { + display: block; +} + .leftDrawer { width: calc(300px + 2rem); position: fixed; diff --git a/src/utils/organizationTagsUtils.ts b/src/utils/organizationTagsUtils.ts index 56654a3abb..9105a5629e 100644 --- a/src/utils/organizationTagsUtils.ts +++ b/src/utils/organizationTagsUtils.ts @@ -18,9 +18,11 @@ export const dataGridStyle = { }, '& .MuiDataGrid-row:hover': { backgroundColor: 'transparent', + boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)', }, '& .MuiDataGrid-row.Mui-hovered': { backgroundColor: 'transparent', + boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)', }, '& .MuiDataGrid-root': { borderRadius: '0.1rem', @@ -36,6 +38,10 @@ export const dataGridStyle = { '& .MuiDataGrid-virtualScrollerContent': { marginTop: 6.5, }, + '& .MuiDataGrid-cell:focus': { + outline: '2px solid #000', + outlineOffset: '-2px', + }, }; // the data chunk size for tag related queries