Skip to content

Remove the unused push notification prompt and Firebase messaging stack #33

Description

@manuelgeek

The site asks every first-time visitor for notification permission via a modal, but I never actually send push notifications. It is a permission prompt for a channel that has no traffic, and it is the first thing a visitor sees.

I want the whole dead stack gone, not just the modal:

  • components/layouts/components/NotificationsPrompt.tsx — the modal itself, plus its render in components/layouts/default.tsx
  • pages/api/notification.ts — the FCM topic-subscription route
  • firebase/util/index.ts — the Firebase app init, only ever used by messaging
  • public/firebase-messaging-sw.js — the background message service worker
  • NOTIFICATIONS in utils/constants.ts and the public/images/notif.svg asset
  • the firebase dependency in package.json, plus the now-dead NEXT_PUBLIC_FIREBASE_* and NEXT_PUBLIC_MESSAGING_TOPIC entries in .env.example

If push notifications ever come back, they should be rebuilt deliberately rather than kept alive as unused code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions