refactor: rename share URL path from location to bills-due
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,8 @@
|
|||||||
"Bash(grep:*)",
|
"Bash(grep:*)",
|
||||||
"Bash(for file in CommError HTTPResponseError JsonParsingError clientIpAddress)",
|
"Bash(for file in CommError HTTPResponseError JsonParsingError clientIpAddress)",
|
||||||
"Bash(do echo \"=== $file ===\")",
|
"Bash(do echo \"=== $file ===\")",
|
||||||
"Bash(done)"
|
"Bash(done)",
|
||||||
|
"Bash(git restore:*)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"enableAllProjectMcpServers": true,
|
"enableAllProjectMcpServers": true,
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center; padding: 0 0 30px 0;">
|
<td style="text-align: center; padding: 0 0 30px 0;">
|
||||||
<a href="https://rezije.app/share/location/${shareId}"
|
<a href="https://rezije.app/share/bills-due/${shareId}"
|
||||||
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
||||||
View Payment Details
|
View Payment Details
|
||||||
</a>
|
</a>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
Or copy and paste this link into your browser:
|
Or copy and paste this link into your browser:
|
||||||
</p>
|
</p>
|
||||||
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
||||||
https://rezije.app/share/location/${shareId}
|
https://rezije.app/share/bills-due/${shareId}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Divider -->
|
<!-- Divider -->
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center; padding: 0 0 30px 0;">
|
<td style="text-align: center; padding: 0 0 30px 0;">
|
||||||
<a href="https://rezije.app/share/location/${shareId}"
|
<a href="https://rezije.app/share/bills-due/${shareId}"
|
||||||
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
||||||
Pogledaj detalje uplate
|
Pogledaj detalje uplate
|
||||||
</a>
|
</a>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
|
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
|
||||||
</p>
|
</p>
|
||||||
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
||||||
https://rezije.app/share/location/${shareId}
|
https://rezije.app/share/bills-due/${shareId}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Divider -->
|
<!-- Divider -->
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center; padding: 0 0 30px 0;">
|
<td style="text-align: center; padding: 0 0 30px 0;">
|
||||||
<a href="https://rezije.app/share/location/${shareId}"
|
<a href="https://rezije.app/share/bills-due/${shareId}"
|
||||||
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
||||||
View Payment Details
|
View Payment Details
|
||||||
</a>
|
</a>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
Or copy and paste this link into your browser:
|
Or copy and paste this link into your browser:
|
||||||
</p>
|
</p>
|
||||||
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
||||||
https://rezije.app/share/location/${shareId}
|
https://rezije.app/share/bills-due/${shareId}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Divider -->
|
<!-- Divider -->
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center; padding: 0 0 30px 0;">
|
<td style="text-align: center; padding: 0 0 30px 0;">
|
||||||
<a href="https://rezije.app/share/location/${shareId}"
|
<a href="https://rezije.app/share/bills-due/${shareId}"
|
||||||
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
|
||||||
Pogledaj detalje uplate
|
Pogledaj detalje uplate
|
||||||
</a>
|
</a>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
|
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
|
||||||
</p>
|
</p>
|
||||||
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
|
||||||
https://rezije.app/share/location/${shareId}
|
https://rezije.app/share/bills-due/${shareId}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Divider -->
|
<!-- Divider -->
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ Address: BillingLocation-tenantEmail
|
|||||||
|
|
||||||
<p>Your rent for the apartment ${location.name} is due today.</p>
|
<p>Your rent for the apartment ${location.name} is due today.</p>
|
||||||
|
|
||||||
<p>For details and payment options please click the following link: <a href="https://rezije.app/share/location/rent/${shareId}">Rent details</a></p>
|
<p>For details and payment options please click the following link: <a href="https://rezije.app/share/bills-due/${shareId}">Rent details</a></p>
|
||||||
|
|
||||||
<p>Thank you!</p>
|
<p>Thank you!</p>
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ Address: BillingLocation-tenantEmail
|
|||||||
|
|
||||||
<p>Your utility bills for the apartment ${location.name} are due today.</p>
|
<p>Your utility bills for the apartment ${location.name} are due today.</p>
|
||||||
|
|
||||||
<p>For details and payment options please click the following link: <a href="https://rezije.app/share/location/bills/${shareId}">Utility Bills</a></p>
|
<p>For details and payment options please click the following link: <a href="https://rezije.app/share/bills-due/${shareId}">Utility Bills</a></p>
|
||||||
|
|
||||||
<p>Thank you!</p>
|
<p>Thank you!</p>
|
||||||
|
|
||||||
|
|||||||
@@ -627,7 +627,7 @@ export const uploadProofOfPayment = async (
|
|||||||
await cleanupExpiredShares(dbClient);
|
await cleanupExpiredShares(dbClient);
|
||||||
|
|
||||||
// 8. REVALIDATE CACHE
|
// 8. REVALIDATE CACHE
|
||||||
revalidatePath(`/share/location/${shareId}`, 'page');
|
revalidatePath(`/share/bills-due/${shareId}`, 'page');
|
||||||
|
|
||||||
return { success: true };
|
return { success: true };
|
||||||
|
|
||||||
|
|||||||
@@ -775,7 +775,7 @@ export const uploadUtilBillsProofOfPayment = async (
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 7. REVALIDATE CACHE
|
// 7. REVALIDATE CACHE
|
||||||
revalidatePath(`/share/location/${shareId}`, 'page');
|
revalidatePath(`/share/bills-due/${shareId}`, 'page');
|
||||||
|
|
||||||
return { success: true };
|
return { success: true };
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@@ -823,7 +823,7 @@ export const generateShareLink = withUser(
|
|||||||
|
|
||||||
// Build share URL
|
// Build share URL
|
||||||
const baseUrl = process.env.NEXTAUTH_URL || 'http://localhost:3000';
|
const baseUrl = process.env.NEXTAUTH_URL || 'http://localhost:3000';
|
||||||
const shareUrl = `${baseUrl}/share/location/${shareId}`;
|
const shareUrl = `${baseUrl}/share/bills-due/${shareId}`;
|
||||||
|
|
||||||
return { shareUrl };
|
return { shareUrl };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ export const ViewBillCard: FC<ViewBillCardProps> = ({ location, bill, shareId })
|
|||||||
}
|
}
|
||||||
|
|
||||||
<div className="text-right">
|
<div className="text-right">
|
||||||
<Link className="btn btn-neutral ml-3" href={`/share/location/${shareId || locationID}`}>{t("back-button")}</Link>
|
<Link className="btn btn-neutral ml-3" href={`/share/bills-due/${shareId || locationID}`}>{t("back-button")}</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user