Skip to content

Planner: cut the remaining instruction sentences and fix three small faults #3293

Closed

Description

@timohueser

Status: done
Size: S
Part of #3286. Depends on #3288, #3290 and #3291.
Systems: route-planning, search

TL;DR

Goal: The planner shows an instruction sentence only where the interface cannot be understood without it.
Problem: Hints and instructions stand in many places of the main screens. Three small faults came up in the review.
Decision: Review page, finding 12, with the owner's note: the sentence about 80 characters goes, and the field keeps its limit of 240 characters.

Plan

  1. builder/web/src/components/planner/RouteList.svelte: delete the notes "Cumulative from the start" and "Edit shaping points on the map. Reordering stops clears shapes on changed legs. Undo restores them." reorder in PlannerApp.svelte sets the status message "Shapes cleared on the changed legs" when the reorder removed a shaping point.
  2. builder/web/src/components/planner/DayRow.svelte: the .help paragraph shows only for a day without stops: "Click the map to add a stop." The day line no longer ends with the kind of the pinned place.
  3. builder/web/src/components/planner/PlannerSurface.svelte: delete "Hover to inspect". The pushing distance and "Surface unavailable" stay.
  4. PlannerApp.svelte, the empty planner (.start-plan): keep the heading. One line replaces the two paragraphs: "Click the map or search to set your start." before the first point, and "Now set your finish." (or "start") after it.
  5. builder/web/src/components/planner/PlannerQuery.svelte: delete the note "Smart requests use up to 80 characters. Longer text uses ordinary place search." planner/search/query.mjs: delete the notice "Smart requests use at most 80 characters. Showing ordinary place search." The fallback itself stays.
  6. Tests: update the cases that read the deleted texts.

Done when

  • From builder/web: npx vitest run src/components/planner/ and npm run check
  • The search suite of planner/search/README.md passes.

Notes from the build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions