Skip to content

Commit cfbc95f

Browse files
Merge pull request #89 from ChangePlusPlusVandy/images
Images
2 parents 1792757 + 50b131c commit cfbc95f

File tree

14 files changed

+682
-212
lines changed

14 files changed

+682
-212
lines changed

backend/prisma/seed.ts

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -793,26 +793,26 @@ async function main() {
793793
description:
794794
'Quarterly survey to assess member satisfaction and gather feedback on our services.',
795795
isPublished: true,
796-
isActive: true,
797-
status: 'ACTIVE' as const,
796+
isActive: false,
797+
status: 'CLOSED' as const,
798798
dueDate: new Date('2024-09-30'),
799799
},
800800
{
801801
title: 'Q4 2024 Member Satisfaction Survey',
802802
description:
803803
'Quarterly survey to assess member satisfaction and gather feedback on our services.',
804804
isPublished: true,
805-
isActive: true,
806-
status: 'ACTIVE' as const,
805+
isActive: false,
806+
status: 'CLOSED' as const,
807807
dueDate: new Date('2024-12-31'),
808808
},
809809
{
810810
title: 'Q1 2025 Member Satisfaction Survey',
811811
description:
812812
'Quarterly survey to assess member satisfaction and gather feedback on our services.',
813-
isPublished: false,
814-
isActive: false,
815-
status: 'DRAFT' as const,
813+
isPublished: true,
814+
isActive: true,
815+
status: 'ACTIVE' as const,
816816
dueDate: new Date('2025-03-31'),
817817
},
818818
{
@@ -915,6 +915,46 @@ async function main() {
915915
isPublished: true,
916916
publishedDate: new Date('2024-07-05'),
917917
},
918+
{
919+
title: 'Emergency: Power Outages Across East Tennessee',
920+
content:
921+
'<p>Widespread power outages have been reported across East Tennessee due to severe storms. Emergency shelters have been opened in Johnson City, Knoxville, and Chattanooga. Please check on elderly neighbors and ensure vulnerable seniors have access to cooling centers and emergency supplies.</p>',
922+
priority: 'URGENT' as const,
923+
isPublished: true,
924+
publishedDate: new Date('2024-07-15'),
925+
},
926+
{
927+
title: 'Medication Disposal Event This Weekend',
928+
content:
929+
'<p>Free medication disposal events will be held at participating pharmacies across Tennessee this Saturday. Seniors can safely dispose of expired or unused medications. Check our website for locations near you.</p>',
930+
priority: 'MEDIUM' as const,
931+
isPublished: true,
932+
publishedDate: new Date('2024-08-01'),
933+
},
934+
{
935+
title: 'New Transportation Service Available in West Tennessee',
936+
content:
937+
'<p>A new transportation service for seniors has launched in West Tennessee, providing rides to medical appointments, grocery stores, and community centers. Service is available Monday through Friday. Contact your local Area Agency on Aging for more information.</p>',
938+
priority: 'LOW' as const,
939+
isPublished: true,
940+
publishedDate: new Date('2024-08-10'),
941+
},
942+
{
943+
title: 'Flu Vaccine Shortage Warning',
944+
content:
945+
'<p>Health officials are warning of a potential flu vaccine shortage this season. We urge member organizations to help seniors schedule appointments early. High-dose vaccines for seniors aged 65+ may be especially limited. Contact healthcare providers now to ensure availability.</p>',
946+
priority: 'URGENT' as const,
947+
isPublished: true,
948+
publishedDate: new Date('2024-09-05'),
949+
},
950+
{
951+
title: 'Updated Newsletter Format Coming in October',
952+
content:
953+
'<p>Starting in October, our monthly newsletter will feature a new design with easier navigation and mobile-friendly formatting. Members can preview the new layout on our website. Feedback is welcome as we continue to improve our communications.</p>',
954+
priority: 'LOW' as const,
955+
isPublished: true,
956+
publishedDate: new Date('2024-09-20'),
957+
},
918958
];
919959

920960
console.log('Creating alerts...');

frontend/package-lock.json

Lines changed: 136 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"chart.js": "^4.5.1",
1919
"firebase": "^12.3.0",
2020
"quill": "^2.0.3",
21+
"quill-image-resize-module-react": "^3.0.0",
2122
"react": "^19.1.1",
2223
"react-chartjs-2": "^5.3.1",
2324
"react-dom": "^19.1.1",

frontend/src/components/NotificationsSidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ const NotificationsSidebar = ({ isOpen, onClose }: NotificationsSidebarProps) =>
133133
<span
134134
className={`text-xs px-2 py-0.5 rounded-full font-medium ${
135135
notification.type === 'ANNOUNCEMENT'
136-
? 'bg-rose-100 text-rose-700'
136+
? 'bg-blue-100 text-blue-700'
137137
: notification.type === 'ALERT'
138-
? 'bg-yellow-100 text-yellow-700'
138+
? 'bg-red-100 text-red-700'
139139
: notification.type === 'SURVEY'
140-
? 'bg-blue-100 text-blue-700'
141-
: 'bg-[#EBF3FF] text-[#194B90]'
140+
? 'bg-yellow-100 text-yellow-700'
141+
: 'bg-green-100 text-green-700'
142142
}`}
143143
>
144144
{notification.type.charAt(0).toUpperCase() +

0 commit comments

Comments
 (0)