Notification updates

This commit is contained in:
Eric Gullickson
2025-12-21 19:56:52 -06:00
parent 144f1d5bb0
commit 719c80ecd8
80 changed files with 7552 additions and 678 deletions

View File

@@ -87,6 +87,7 @@ These variables use GitLab's **File** type, which writes the value to a temporar
| `GOOGLE_MAPS_API_KEY` | File | Yes | Yes | Google Maps API key |
| `GOOGLE_MAPS_MAP_ID` | File | Yes | No | Google Maps Map ID |
| `CF_DNS_API_TOKEN` | File | Yes | Yes | Cloudflare API token for Let's Encrypt DNS challenge |
| `RESEND_API_KEY` | File | Yes | Yes | Resend API key for email notifications |
### Configuration Variables
@@ -146,6 +147,7 @@ secrets/app/
google-maps-api-key.txt -> /run/secrets/google-maps-api-key
google-maps-map-id.txt -> /run/secrets/google-maps-map-id
cloudflare-dns-token.txt -> /run/secrets/cloudflare-dns-token
resend-api-key.txt -> /run/secrets/resend-api-key
```
### Security Benefits

View File

@@ -5,21 +5,37 @@
You are a senior software engineer specializsing in NodeJS, Typescript, front end and back end development. You will be delegating tasks to the platform-agent, feature-agent, first-frontend-agent and quality-agent when appropriate.
*** ACTION ***
- Improving the Gas Stations search result and default result logic.
- You will be implementing the "User Management" feature of this web application.
- Make no assumptions.
- Ask clarifying questions.
- Ultrathink
*** CONTEXT ***
- This is a modern web app for managing a vehicle fleet. It has both a desktop and mobile versions of the site that both need to maintain feature parity. It's currently deployed via docker compose but in the future will be deployed via k8s.
- The URL for this change is here. https://motovaultpro.com/garage/stations
- Read README.md CLAUDE.md and AI-INDEX.md and follow relevant instructions to understand this code repository in the context of this change.
- There currently is no user management system in this application.
- We need to do basic CRUD operations on user accounts
- We need to set the groundwork for a tiered paid system in the future. Start with four types of users.
- 1. Free 2. Pro 3. Enterprise 4. Administrator
*** CHANGES TO IMPLEMENT ***
- When a user searches gas stations the Premium 93 tab doesn't update with their saved stations.
- The "Results" tab correctly displays their saved station first
- The "Saved" tab has the correct gas station
- The "Premium 93" tab does NOT display the saved gas station.
- The gas station correctly displays under "Community Verified" section but even though it's saved it's not showing in the "Your Premium 93 Stations"
- Update the "Saved" and "Premium 93" result cards to act and look the same.
- Look at the screenshots of all three tabs after a search result. You can see the missing "Your Premium 93 Stations" and the icon for "Premium 93" under "Saved" is not highlighted.
- Research this code base and look for any gaps in user account management.
*** ROLE ***
- You are a senior DevOps SRE with expert knowledge of Python, Ansible, GitHub and GitLab pipelines.
*** ACTION ***
- You need to update the secrets scripts to include the newly added Resend email notification API key.
- Make no assumptions.
- Ask clarifying questions.
- Ultrathink
*** CONTEXT ***
- The secrets architecture is based of a future state of being deployed into k8s. Right now it's in docker compose with files that are copied in via the pipeline.
*** ACTION - CHANGES TO IMPLEMENT ***
- Replicate the same secrets process that's implemented with the Google API and Auth0 API keys.