Skip to content

feat: add Shanghai hotel price tracker - #15

Merged
hoangsvit merged 11 commits into
mainfrom
feature/hotel-price-tracker
Aug 27, 2026
Merged

feat: add Shanghai hotel price tracker#15
hoangsvit merged 11 commits into
mainfrom
feature/hotel-price-tracker

Conversation

@hoangsvit

Copy link
Copy Markdown
Member

Summary

  • add /hotels.html and clean /hotels/ route for Shanghai hotel price tracking
  • track 19 Oct → 20 Oct 2026 around Jinling East Road / Dashijie / The Bund / Yu Garden
  • use one Google Hotels SerpApi request per refresh and reuse the existing credential fallback chain
  • store current snapshots in data/hotels.json and history in data/hotel-history.json
  • show shortlist-first results, per-room price, 3-room estimate for 6 adults, price sources, price delta and history chart
  • add local target price plus optional GitHub Issue alert using HOTEL_ALERT_AMOUNT
  • refresh daily at 07:27 Asia/Ho_Chi_Minh and update the shared SerpApi usage snapshot
  • cache hotel tracker assets in the PWA service worker

Search assumptions

  • stay: 2026-10-19 → 2026-10-20 (1 night)
  • Google Hotels occupancy: 2 adults / room
  • group comparison: simple ×3 estimate for 6 adults; final availability and room mix must be checked before booking
  • currency: VND

API cost

  • 1 Google Hotels search per scheduled refresh
  • SerpApi Account API checks remain free

Notes

Google Hotels rate snapshots can differ from final OTA checkout totals because of taxes, fees, room type, cancellation rules and inventory.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0ff969b6-d85c-4b11-ac20-3c6314e8f128


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🌍 Web preview

Preview is pinned to commit a775d02 and updates automatically when the PR changes.

@hoangsvit
hoangsvit merged commit abbeeef into main Aug 27, 2026
2 checks passed
@hoangsvit
hoangsvit deleted the feature/hotel-price-tracker branch August 27, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant