Skip to content

Commit fb2569f

Browse files
authored
Merge pull request #1877 from codeforboston/main
Merge to PROD 7/31/25 (With Copy Tweak)
2 parents b499547 + 30c8178 commit fb2569f

35 files changed

+1622
-1358
lines changed

.all-contributorsrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,51 @@
677677
"contributions": [
678678
"code"
679679
]
680+
},
681+
{
682+
"login": "chiroptical",
683+
"name": "Barry Moore",
684+
"avatar_url": "https://avatars.githubusercontent.com/u/3086255?v=4",
685+
"profile": "https://chiroptical.dev",
686+
"contributions": [
687+
"code"
688+
]
689+
},
690+
{
691+
"login": "ekambains",
692+
"name": "ekambains",
693+
"avatar_url": "https://avatars.githubusercontent.com/u/182202895?v=4",
694+
"profile": "http://www.ekambains.com",
695+
"contributions": [
696+
"code"
697+
]
698+
},
699+
{
700+
"login": "gracezhang89",
701+
"name": "Grace Zhang",
702+
"avatar_url": "https://avatars.githubusercontent.com/u/67801289?v=4",
703+
"profile": "https://www.grace-zhang.com/",
704+
"contributions": [
705+
"code"
706+
]
707+
},
708+
{
709+
"login": "jicruz96",
710+
"name": "J.I. Cruz",
711+
"avatar_url": "https://avatars.githubusercontent.com/u/58642383?v=4",
712+
"profile": "http://jicruz.com",
713+
"contributions": [
714+
"code"
715+
]
716+
},
717+
{
718+
"login": "peterschiller",
719+
"name": "Peter Schiller",
720+
"avatar_url": "https://avatars.githubusercontent.com/u/57169063?v=4",
721+
"profile": "https://github.com/peterschiller",
722+
"contributions": [
723+
"code"
724+
]
680725
}
681726
],
682727
"commitType": "docs"

.github/workflows/deploy-backend-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build and Deploy to Firebase
2525
uses: w9jds/firebase-action@v13.0.2
2626
with:
27-
args: deploy --force --only firestore,functions,storage
27+
args: deploy --force --only firestore,functions:maple,storage
2828
env:
2929
GCP_SA_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
3030
ASSEMBLY_API_KEY: ${{ secrets.ASSEMBLY_API_KEY }}

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Build and Deploy to Firebase
1919
uses: w9jds/firebase-action@v13.0.2
2020
with:
21-
args: deploy --force --only firestore,functions,storage
21+
args: deploy --force --only firestore,functions:maple,storage
2222
env:
2323
GCP_SA_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
2424
ASSEMBLY_API_KEY: ${{ secrets.ASSEMBLY_API_KEY }}

README.md

Lines changed: 22 additions & 17 deletions
Large diffs are not rendered by default.

components/AdditionalResources.tsx

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import { Container } from "react-bootstrap"
2+
import { useTranslation, Trans } from "next-i18next"
3+
import * as links from "components/links"
4+
5+
const AdditionalResources = () => {
6+
const content = [
7+
{
8+
i18nKey: "find_legislator",
9+
href: "https://malegislature.gov/Search/FindMyLegislator"
10+
},
11+
{
12+
i18nKey: "legislative_doc",
13+
href: "https://www.mass.gov/doc/the-legislative-process-0/download"
14+
},
15+
{
16+
i18nKey: "legal_services",
17+
href: "https://www.masslegalservices.org/content/legislative-process-massachusetts-0"
18+
}
19+
]
20+
const { t } = useTranslation("learnComponents")
21+
22+
return (
23+
<Container fluid="md" className="mt-3">
24+
<h1 className="fs-1 fw-bold text-center text-black">
25+
{t("legislative.additional_resources")}
26+
</h1>
27+
<p className="fs-4 mx-5 my-3">{t("legislative.resources_intro")}</p>
28+
29+
{content.map(({ i18nKey, href }) => (
30+
<div
31+
key={i18nKey}
32+
className="m-4 py-2 px-4 text-bg-light rounded-4 d-flex align-items-center align-items-sm-start"
33+
>
34+
<div className="d-flex flex-0 justify-content-xs-center p-4">
35+
<p className="fs-4">
36+
<Trans
37+
t={t}
38+
i18nKey={`legislative.${i18nKey}`}
39+
components={[<links.External href={href} key={i18nKey} />]}
40+
/>
41+
</p>
42+
</div>
43+
</div>
44+
))}
45+
</Container>
46+
)
47+
}
48+
49+
export default AdditionalResources

components/AdditionalResources/AdditionalResources.tsx

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

components/AdditionalResources/AdditionalResourcesCard.tsx

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

components/AdditionalResources/AdditionalResourcesCardContent.tsx

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

components/EditProfilePage/EditProfilePage.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
} from "./StyledEditProfileComponents"
2626
import { TestimoniesTab } from "./TestimoniesTab"
2727
import { useFlags } from "components/featureFlags"
28+
import LoginPage from "components/Login/login"
2829
import { PendingUpgradeBanner } from "components/PendingUpgradeBanner"
2930

3031
const tabTitle = ["about-you", "testimonies", "following"] as const
@@ -39,14 +40,18 @@ export default function EditProfile({
3940
const uid = user?.uid
4041
const result = useProfile()
4142

42-
if (result.loading) {
43+
if (result.loading && uid) {
4344
return (
4445
<Row>
4546
<Spinner animation="border" className="mx-auto" />
4647
</Row>
4748
)
4849
}
4950

51+
if (result.loading) {
52+
return <LoginPage />
53+
}
54+
5055
if (result?.profile && uid) {
5156
return (
5257
<EditProfileForm
@@ -57,8 +62,6 @@ export default function EditProfile({
5762
/>
5863
)
5964
}
60-
61-
// Todo add error handling/404 page?
6265
}
6366

6467
export function EditProfileForm({

components/Faq/faqContent.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"qAndA": [
55
{
66
"question": "Is MAPLE associated with the state legislature or government?",
7-
"answer": "No. MAPLE is a non-profit initiative of the 501(c)(3), the Open Collective Foundation, and supported by Partners in Democracy. MAPLE is not affiliated or supported by the Massachusetts legislature or government."
7+
"answer": "No - MAPLE is a non-profit initiative of Partners in Democracy - Education, a 501c(3). MAPLE is an independent project, not affiliated with the Massachusetts legislature."
88
},
99
{
1010
"question": "What is MAPLE trying to accomplish?",

0 commit comments

Comments
 (0)