mirror of
https://github.com/FranP-code/inbox-negotiator.git
synced 2025-10-13 00:42:26 +00:00
[PR #2] [MERGED] Add disabled project alert banner while preserving full application UI #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/FranP-code/inbox-negotiator/pull/2
Author: @Copilot
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/1/2025
Merged by: @FranP-code
Base:
main← Head:copilot/fix-21652979-6407-4996-9474-e87e469af7de📝 Commits (4)
c37188dInitial planbcd0c0dInitial assessment: understand project structure for disabling endpoints4429f27Complete project disabling - all endpoints now return disabled message while keeping auth functionale8c6a06Implement user feedback: Show app with alert banner instead of replacing pages📊 Changes
19 files changed (+12267 additions, -2867 deletions)
View changed files
➕
package-lock.json(+9688 -0)📝
src/components/DebtTimeline.tsx(+0 -1)➕
src/components/DisabledBanner.tsx(+45 -0)➕
src/components/DisabledProject.tsx(+61 -0)📝
src/lib/supabase.ts(+3 -0)📝
src/pages/api/postmark.ts(+11 -580)📝
src/pages/configuration.astro(+2 -0)📝
src/pages/dashboard.astro(+2 -0)📝
src/pages/index.astro(+2 -0)➕
supabase/functions/analyze-response/index-original.ts(+854 -0)📝
supabase/functions/analyze-response/index.ts(+14 -843)➕
supabase/functions/approve-debt/index-original.ts(+235 -0)📝
supabase/functions/approve-debt/index.ts(+12 -212)➕
supabase/functions/negotiate/index-original.ts(+635 -0)📝
supabase/functions/negotiate/index.ts(+10 -599)➕
supabase/functions/send-email/index-original.ts(+494 -0)📝
supabase/functions/send-email/index.ts(+15 -473)➕
supabase/functions/test-extraction/index-original.ts(+170 -0)📝
supabase/functions/test-extraction/index.ts(+14 -159)📄 Description
This PR implements a user-friendly approach to disabling the Inbox Negotiator project functionality while keeping the full application interface visible and accessible. Instead of completely replacing pages with a disabled message, the app now displays a prominent alert banner at the top of all pages.
Implementation Approach
Created DisabledBanner Component
DisabledBanner.tsxcomponent with orange warning stylingRestored Original Application Pages
Key Benefits
API Endpoints
All backend functionality remains disabled with HTTP 503 responses as implemented previously, ensuring no actual debt processing occurs while the UI remains visible for demonstration purposes.
The alert banner provides clear communication about the project's disabled state while allowing users to fully explore and understand the application's interface and intended functionality.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.