Skip to content

Commit e4d03ef

Browse files
authored
Merge pull request #1888 from codeforboston/main
Deploy to PROD 8/6/25
2 parents fb2569f + b6e19b9 commit e4d03ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+279
-171
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,9 @@ build-storybook.log
8080

8181
/token
8282

83-
cert.txt
83+
cert.txt
84+
85+
# vscode
86+
87+
# lets each user define their own vscode settings
88+
.vscode/settings.json

.vscode/launch.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
2+
// adapted from https://nextjs.org/docs/app/guides/debugging#debugging-with-vs-code
53
"version": "0.2.0",
64
"configurations": [
75
{
8-
"name": "Launch Program",
9-
"program": "${workspaceFolder}/app.js",
6+
"name": "Run and Debug MAPLE",
7+
"type": "node",
108
"request": "launch",
9+
"runtimeExecutable": "yarn",
10+
"runtimeArgs": [
11+
"dev"
12+
],
13+
"env": {
14+
"NODE_OPTIONS": "--inspect"
15+
},
16+
"console": "integratedTerminal",
1117
"skipFiles": [
1218
"<node_internals>/**"
1319
],
14-
"type": "node"
15-
},
16-
{
17-
"name": "Launch in VSCode (with TypeScript)",
18-
"type": "node",
19-
"request": "launch",
20-
"program": "/Users/mrigank/maple/functions/src/notifications/index.ts", // Replace with path to your main entry point (e.g., "index.js")
21-
"sourceMaps": true
20+
"sourceMaps": true,
21+
"serverReadyAction": {
22+
"action": "debugWithChrome",
23+
"killOnServerStop": true,
24+
"pattern": "- Local:.+(https?://.+)",
25+
"uriFormat": "%s",
26+
"webRoot": "${workspaceFolder}"
27+
}
2228
}
2329
]
24-
}
30+
}

.vscode/settings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

components/Card/CardTitle.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ interface CardTitleProps {
1717
isUserMatch?: boolean
1818
type?: string
1919
userRole?: string
20+
isNewsfeed?: string
2021
}
2122

2223
export const CardTitle = (props: CardTitleProps) => {
@@ -29,7 +30,8 @@ export const CardTitle = (props: CardTitleProps) => {
2930
isUserMatch,
3031
subheader,
3132
type,
32-
userRole
33+
userRole,
34+
isNewsfeed
3335
} = props
3436

3537
return (
@@ -44,14 +46,18 @@ export const CardTitle = (props: CardTitleProps) => {
4446
subheader={subheader}
4547
type={type}
4648
/>
47-
<CardTitleFollowing
48-
billId={billId}
49-
header={header}
50-
subheader={subheader}
51-
isBillMatch={isBillMatch}
52-
isUserMatch={isUserMatch}
53-
type={type}
54-
/>
49+
{isNewsfeed ? (
50+
<CardTitleFollowing
51+
billId={billId}
52+
header={header}
53+
subheader={subheader}
54+
isBillMatch={isBillMatch}
55+
isUserMatch={isUserMatch}
56+
type={type}
57+
/>
58+
) : (
59+
<></>
60+
)}
5561
</CardBootstrap.Body>
5662
</CardBootstrap.Body>
5763
)

components/CommunicatingWithLegislators/CommunicatingWithLegislatorsContent.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Row, Col } from "../bootstrap"
22
import Image from "react-bootstrap/Image"
33
import styled from "styled-components"
4+
import { useTranslation } from "next-i18next"
45

56
const StyledImage = styled(Image)`
67
width: 12.5rem;
@@ -27,9 +28,9 @@ const WritingContent = () => (
2728
<Row className="align-items-center">
2829
<Col xs={12} md={8} lg={{ span: 7, offset: 1 }}>
2930
<p>
30-
You can submit your thoughts on a bill to the Committee hearing it
31-
before the date of their public hearing. This website, the MAPLE
32-
platform, focuses on this mechanism.
31+
{useTranslation("learnComponents").t(
32+
"communicating.testifyInWriting.content"
33+
)}
3334
</p>
3435
</Col>
3536
<Col md={4} lg={3}>
@@ -58,8 +59,9 @@ const OralContent = () => (
5859
lg={{ span: 7, order: 1 }}
5960
>
6061
<p>
61-
You can attend a public hearing for a bill of interest to you and sign
62-
up for a slot to speak before the Committee.
62+
{useTranslation("learnComponents").t(
63+
"communicating.testifyOrally.content"
64+
)}
6365
</p>
6466
</Col>
6567
</Row>
@@ -69,12 +71,9 @@ const WriteOrCallContent = () => (
6971
<Row className="align-items-center">
7072
<Col xs={12} md={8} lg={{ span: 7, offset: 1 }}>
7173
<p>
72-
You can contact your legislators any time by looking up their contact
73-
information on the MA Legislature website. Your voice will probably
74-
carry the most weight with the House and Senate representatives of your
75-
own district, but you are free to contact Committee Chairs or any other
76-
member of the legislature with your opinions. You could request a
77-
meeting in person.
74+
{useTranslation("learnComponents").t(
75+
"communicating.writeOrCall.content"
76+
)}
7877
</p>
7978
</Col>
8079
<Col md={4} lg={3}>

components/EditProfilePage/ProfileSettingsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function ProfileSettingsModal({
8282

8383
const handleToggleNotifications = async () => {
8484
if (notifications === "None") {
85-
setNotifications("Monthly")
85+
setNotifications("Weekly")
8686
} else {
8787
setNotifications("None")
8888
}

components/Footer/Footer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import CustomDropdown, {
1111
CustomDropdownProps
1212
} from "components/Footer/CustomFooterDropdown"
1313
import { FooterContainer } from "./FooterContainer"
14+
import { NEWSLETTER_SIGNUP_URL } from "components/common"
1415

1516
export type PageFooterProps = {
1617
children?: any
@@ -282,7 +283,7 @@ const PageFooter = (props: PageFooterProps) => {
282283
{t("legal.disclaimer")}
283284
{" - "}
284285
<a
285-
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
286+
href={NEWSLETTER_SIGNUP_URL}
286287
style={{ color: "white" }}
287288
target="_blank"
288289
rel="noopener noreferrer"

components/HeroHeader/HeroHeader.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ScrollTrackingItem from "../ScrollTrackEffect/ScrollTrackerItem"
66
import styles from "./HeroHeader.module.css"
77
import { useTranslation } from "next-i18next"
88
import { capitalize } from "lodash"
9+
import { NEWSLETTER_SIGNUP_URL, TRAINING_CALENDAR_URL } from "../common"
910

1011
const HeroHeader = ({ authenticated }) => {
1112
const { t } = useTranslation("common")
@@ -59,7 +60,7 @@ const HeroHeader = ({ authenticated }) => {
5960
<p>
6061
{t("newcomer")}{" "}
6162
<a
62-
href="https://calendar.google.com/calendar/embed?src=998f62323926f0b0076e7f578d3ca72b1bc94c4efa2f24be57b11f52b1b88595%40group.calendar.google.com&ctz=America%2FNew_York"
63+
href={TRAINING_CALENDAR_URL}
6364
style={{ color: "white" }}
6465
target="_blank"
6566
rel="noopener noreferrer"
@@ -70,7 +71,7 @@ const HeroHeader = ({ authenticated }) => {
7071
</p>
7172
<p>
7273
<a
73-
href="https://cdn.forms-content.sg-form.com/d049f1ab-b547-11ee-9605-72ceb6b6e337"
74+
href={NEWSLETTER_SIGNUP_URL}
7475
style={{ color: "white" }}
7576
target="_blank"
7677
rel="noopener noreferrer"

components/LearnTestimonyComponents/LearnComponents.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ const CommunicatingWithLegislators = () => {
181181
</h1>
182182
<p className={"ms-1 fs-4"}>{t("communicating.intro")}</p>
183183

184-
<CommWithLegCard title={t("communicating.testifyInWriting")}>
184+
<CommWithLegCard title={t("communicating.testifyInWriting.title")}>
185185
<WritingContent />
186186
</CommWithLegCard>
187187

188-
<CommWithLegCard title={t("communicating.testifyOrally")}>
188+
<CommWithLegCard title={t("communicating.testifyOrally.title")}>
189189
<OralContent />
190190
</CommWithLegCard>
191191

192-
<CommWithLegCard title={t("communicating.writeOrCall")}>
192+
<CommWithLegCard title={t("communicating.writeOrCall.title")}>
193193
<WriteOrCallContent />
194194
</CommWithLegCard>
195195
</Col>

components/Newsfeed/Newsfeed.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,14 @@ export default function Newsfeed() {
144144
const [settingsModal, setSettingsModal] = useState<"show" | null>(null)
145145
const [notifications, setNotifications] = useState<
146146
"Weekly" | "Monthly" | "None"
147-
>(notificationFrequency ? notificationFrequency : "Monthly")
147+
>(notificationFrequency ? notificationFrequency : "Weekly")
148148
const [isProfilePublic, setIsProfilePublic] = useState<false | true>(
149149
isPublic ? isPublic : false
150150
)
151151

152152
const onSettingsModalOpen = () => {
153153
setSettingsModal("show")
154-
setNotifications(
155-
notificationFrequency ? notificationFrequency : "Monthly"
156-
)
154+
setNotifications(notificationFrequency ? notificationFrequency : "Weekly")
157155
setIsProfilePublic(isPublic ? isPublic : false)
158156
}
159157

@@ -230,6 +228,7 @@ export default function Newsfeed() {
230228
testimonyId={element.testimonyId}
231229
type={element.type}
232230
userRole={element.userRole}
231+
isNewsfeed={"enable newsfeed specific subheading"}
233232
/>
234233
</div>
235234
))}

0 commit comments

Comments
 (0)