Show all configured notification channels on product page

- Add Pushover badge to notification settings section
- Update description to clarify all channels receive notifications
- Fix condition to show section when Pushover is configured

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-22 13:55:40 -05:00
parent 3fa913814d
commit f1deb924d8

View file

@ -521,7 +521,7 @@ export default function ProductDetail() {
onRangeChange={handleRangeChange} onRangeChange={handleRangeChange}
/> />
{notificationSettings && (notificationSettings.telegram_configured || notificationSettings.discord_configured) && ( {notificationSettings && (notificationSettings.telegram_configured || notificationSettings.discord_configured || notificationSettings.pushover_configured) && (
<> <>
<style>{` <style>{`
.notification-settings-card { .notification-settings-card {
@ -675,11 +675,14 @@ export default function ProductDetail() {
{notificationSettings.discord_configured && ( {notificationSettings.discord_configured && (
<span className="notification-channel-badge">Discord</span> <span className="notification-channel-badge">Discord</span>
)} )}
{notificationSettings.pushover_configured && (
<span className="notification-channel-badge">Pushover</span>
)}
</div> </div>
</div> </div>
<p className="notification-settings-description"> <p className="notification-settings-description">
Get notified when this product's price drops or comes back in stock. Configure alerts for this product. When triggered, notifications will be sent to <strong>all</strong> your
Notifications will be sent to your configured channels. configured channels shown above.
</p> </p>
<div className="notification-form-row"> <div className="notification-form-row">