diff --git a/.github/workflows/deploy-firebase.yaml b/.github/workflows/deploy-firebase.yaml index 0f7fabee..ad9cd1af 100644 --- a/.github/workflows/deploy-firebase.yaml +++ b/.github/workflows/deploy-firebase.yaml @@ -12,8 +12,11 @@ jobs: run: working-directory: firebase/functions steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install Dependencies run: npm install - name: Deploy diff --git a/.github/workflows/deploy-frontend.yaml b/.github/workflows/deploy-frontend.yaml index 4108ac2e..7e83bcae 100644 --- a/.github/workflows/deploy-frontend.yaml +++ b/.github/workflows/deploy-frontend.yaml @@ -7,8 +7,11 @@ jobs: deploy-frontend: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install dependencies run: yarn install --frozen-lockfile - name: Build diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f6114782..23e4f641 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,8 +8,11 @@ jobs: lint-frontend: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install dependencies run: yarn install - name: Lint @@ -17,8 +20,11 @@ jobs: build-frontend: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install Dependencies run: yarn install - name: Build @@ -28,8 +34,11 @@ jobs: test-frontend-mobile: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install dependencies run: yarn install - name: Test frontend mobile @@ -42,8 +51,11 @@ jobs: test-frontend-desktop: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install dependencies run: yarn install - name: Test frontend desktop @@ -60,8 +72,11 @@ jobs: run: working-directory: firebase/functions steps: - - name: Checkout - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js 10.x + uses: actions/setup-node@v3 + with: + node-version: 10.x - name: Install Dependencies run: npm install - name: Lint diff --git a/firebase/functions/src/config.ts b/firebase/functions/src/config.ts index 59f49b04..fbbebf66 100644 --- a/firebase/functions/src/config.ts +++ b/firebase/functions/src/config.ts @@ -11,7 +11,7 @@ const SMTP_PASSWORD = envVariables?.smtp?.password; const SENDER_EMAIL = 'help@quarantaenehelden.org'; const REGION_EUROPE_WEST_1 = 'europe-west1'; -const MAX_RESULTS = 200; +const MAX_RESULTS = 50; const MAPS_ENABLED = true; // How long we wait before we send email notifications after a person posted a help request const MINIMUM_NOTIFICATION_DELAY_MINUTES = 30; diff --git a/firebase/functions/src/index.ts b/firebase/functions/src/index.ts index 374adfdd..0aba7cb4 100644 --- a/firebase/functions/src/index.ts +++ b/firebase/functions/src/index.ts @@ -3,7 +3,6 @@ import * as admin from 'firebase-admin'; import { REGION_EUROPE_WEST_1 } from './config'; -import { handleAskForMoreHelp as handleAskForMoreHelpFunction } from './domain/handleAskForMoreHelp'; import { onAskForHelpCreate } from './domain/onAskForHelpCreate'; import { onDeletedCreate } from './domain/onDeletedCreate'; import { onUserDelete } from './domain/onUserDelete'; @@ -14,8 +13,6 @@ import { onSubscribeToBeNotifiedCreate } from './domain/onSubscribeToBeNotifiedC import { searchAndSendNotificationEmails } from './domain/searchAndSendNotificationEmails'; import { updateGeoDB } from './domain/geoData'; import { onContentUpdate } from './domain/onContentUpdate'; -import { sendEmailsForOpenOffersWithAnswers } from './domain/sendEmailsForOpenOffersWithAnswers'; -import { sendEmailsForOpenOffersWithoutAnswers } from './domain/sendEmailsForOpenOffersWithoutAnswers'; import { sendNotificationsForHotlineRequests } from './domain/sendNotificationsForHotlineRequests'; import { sendEmails } from './domain/sendEmails'; import { onSlackInteraction } from './utilities/slack'; @@ -38,20 +35,6 @@ export const sendNotificationEmails = functions .timeZone('Europe/Berlin') .onRun(searchAndSendNotificationEmails); -export const sendNotificationEmailsForOpenOffersWithoutAnswers = functions - .region(REGION_EUROPE_WEST_1) - .pubsub - .schedule('00 9-22/6 * * *') // Every day at 9:00, 15:00 & 21:00. https://crontab.guru/#0_9-22/6_*_*_* - .timeZone('Europe/Berlin') - .onRun(sendEmailsForOpenOffersWithoutAnswers); - -export const sendNotificationEmailsForOpenOffersWithAnswers = functions - .region(REGION_EUROPE_WEST_1) - .pubsub - .schedule('00 9-22/6 * * *') // Every day at 9:00, 15:00 & 21:00. https://crontab.guru/#0_9-22/6_*_*_* - .timeZone('Europe/Berlin') - .onRun(sendEmailsForOpenOffersWithAnswers); - export const sendSlackNotificationsForHotlineRequests = functions .region(REGION_EUROPE_WEST_1) .pubsub @@ -95,11 +78,6 @@ export const offerHelpCreate = functions .document(`/${CollectionName.AskForHelp}/{requestId}/offer-help/{offerId}`) .onCreate(onOfferHelpCreate); -export const handleAskForMoreHelp = functions - .region(REGION_EUROPE_WEST_1) - .https - .onCall(handleAskForMoreHelpFunction); - export const deleteUserData = functions .region(REGION_EUROPE_WEST_1) .auth diff --git a/public/index.html b/public/index.html index 7ce06416..678d2253 100644 --- a/public/index.html +++ b/public/index.html @@ -67,7 +67,7 @@ benötigt wird. Viele Menschen sind motiviert zu helfen und isolierte Personen in ihrem Umfeld zu unterstützen. Nur wissen sie nicht, wo die Hilfe benötigt wird. Auf der Webseite können sich Personen in Quarantäne registrieren und - angeben, wo sie wohnen und welche Hilfe benötigt wird. Alternativ können sie Hilfe über die Telefonhotline anfragen. + angeben, wo sie wohnen und welche Hilfe benötigt wird. Helfende werden nach ihrer Registrierung mit Angabe der Postleitzahl und Email-Adresse automatisch benachrichtigt, wenn es Anfragen in ihrer Umgebung gibt. Die Anfragen können sich beispielsweise um Lebensmitteleinkäufe, Erledigungen oder um Botengänge handeln. Nach der initialen Kontaktaufnahme werden alle weiteren Details @@ -79,9 +79,7 @@ zurückgreifen können, haben über www.quarantaenehelden.org die Chance, sich mit allem Nötigen versorgen zu lassen. - Da insbesondere ältere Menschen vielleicht keinen Zugang zum Internet haben, können ebenso über die kostenlose - Telefonhotline Anfragen gestellt werden: 0800 80 50 850 (kostenlos aus dem deutschen Netz, alternativ +4989 - 143770224). Außerdem besteht ebenso die Möglichkeit, stellvertretend Hilfsanfragen zu stellen. Beispielsweise erstellen + Es besteht ebenso die Möglichkeit, stellvertretend Hilfsanfragen zu stellen. Beispielsweise erstellen häufig Kinder oder Enkelkinder für ihre (Groß-)Eltern eine Hilfsanfrage und finden so Helfende für ihre Lieben. In kurzer Zeit konnten wir bereits über 38.000 Menschen dazu anregen, sich auf der Plattform zu registrieren. diff --git a/src/views/Main.jsx b/src/views/Main.jsx index 1d5fb655..9871a708 100644 --- a/src/views/Main.jsx +++ b/src/views/Main.jsx @@ -143,31 +143,6 @@ export default function Main() {

- {/* Hotline */} -
-
- {t('views.main.hotline.ourHotline')} -
-
-
- - {t('views.main.hotline.number')} - -
{t('views.main.hotline.serviceHours')}
-
- {t('views.main.hotline.notGermany')} - {': '} - - {t('views.main.hotline.externalNumber')} - -
-
- {/* Rules */}