feat(search): reopen finished city searches from the UI (closes #23) #25

Merged
csaeum merged 1 commit from feature/reopen-search-state into main 2026-11-19 15:19:49 +00:00
Owner

Summary

  • Lead Scraper Search State form: button "Wieder öffnen" (only visible for Done).
  • List view: bulk action "Wieder öffnen" for the marked rows.
  • Search dialog: if the chosen query/city is already Done, a hint with a "Wieder öffnen" button is shown instead of a run that silently does nothing.
  • Server: api.get_search_state and api.reopen_search_states (System Manager only), seen_places.reopen_states. No migration.
  • The hint is only re-rendered when the state changes, otherwise the click on its button is lost when the city field loses focus.

Test (demo site)

  • Dialog hint, form button and list bulk action each switched Done to Open.
  • Run after reopening (Polsterei, München, limit 10): 1 new lead created, 3 requests (2 text search pages + 1 details), none for the known places. City is Done again afterwards.

🤖 Generated with Claude Code

## Summary - `Lead Scraper Search State` form: button "Wieder öffnen" (only visible for `Done`). - List view: bulk action "Wieder öffnen" for the marked rows. - Search dialog: if the chosen query/city is already `Done`, a hint with a "Wieder öffnen" button is shown instead of a run that silently does nothing. - Server: `api.get_search_state` and `api.reopen_search_states` (System Manager only), `seen_places.reopen_states`. No migration. - The hint is only re-rendered when the state changes, otherwise the click on its button is lost when the city field loses focus. ## Test (demo site) - Dialog hint, form button and list bulk action each switched `Done` to `Open`. - Run after reopening (Polsterei, München, limit 10): 1 new lead created, 3 requests (2 text search pages + 1 details), none for the known places. City is `Done` again afterwards. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(search): reopen finished city searches from the UI (closes #23)
All checks were successful
CI / lint (pull_request) Successful in 7s
CI / abhaengigkeiten (pull_request) Successful in 18s
CI / abhaengigkeiten-ner (pull_request) Successful in 25s
CI / sicherheit (pull_request) Successful in 41s
CI / lint (push) Successful in 6s
CI / abhaengigkeiten (push) Successful in 17s
CI / abhaengigkeiten-ner (push) Successful in 25s
CI / sicherheit (push) Successful in 40s
0a84306a38
Adds a Wieder oeffnen button on the Search State form, a bulk action in its
list view and a hint with the same action in the search dialog when the chosen
city is already Done. Server side: api.get_search_state and
api.reopen_search_states (System Manager only).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
csaeum merged commit a63f904717 into main 2026-11-19 15:19:49 +00:00
csaeum deleted branch feature/reopen-search-state 2026-11-19 15:19:49 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Frappe-Projekte/LeadScraper-Google!25
No description provided.