diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/DataManagerSettings.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/DataManagerSettings.tsx index 04aa4f159c..0654dfd70f 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/DataManagerSettings.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/DataManagerSettings.tsx @@ -1,20 +1,24 @@ import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import React from "react"; +import EditorRow from "ui/editor/EditorRow"; import { FeaturePlaceholder } from "ui/editor/FeaturePlaceholder"; const DataManagerSettings: React.FC = () => { return ( - - - Data Manager - - - Manage the data that your service uses and makes available via its API - - + + + + Data Manager + + + Manage the data that your service uses and makes available via its + API. + + + - + ); }; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/DesignSettings/index.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/DesignSettings/index.tsx index 38f23924b0..4432b3d39c 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/DesignSettings/index.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/DesignSettings/index.tsx @@ -133,13 +133,13 @@ const DesignSettings: React.FC = () => { const onSuccess = () => setOpen(true); return ( - <> + Design - How your service appears to public users + How your service appears to public users. {formikConfig && ( @@ -155,7 +155,7 @@ const DesignSettings: React.FC = () => { Theme updated successfully - + ); }; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceFlags.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceFlags.tsx index 6c4c92ffc5..a2a8a59fd9 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceFlags.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceFlags.tsx @@ -1,21 +1,24 @@ import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import React from "react"; +import EditorRow from "ui/editor/EditorRow"; import { FeaturePlaceholder } from "ui/editor/FeaturePlaceholder"; const ServiceFlags: React.FC = () => { return ( - - - Service flags - - - Manage the flag sets that this service uses. Flags at the top of a set - override flags below. - - + + + + Service flags + + + Manage the flag sets that this service uses. Flags at the top of a set + override flags below. + + + - + ); }; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx index 54b922d44e..641b0566d0 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings.tsx @@ -115,105 +115,111 @@ const ServiceSettings: React.FC = () => { }); return ( -
- - - Elements - - - Manage the features that users will be able to see - - - - - - - - Footer Links - - - - - - - - - - + + - Update elements - - - - - Service settings updated successfully - - - + + Service settings updated successfully + +
+ +
); }; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/SubmissionsTable.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/SubmissionsTable.tsx index b4107d4fa3..c92659d077 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/SubmissionsTable.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/SubmissionsTable.tsx @@ -12,18 +12,31 @@ import { SubmissionData } from "./submissionData"; const StyledTableContainer = styled(TableContainer)(({ theme }) => ({ border: `1px solid ${theme.palette.divider}`, - overflow: "auto", + maxHeight: "70vh", "&:focus": { outline: `2px solid ${theme.palette.primary.main}`, }, })); -const StyledTable = styled(Table)({ +const StyledTable = styled(Table)(({ theme }) => ({ borderCollapse: "collapse", -}); + "& th": { + background: theme.palette.text.primary, + color: theme.palette.common.white, + fontWeight: 600, + }, + "& td": { + borderBottomColor: theme.palette.border.main, + borderBottomWidth: "2px", + }, + "& tr:nth-child(odd) td": { + background: theme.palette.background.paper, + }, +})); const StyledTableCell = styled(TableCell)(({ theme }) => ({ border: `1px solid ${theme.palette.divider}`, + lineHeight: "1.35", })); const DividerStyled = styled(Box)({ @@ -51,7 +64,7 @@ const SubmissionsTable: React.FC = ({ }) => { return ( - + {[ @@ -70,9 +83,7 @@ const SubmissionsTable: React.FC = ({ {applications.map((row) => ( - - {row.sessionId} - + {row.sessionId} {formatDate(row.submittedAt)} {row.paymentRequests && row.paymentRequests.length > 0 diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/index.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/index.tsx index a4d190701b..18a274af85 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/index.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/Submissions/index.tsx @@ -1,6 +1,7 @@ import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import React from "react"; +import EditorRow from "ui/editor/EditorRow"; import { useStore } from "../../../lib/store"; import { useSubmittedApplications } from "./submissionData"; @@ -18,19 +19,21 @@ const Submissions: React.FC = () => { return ( - - Submissions - - - View data on the user submitted applications for this service. - - + + + Submissions + + + View data on the user submitted applications for this service. + + + - + ); }; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/TeamSettings.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/TeamSettings.tsx index 5fd4a7acf8..33d51b9777 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/TeamSettings.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/TeamSettings.tsx @@ -1,34 +1,36 @@ import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import React from "react"; +import EditorRow from "ui/editor/EditorRow"; import { FeaturePlaceholder } from "ui/editor/FeaturePlaceholder"; const Team: React.FC = () => { return ( - <> - + + Team - Manage who has permission to edit this service + Manage who has permission to edit this service. - - - - - + + + + +
+ Sharing - Allow other teams on Plan✕ to find and use your service pattern + Allow other teams on Plan✕ to find and use your service pattern. - - - -
- + + + + +
); }; export default Team; diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Settings/index.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Settings/index.tsx index 77dec54b29..e4e83a13d3 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Settings/index.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Settings/index.tsx @@ -38,7 +38,7 @@ function TabPanel(props: TabPanelProps) { {...other} > {value === index && ( - + {children} )}