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

feat/multiple-UI-improvements #452

Merged
merged 111 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
ca5d94d
feat: added new selectors
nikolajovancevic Jul 30, 2024
b2efa7f
Merge branch 'develop' of https://github.com/IntersectMBO/cc-portal i…
Kristina2103 Aug 8, 2024
4dfce78
feat: Upload button selector ids
Kristina2103 Aug 8, 2024
d76efff
feat: Input and Select selector ids
Kristina2103 Aug 8, 2024
0331402
feat: User List table selector ids
Kristina2103 Aug 12, 2024
062b5fb
fix: MultipleSelect rename selector ids
Kristina2103 Aug 12, 2024
6b171c3
fix: Rename Upload component selctor ids
Kristina2103 Aug 12, 2024
a0ec108
feat: Modal action buttons selector ids-Add member and Upload constit…
Kristina2103 Aug 12, 2024
dc47fa0
feat: AdminTopNav Search component selector id
Kristina2103 Aug 12, 2024
4822824
feat: Admin signout & modal selector ids
Kristina2103 Aug 12, 2024
c4d2bba
feat: AdminTopNav buttons selector ids
Kristina2103 Aug 12, 2024
941e4c8
feat: Navigation links selector ids
Kristina2103 Aug 12, 2024
d54372b
Feat: Footer selector ids
Kristina2103 Aug 12, 2024
b978804
feat: Constitution page selector ids
Kristina2103 Aug 12, 2024
e61a861
feat: Latest updates and votes selector ids
Kristina2103 Aug 13, 2024
7f057c0
feat: GA table selector ids
Kristina2103 Aug 13, 2024
2b5bc6c
fix dockle scan on ci
Baja-KS Aug 26, 2024
39a1732
fix registry login
Baja-KS Aug 26, 2024
cf7123c
debug imgs
Baja-KS Aug 26, 2024
6bee09c
scan tar imgs
Baja-KS Aug 26, 2024
0c1460c
test
Baja-KS Aug 26, 2024
dd6318b
add tar cleanup
Baja-KS Aug 26, 2024
a3b8dae
test
Baja-KS Aug 26, 2024
2298f2f
pr workflow fix
Baja-KS Aug 26, 2024
ef1b614
declutter dockle
Baja-KS Aug 27, 2024
458e3a9
add comment
Baja-KS Aug 27, 2024
5309d7e
Merge pull request #310 from IntersectMBO/test-pr-merge-comment
Baja-KS Aug 27, 2024
9b68718
add microservice in pr comment
Baja-KS Aug 27, 2024
ae4f9f5
Merge pull request #311 from IntersectMBO/test-2-comment
Baja-KS Aug 27, 2024
24877fd
test w/ individual service failing
Baja-KS Aug 27, 2024
dfcb047
fix dockerfile
Baja-KS Aug 27, 2024
6e1477e
fix: vote table row responsiveness
Vojimirovich Sep 3, 2024
931c47c
Merge pull request #324 from IntersectMBO/fix/votes-table-row-responsive
Vojimirovich Sep 4, 2024
10bb2f5
Merge pull request #312 from IntersectMBO/test-fail-fast
Baja-KS Sep 7, 2024
8f9ce00
Refactor/change logic for file upload to S3 (#328)
BEdev24 Sep 10, 2024
bf33164
feat: dht-queue (#336)
BEdev24 Sep 10, 2024
998fbec
refactor: image upload to S3 (#337)
BEdev24 Sep 10, 2024
80d62e9
fitx/rationale-governance-format
BEdev24 Sep 11, 2024
709924d
chore: change guides btn link
Vojimirovich Sep 11, 2024
ed36368
Merge pull request #339 from IntersectMBO/chore/change-guides-btn-link
Vojimirovich Sep 11, 2024
565adb0
fix: rm-gap-title-abstract-len-constraint
BEdev24 Sep 11, 2024
ea9bc40
refactor: add redis username
BEdev24 Sep 11, 2024
e4908f5
Fix add redis creds (#343)
BEdev24 Sep 11, 2024
0195603
Fix add redis creds (#344)
BEdev24 Sep 11, 2024
134efbc
fix: typo
BEdev24 Sep 11, 2024
3623193
fix: typo
BEdev24 Sep 11, 2024
7347e4b
refactor: cache service
BEdev24 Sep 11, 2024
69fc617
refactor/redis-auth (#345)
BEdev24 Sep 11, 2024
9ade333
fix: plural grammar corrections
Vojimirovich Sep 11, 2024
dec6507
refactor: pruning worker processors (#346)
BEdev24 Sep 11, 2024
fcd49aa
fix: latest updates content overlaping
Vojimirovich Sep 12, 2024
d1f5065
refactor: ipfs service path and minor refactoring
BEdev24 Sep 12, 2024
cfb7444
fix: usersnap remove other buttons (#323)
kubet Sep 12, 2024
12802df
fix: Overlapping on tables
Vojimirovich Sep 12, 2024
3e50ee0
Merge branch 'develop' of github.com-Vojimirovich:IntersectMBO/cc-por…
Vojimirovich Sep 12, 2024
50e3627
fix: don't show top banner on mainnet
Vojimirovich Sep 12, 2024
e06ccce
fix: show more btn not loading more content, update env example
Vojimirovich Sep 12, 2024
12568b9
refactor: renamed migration name for gap len constraint removal
BEdev24 Sep 13, 2024
90505b9
refactor: ipfs volume
BEdev24 Sep 13, 2024
f222be0
add correct vars (#352)
BEdev24 Sep 13, 2024
5277d15
fix: ipfs-redis-service (#360)
BEdev24 Sep 17, 2024
80830ac
fix/gov-search-rationale-votes: user votes and rationale are being ch…
BEdev24 Sep 18, 2024
bbfb226
Merge branch 'develop' of https://github.com/IntersectMBO/cc-portal i…
Kristina2103 Sep 23, 2024
e9c8c75
Merge pull request #233 from IntersectMBO/feat/add-selector-ids
Kristina2103 Sep 23, 2024
112c100
fix: usersnap showing all on path change
kubet Sep 24, 2024
50624a1
fix: Remove comments for selector ids
Kristina2103 Sep 24, 2024
a3808f1
Merge pull request #374 from IntersectMBO/feat/add-selector-ids
Kristina2103 Sep 24, 2024
9aadffc
Merge pull request #373 from IntersectMBO/fix/usersnap-pathname-issue
Kristina2103 Sep 24, 2024
e8f744f
fix: Usersnap query params issue
Kristina2103 Sep 24, 2024
665ac06
Merge pull request #377 from IntersectMBO/fix/usersnap-query-params-i…
Kristina2103 Sep 24, 2024
e5169b6
fix/logging-magic-link: disabled mailing on local (#363)
BEdev24 Sep 30, 2024
c9bdd39
fix: search not unchecking filters after clicking on clear
Vojimirovich Sep 30, 2024
d9b6cb2
Merge branch 'develop' of github.com-Vojimirovich:IntersectMBO/cc-por…
Vojimirovich Sep 30, 2024
ed8f73d
fix/add-indexes-to-searchable-columns: added indexes to searcable col…
BEdev24 Sep 30, 2024
2fb2be7
feat: resend register invite (#397)
BEdev24 Oct 4, 2024
a8cda7e
feat: resend invitation, inactive/active, hard delete
Vojimirovich Oct 7, 2024
0b05f0d
feature/hard-delete-user: added hard delete user ability (#398)
BEdev24 Oct 8, 2024
3ffd92c
Feat: hard delete user (#400)
BEdev24 Oct 8, 2024
77784e8
feat: hard delete user (#401)
BEdev24 Oct 9, 2024
6b88450
feat: implement delete user
Vojimirovich Oct 9, 2024
b896baa
chore: refactor delete button component
Vojimirovich Oct 9, 2024
02e5e42
Merge pull request #404 from IntersectMBO/feature/185_admin-page-enha…
Vojimirovich Oct 9, 2024
1abf79f
test/remove-users: added unit tests (#406)
BEdev24 Oct 14, 2024
bd31e51
fix/sorting-users: sorted users by name in ascending order (#408)
BEdev24 Oct 14, 2024
a877b9e
feat: add switch user modal and remove X button from role bar on admi…
Oct 16, 2024
9425f28
fix: allow super admin to change status of cc memeber
Vojimirovich Oct 18, 2024
6ef8e19
fix/sync-votes: sync vote rationale url (#412)
BEdev24 Oct 22, 2024
0919fff
fix: sync votes (#418)
BEdev24 Oct 24, 2024
6fc5066
feat: constitution page design improvements
Vojimirovich Oct 25, 2024
811d4b4
Merge branch 'develop' of github.com-Vojimirovich:IntersectMBO/cc-por…
Vojimirovich Oct 25, 2024
88b9b33
refactor/open-port-3002
nike-getto Oct 25, 2024
9f6a8d9
added rationale link on latest updates table
Vojimirovich Oct 27, 2024
6daf297
refactor/worker-bull-borad
nike-getto Oct 28, 2024
e56191c
feat: implemented new contents design
Vojimirovich Oct 28, 2024
bb87eaf
Merge pull request #419 from IntersectMBO/416-rationale-link-preview-…
Vojimirovich Oct 28, 2024
41065b6
fix: contents scroll
Vojimirovich Oct 29, 2024
9f1279b
fix: navigation side bar visual known issues
Vojimirovich Oct 31, 2024
d005493
Merge pull request #428 from IntersectMBO/425-navigation-side-bar-vis…
Vojimirovich Oct 31, 2024
b1a61bd
fix: tooltip not showing on accordion summary
Vojimirovich Oct 31, 2024
bc4b736
fix: tooltip not showing on accordion summary
Vojimirovich Oct 31, 2024
539fb47
fix/change-user-name-validation: Endabled character | (pipe) in the u…
BEdev24 Nov 4, 2024
a75a3af
fix: highlight selected heading in contents and fix layout issues on …
Vojimirovich Nov 5, 2024
75308f0
feat: add loader and registration username validation
Vojimirovich Nov 5, 2024
f45e6ea
feat: merge ga and rationale modals and add links to footer
Vojimirovich Nov 6, 2024
76229c9
chore: return deleted modal
Vojimirovich Nov 6, 2024
68ac9a4
Merge pull request #450 from IntersectMBO/feat/multiple-ui-improvements
Vojimirovich Nov 6, 2024
86e2226
fix/bullmq-redis-reconnect: added option reconnect on error (#449)
BEdev24 Nov 6, 2024
e579eff
Merge branch 'staging' into feat/multiple-ui-improv
BEdev24 Nov 6, 2024
e0d8b8e
Update TOCLink.tsx
BEdev24 Nov 6, 2024
11b83ef
Update GovActionModal.tsx
BEdev24 Nov 6, 2024
3e0b93e
Update PreviewReasoningModal.tsx
BEdev24 Nov 6, 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 .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
NEXT_PUBLIC_USERSNAP_SPACE_API_KEY=${{ secrets.QA_NEXT_PUBLIC_USERSNAP_SPACE_API_KEY }}
NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY=${{ secrets.QA_NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY }}
NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS=${{ secrets.QA_NEXT_PUBLIC_HIDDEN_USERSNAP_PROJECT_IDS }}
NEXT_PUBLIC_IS_MAINNET=${{ secrets.QA_NEXT_PUBLIC_IS_MAINNET }}
NEXT_PUBLIC_IS_MAINNET=${{ secrets.QA_NEXT_PUBLIC_IS_MAINNET }}g

- name: Scan Docker image with Dockle
id: dockle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
outputs: type=docker,dest=/tmp/image-${{ matrix.name }}-${{ github.sha }}-pr.tar
build-args: |
build-args: |
NEXT_PUBLIC_API_URL=${{ secrets.QA_NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_USERSNAP_SPACE_API_KEY=${{ secrets.QA_NEXT_PUBLIC_USERSNAP_SPACE_API_KEY }}
NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY=${{ secrets.QA_NEXT_PUBLIC_USERSNAP_PROJECT_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion backend/src/users/api/request/update-user.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class UpdateUserRequest {
})
@MinLength(2, { message: `Minimum character length is 2` })
@MaxLength(30, { message: `Maximum character length is 30` })
@Matches(/^[a-zA-Z0-9_.\s]+$/, {
@Matches(/^[a-zA-Z0-9_|.\s]+$/, {
message: `Name can't contain special characters & symbols`,
})
@IsString()
Expand Down
25 changes: 6 additions & 19 deletions frontend/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"govAction": "Governance Action",
"govActionCategoryShort": "GA Category",
"voted": "Voted",
"time": "Time",
"rationale": "Rationale",
"actionTitle": "Show more",
"notAvailable": "Not Available",
Expand Down Expand Up @@ -225,29 +226,15 @@
"previewRationale": {
"headline": "Rationale",
"description": "Please update rationale for your vote on specific governance action.",
"noRationaleUrl": "A rationale has not been provided for this vote",
"rationaleLink": "Rationale link",
"rationale": "Rationale",
"notAvailable": "Not Available",
"governanceActionStatus": "Governance Action Status",
"governanceActionCategory": "Governance Action Category",
"governanceActionId": "Governance Action ID",
"voted": "Voted",
"submissionDate": "Submission date",
"expiryDate": "Expiry date",
"voteSubmissionDate": "Vote submission date",
"tooltips": {
"expiryDate": {
"heading": "Expiry Date",
"paragraphOne": "The date when the governance action will expiry if it doesn’t reach ratification thresholds.",
"paragraphTwo": "IMPORTANT: If the governance action is ratified before the expiry date it will be considered ratified and it will not be available to vote on afterwards."
},
"submissionDate": {
"heading": "Submission Date",
"paragraphOne": "The date when the governance action was submitted on-chain.",
"vote": {
"heading": "Vote Submission Date",
"paragraphOne": "The date when the vote was submitted on-chain."
}
}
},
"submissionDate": "GA submitted on:",
"expiryDate": "GA expiration date:",
"alerts": {
"error": "Error fetching rationale data"
}
Expand Down
25 changes: 6 additions & 19 deletions frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"govAction": "Governance Action",
"govActionCategoryShort": "GA Category",
"voted": "Voted",
"time": "Time",
"rationale": "Rationale",
"actionTitle": "Show more",
"notAvailable": "Not Available",
Expand Down Expand Up @@ -225,29 +226,15 @@
"previewRationale": {
"headline": "Rationale",
"description": "Please update rationale for your vote on specific governance action.",
"noRationaleUrl": "A rationale has not been provided for this vote",
"rationaleLink": "Rationale link",
"rationale": "Rationale",
"notAvailable": "Not Available",
"governanceActionStatus": "Governance Action Status",
"governanceActionCategory": "Governance Action Category",
"governanceActionId": "Governance Action ID",
"voted": "Voted",
"submissionDate": "Submission date",
"expiryDate": "Expiry date",
"voteSubmissionDate": "Vote submission date",
"tooltips": {
"expiryDate": {
"heading": "Expiry Date",
"paragraphOne": "The date when the governance action will expiry if it doesn’t reach ratification thresholds.",
"paragraphTwo": "IMPORTANT: If the governance action is ratified before the expiry date it will be considered ratified and it will not be available to vote on afterwards."
},
"submissionDate": {
"heading": "Submission Date",
"paragraphOne": "The date when the governance action was submitted on-chain.",
"vote": {
"heading": "Vote Submission Date",
"paragraphOne": "The date when the vote was submitted on-chain."
}
}
},
"submissionDate": "GA submitted on:",
"expiryDate": "GA expiration date:",
"alerts": {
"error": "Error fetching rationale data"
}
Expand Down
16 changes: 16 additions & 0 deletions frontend/src/app/[locale]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Box, CircularProgress } from "@mui/material";

export default function CenteredLoading() {
return (
<Box
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100vh"
}}
>
<CircularProgress color="primary" size={50} thickness={2} />
</Box>
);
}
9 changes: 5 additions & 4 deletions frontend/src/components/atoms/modal/ModalWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use client";

import { SxProps, styled } from "@mui/material/styles";
import { styled, SxProps } from "@mui/material/styles";

import { customPalette, ICONS } from "@consts";
import { callAll } from "@utils";
import { useModal } from "@/context";
import { useScreenDimension } from "@/lib/hooks";
import { customPalette, ICONS } from "@consts";
import { callAll } from "@utils";

type ModalVariant = "modal" | "popup" | "wide";
interface Props {
Expand All @@ -27,7 +27,7 @@ export const ModalWrapper = ({
icon,
scrollable,
hideCloseButton = true,
onClose,
onClose
}: Props) => {
const { closeModal } = useModal();
const { isMobile } = useScreenDimension();
Expand Down Expand Up @@ -79,6 +79,7 @@ export const BaseWrapper = styled("div")<{
transform: translate(-50%, -50%);
overflow-y: ${({ scrollable }) => scrollable && "scroll"};
overflow-x: hidden;
scrollbar-width: ${({ scrollable }) => (scrollable ? "auto" : "none")};
@media (max-width: ${700}px) {
overflow: scroll;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
Heading1,
Heading2,
Heading3,
Heading5,
ListItem,
NavDrawerDesktop,
Paragraph,
Expand Down Expand Up @@ -66,6 +67,7 @@ export function Constitution({ constitution, metadata }: ConstitutionProps) {
h1: Heading1,
h2: Heading2,
h3: Heading3,
h5: Heading5,
p: Paragraph,
li: ListItem,
code: Code,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ConstitutionSidebar = ({ tableOfContents, metadata }) => {
justifyContent="left"
padding={2}
pt={{ xxs: 0, md: 2 }}
px={{ xxs: 2, md: 3 }}
px={{ xxs: 1, md: 2 }}
flexWrap="nowrap"
>
{/* <Grid item xxs={12} md="auto">
Expand All @@ -45,7 +45,7 @@ export const ConstitutionSidebar = ({ tableOfContents, metadata }) => {
container
direction="column"
width={{ xxs: "100%", lg: "340px" }}
px={{ xxs: 1, md: 1 }}
px={{ xxs: 0, md: 0 }}
>
{/* {tab === "revisions" ? (
<Grid item justifyContent="flex-end" px={{ xxs: 1, md: 0 }}>
Expand Down
19 changes: 18 additions & 1 deletion frontend/src/components/organisms/Constitution/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ export const Heading3 = ({ children, id }) => (
<Anchor id={id} />
</>
);
export const Heading5 = ({ children }) => (
<Typography
variant="headline5"
sx={{
marginTop: "22px",
marginBottom: "22px",
fontWeight: 800,
fontSize: { xxs: 12, md: 14 },
lineHeight: "1em",
overflowWrap: "break-word"
}}
>
{children}
</Typography>
);

export const Paragraph = ({ children, id }) => (
<>
Expand All @@ -105,7 +120,8 @@ export const ListItem = ({ children, id }) => (
display: "flex",
flexDirection: "column",
alignItems: "flex-start",
justifyContent: "center"
justifyContent: "center",
wordBreak: "break-all"
}}
>
{children}
Expand All @@ -131,6 +147,7 @@ export const Code = ({ children }) => (
export const TABLE_OF_CONTENTS_WRAPPER_STYLE_PROPS = {
backgroundColor: customPalette.neutralWhite,
borderRadius: "16px",
padding: "12px",
"& ol.toc-level": {
margin: 0
},
Expand Down
17 changes: 4 additions & 13 deletions frontend/src/components/organisms/Constitution/TOCAccordion.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import { customPalette } from "@/constants";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import {
Accordion,
Expand Down Expand Up @@ -35,7 +34,6 @@ export const TocAccordion = ({ children }) => {
elevation={0}
sx={{
boxShadow: "none",
padding: 0,
"&:before": {
display: "none"
},
Expand All @@ -48,12 +46,7 @@ export const TocAccordion = ({ children }) => {
sx={{
borderRadius: "30px",
minHeight: "56px",
"&:hover": {
backgroundColor: customPalette.accordionBg
},
"&.Mui-expanded": {
backgroundColor: customPalette.accordionBg
},
padding: 0,
"& a": {
"&:active": {
pointerEvents: "none" // disables the href activation on click but keep tooltip showing
Expand Down Expand Up @@ -100,11 +93,9 @@ export const TocAccordion = ({ children }) => {
alignItems: "center",
justifyContent: "left",
listStyleType: "none",
padding: "0 16px",
padding: 0,
width: "100%",
"&:hover": {
backgroundColor: customPalette.accordionBg
},

"& li": {
display: "flex",
alignItems: "center"
Expand All @@ -117,7 +108,7 @@ export const TocAccordion = ({ children }) => {
<AccordionDetails
sx={{
listStyleType: "none",
padding: "0 16px",
padding: 0,
height: "56px",
"& li": {
minHeight: "56px"
Expand Down
19 changes: 14 additions & 5 deletions frontend/src/components/organisms/Constitution/TOCLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ interface Props {
href: string;
children: React.ReactNode;
callback: () => void;
disabled: boolean;
}
/**
* TOCLink Component
Expand All @@ -19,7 +18,7 @@ interface Props {
* @param {Function} props.callback - A callback function to be executed after the link is clicked.
*/

const TOCLink = ({ href, children, callback, disabled }: Props) => {
const TOCLink = ({ href, children, callback }: Props) => {
const [isActive, setIsActive] = useState(false);
const [isTruncated, setIsTruncated] = useState(false);
const linkRef = useRef<HTMLAnchorElement>(null);
Expand Down Expand Up @@ -68,19 +67,29 @@ const TOCLink = ({ href, children, callback, disabled }: Props) => {
}, [children]);

return (
<Tooltip title={isTruncated ? children : ""} arrow>
<Tooltip
title={isTruncated ? children : ""}
arrow
enterDelay={200}
enterNextDelay={200}
leaveDelay={0}
>
<a
ref={linkRef}
href={href}
onClick={handleClick}
style={{
color: customPalette.textBlack,
textDecoration: "none",
maxWidth: "260px",
maxWidth: "292px",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
display: "inline-block"
display: "inline-block",
backgroundColor: isActive ? customPalette.accordionBg : undefined,
borderRadius: "30px",
padding: "0 16px",
boxSizing: "border-box"
}}
>
{children}
Expand Down
9 changes: 2 additions & 7 deletions frontend/src/components/organisms/Constitution/TOCNested.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { customPalette } from "@/constants";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import { Accordion, AccordionDetails, AccordionSummary } from "@mui/material";

Expand All @@ -23,12 +22,8 @@ export const TocNested = ({ headings }) => {
sx={{
borderRadius: "30px",
minHeight: "56px",
"&:hover": {
backgroundColor: customPalette.accordionBg
},
"&.Mui-expanded": {
backgroundColor: customPalette.accordionBg
},
padding: 0,

"& a": {
"&:active": {
pointerEvents: "none" // disables the href activation on click but keep tooltip showing
Expand Down
19 changes: 17 additions & 2 deletions frontend/src/components/organisms/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,29 @@ export const Footer = ({
variant="caption"
data-testid="footer-privacy-policy-hyperlink"
>
{t("privacyPolicy")}
<a
href="https://docs.intersectmbo.org/legal/policies-and-conditions/privacy-policy"
target="_blank"
rel="noopener noreferrer"
style={{ color: "inherit", textDecoration: "none" }}
>
{t("privacyPolicy")}
</a>
</Typography>

<Typography
fontWeight={400}
variant="caption"
data-testid="footer-terms-of-service-hyperlink"
>
{t("termsOfService")}
<a
href="https://docs.intersectmbo.org/legal/policies-and-conditions/terms-of-use"
target="_blank"
rel="noopener noreferrer"
style={{ color: "inherit", textDecoration: "none" }}
>
{t("termsOfService")}
</a>
</Typography>

{!userSession && showSignIn && (
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/organisms/LatestUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const LatestUpdates = ({
end_time: action.gov_action_proposal_end_time,
vote: action.value,
reasoning_title: action.reasoning_title,
rationale_url: action.rationale_url
rationale_url: action.rationale_url,
status: action.gov_action_proposal_status,
title: action.gov_action_proposal_title
}
}
});
Expand Down
Loading
Loading