From 1e831724910922282d3d881956b6cb882c67db9f Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Wed, 31 Dec 2025 11:27:50 +0100 Subject: [PATCH] refactor: rename share URL path from location to bills-due MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed directory: app/[locale]/share/location -> app/[locale]/share/bills-due - Updated all URL references in web-app (billActions, locationActions, ViewBillCard) - Updated all URL references in email-worker templates (4 email templates) - Updated documentation in sprints/email-worker.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .claude/settings.local.json | 3 ++- .../email-templates/email-template--rent-due--en.html | 4 ++-- .../email-templates/email-template--rent-due--hr.html | 4 ++-- .../email-templates/email-template--util-bills-due--en.html | 4 ++-- .../email-templates/email-template--util-bills-due--hr.html | 4 ++-- sprints/email-worker.md | 4 ++-- .../share/{location => bills-due}/[id]/LocationViewPage.tsx | 0 .../app/[locale]/share/{location => bills-due}/[id]/page.tsx | 0 web-app/app/lib/actions/billActions.ts | 2 +- web-app/app/lib/actions/locationActions.ts | 4 ++-- web-app/app/ui/ViewBillCard.tsx | 2 +- 11 files changed, 16 insertions(+), 15 deletions(-) rename web-app/app/[locale]/share/{location => bills-due}/[id]/LocationViewPage.tsx (100%) rename web-app/app/[locale]/share/{location => bills-due}/[id]/page.tsx (100%) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 86454ea..0b3799a 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -28,7 +28,8 @@ "Bash(grep:*)", "Bash(for file in CommError HTTPResponseError JsonParsingError clientIpAddress)", "Bash(do echo \"=== $file ===\")", - "Bash(done)" + "Bash(done)", + "Bash(git restore:*)" ] }, "enableAllProjectMcpServers": true, diff --git a/email-worker/email-templates/email-template--rent-due--en.html b/email-worker/email-templates/email-template--rent-due--en.html index 6a1b8a6..d159efd 100644 --- a/email-worker/email-templates/email-template--rent-due--en.html +++ b/email-worker/email-templates/email-template--rent-due--en.html @@ -76,7 +76,7 @@
- View Payment Details @@ -88,7 +88,7 @@ Or copy and paste this link into your browser:

- https://rezije.app/share/location/${shareId} + https://rezije.app/share/bills-due/${shareId}

diff --git a/email-worker/email-templates/email-template--rent-due--hr.html b/email-worker/email-templates/email-template--rent-due--hr.html index 6ba35b3..7fb676a 100644 --- a/email-worker/email-templates/email-template--rent-due--hr.html +++ b/email-worker/email-templates/email-template--rent-due--hr.html @@ -76,7 +76,7 @@
- Pogledaj detalje uplate @@ -88,7 +88,7 @@ Ili kopirajte i zalijepite ovaj link u svoj preglednik:

- https://rezije.app/share/location/${shareId} + https://rezije.app/share/bills-due/${shareId}

diff --git a/email-worker/email-templates/email-template--util-bills-due--en.html b/email-worker/email-templates/email-template--util-bills-due--en.html index 606db8b..145d130 100644 --- a/email-worker/email-templates/email-template--util-bills-due--en.html +++ b/email-worker/email-templates/email-template--util-bills-due--en.html @@ -76,7 +76,7 @@
- View Payment Details @@ -88,7 +88,7 @@ Or copy and paste this link into your browser:

- https://rezije.app/share/location/${shareId} + https://rezije.app/share/bills-due/${shareId}

diff --git a/email-worker/email-templates/email-template--util-bills-due--hr.html b/email-worker/email-templates/email-template--util-bills-due--hr.html index 35fc6f1..96be63f 100644 --- a/email-worker/email-templates/email-template--util-bills-due--hr.html +++ b/email-worker/email-templates/email-template--util-bills-due--hr.html @@ -76,7 +76,7 @@
- Pogledaj detalje uplate @@ -88,7 +88,7 @@ Ili kopirajte i zalijepite ovaj link u svoj preglednik:

- https://rezije.app/share/location/${shareId} + https://rezije.app/share/bills-due/${shareId}

diff --git a/sprints/email-worker.md b/sprints/email-worker.md index 60bc541..c6d5e0f 100644 --- a/sprints/email-worker.md +++ b/sprints/email-worker.md @@ -113,7 +113,7 @@ Address: BillingLocation-tenantEmail

Your rent for the apartment ${location.name} is due today.

-

For details and payment options please click the following link: Rent details

+

For details and payment options please click the following link: Rent details

Thank you!

@@ -154,7 +154,7 @@ Address: BillingLocation-tenantEmail

Your utility bills for the apartment ${location.name} are due today.

-

For details and payment options please click the following link: Utility Bills

+

For details and payment options please click the following link: Utility Bills

Thank you!

diff --git a/web-app/app/[locale]/share/location/[id]/LocationViewPage.tsx b/web-app/app/[locale]/share/bills-due/[id]/LocationViewPage.tsx similarity index 100% rename from web-app/app/[locale]/share/location/[id]/LocationViewPage.tsx rename to web-app/app/[locale]/share/bills-due/[id]/LocationViewPage.tsx diff --git a/web-app/app/[locale]/share/location/[id]/page.tsx b/web-app/app/[locale]/share/bills-due/[id]/page.tsx similarity index 100% rename from web-app/app/[locale]/share/location/[id]/page.tsx rename to web-app/app/[locale]/share/bills-due/[id]/page.tsx diff --git a/web-app/app/lib/actions/billActions.ts b/web-app/app/lib/actions/billActions.ts index a60ea3a..1438dc2 100644 --- a/web-app/app/lib/actions/billActions.ts +++ b/web-app/app/lib/actions/billActions.ts @@ -627,7 +627,7 @@ export const uploadProofOfPayment = async ( await cleanupExpiredShares(dbClient); // 8. REVALIDATE CACHE - revalidatePath(`/share/location/${shareId}`, 'page'); + revalidatePath(`/share/bills-due/${shareId}`, 'page'); return { success: true }; diff --git a/web-app/app/lib/actions/locationActions.ts b/web-app/app/lib/actions/locationActions.ts index be5da4c..f11c4e5 100644 --- a/web-app/app/lib/actions/locationActions.ts +++ b/web-app/app/lib/actions/locationActions.ts @@ -775,7 +775,7 @@ export const uploadUtilBillsProofOfPayment = async ( ); // 7. REVALIDATE CACHE - revalidatePath(`/share/location/${shareId}`, 'page'); + revalidatePath(`/share/bills-due/${shareId}`, 'page'); return { success: true }; } catch (error: any) { @@ -823,7 +823,7 @@ export const generateShareLink = withUser( // Build share URL const baseUrl = process.env.NEXTAUTH_URL || 'http://localhost:3000'; - const shareUrl = `${baseUrl}/share/location/${shareId}`; + const shareUrl = `${baseUrl}/share/bills-due/${shareId}`; return { shareUrl }; } diff --git a/web-app/app/ui/ViewBillCard.tsx b/web-app/app/ui/ViewBillCard.tsx index 9f252e2..0f80257 100644 --- a/web-app/app/ui/ViewBillCard.tsx +++ b/web-app/app/ui/ViewBillCard.tsx @@ -167,7 +167,7 @@ export const ViewBillCard: FC = ({ location, bill, shareId }) }
- {t("back-button")} + {t("back-button")}