# Changelog of Google Maps Review Change Feed (`basta_compilar/google-maps-review-change-feed`) Actor

- **URL**: https://apify.com/basta_compilar/google-maps-review-change-feed/changelog.md
- **Full Actor documentation**: https://apify.com/basta_compilar/google-maps-review-change-feed.md

## Changelog

### 1.4.0

#### Google limited public view (anonymous Maps)

- New default collector: the public **Google Search reviews dialog** for the place's feature id — sortable (newest/highest/lowest), paginated, full original-language text, owner replies, photos and per-review permalinks, with the same review ids as Maps (history stays continuous). Retries once with `hl=en` when the user language has no business panel.
- Google Maps panel kept as fallback (`reviewSource: "maps_panel"` forces it). Its *limited view* (≈5 "most relevant" reviews, sort/see-more behind sign-in) is detected structurally and reported as `limited_public_view`.
- Structured `collectionIssues` codes replace free-text warnings; only sample issues (`limited_public_view`, `sort_not_applied`) disable removal tracking. Previously **any** warning — e.g. a missing share link — disabled it permanently.
- `place_summary.summary.collection` exposes `source`, `issues`, `sampleIncomplete`, `removalTracking`, `backfilledReviews`; emails localize the issues (EN/PT-BR).
- `locale` is now sent as `hl=`; Google otherwise picks the UI language from the IP.

#### Change detection accuracy

- `possible_removal` only counts a miss when the review should have been visible: whole list read, or newest-first feed and the review is certainly newer than the oldest one observed. Reviews that merely scrolled out of the `maxReviewsPerPlace` window no longer become false removals; presence is checked before output filters.
- Previously unseen reviews certainly published before the baseline are stored silently (`backfilledReviews`) instead of being emitted as `new`.
- Switching collectors never fabricates `text_changed` / `photos_changed` (translation and photo CDN URLs differ between Maps and Search); rating and reply presence are still compared.

#### Speed / robustness

- Review permalinks derived from review id + feature id (same URL as "Share review"); clipboard share flow only as last resort.
- "More" expansion uses DOM clicks: limited-view Maps fallback went from ~49 s to ~5 s per place with full texts.
- `npm run dev` (tsx) works again with `page.evaluate`.
- Place address/phone no longer carry Maps icon-font glyphs (Unicode private use area), which leaked into the Google Search query used to open the reviews dialog (#11).
- Playwright is pinned to 1.65.0, the same revision as `apify/actor-node-playwright-chrome:22-1.65.0`. The floating `:22` tag moved to 1.65.1, whose Chrome build leaves the place title hidden and blocks collection.

#### Maps collector fixes (hotfixes #3–#6, shipped before the Search collector)

- Review count no longer misreads the star rating (e.g. `4,4 stars` → 44); only numbers explicitly tied to reviews are accepted, unknown values stay `null` (#3).
- Collector opens the reviews tab, applies the requested sort, expands "More" per card and takes the public review link instead of the author profile; parses `um ano atrás` (#4).
- Review data is captured before the share dialogs, iterated by stable ids, and UI waits are bounded; an unreadable collection is an error and neither saves an empty snapshot nor charges the place (#5).
- Incomplete public samples no longer advance missing-review counters or infer removals (#6).

#### Email alerts

- Replace apify/send-mail with direct delivery: Gmail SMTP by default, configurable custom-domain SMTP, and optional Resend HTTPS API (#1).
- Configure secret Gmail app password (no custom domain), SMTP credentials, or Resend API key in Actor environment (#1).
- Add TLS, bounded requests, sanitized failures and provider transport tests (#1).
- Digests without changes include the collected sample (up to 20 reviews with author, rating, text, date, owner reply and link), place rating and Google total, with neutral subject/intro for baseline and no-change runs (#2).
- Full review and reply text, clickable per-review links, newest-first ordering with unknown dates last, and an explicit coverage warning when Google shows the limited view (#4); historical contributor-profile URLs are hidden and original relative dates shown (#6).

### 1.3.0

- PPE anti-loss: `place-monitored` @ USD 0.10 with **Pay per event + usage**
- Synthetic `apify-actor-start` only (no dataset-item event)
- Optional customer Places enricher via `customerGoogleApiKey`
- Email alerts (`alertEmails` / `emailMode`) included in place-monitored
- CI: `configure-monetization.yml` + smoke; Store icon assets + Console instructions
- Docs: INPUT / PRICING / EMAILS / STORE_SETUP (EN + PT-BR)

### 1.2.x

- Webhooks, priority actions, history diff, run modes (`monitor` / `import_history` / `reset_baseline`)
