Implement location lookup and selected-address behavior
Categories
(Calendar :: Calendar Frontend, task)
Tracking
(Not tracked)
People
(Reporter: arschmitz, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(Whiteboard: [calendar-ui-create-edit])
Summary:
Implement provider-backed location lookup and selected-address behavior once the MVP provider and freeform-location decision are confirmed.
Links:
- Zeplin location typed/empty state: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a0f2f2820d80beebb752343
- Zeplin location selected-address state: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a0f2f2724e759b5881e3693
- Interaction guide: Create > Location: https://docs.google.com/document/d/15OpMthOHmBGyPpDBNRW8vp6uCxeoitBp8n7Fti3LD10/edit?tab=t.why4m6lqup0#heading=h.qbzbv98qb6z3
Questions and concerns:
-
Which provider or existing Thunderbird surface backs the Spotlight-style lookup?
-
If no provider is available, should selected-address behavior be deferred while Bug 2061587 remains the freeform-location MVP?
-
If a provider is available, does product want freeform text to remain editable alongside selected-address behavior?
-
Planning: Questions - Q10 Location Lookup Provider And Freeform Scope
Acceptance criteria: -
Do not implement a provider integration until the provider, allowed result schema, and freeform-versus-selected-address product behavior are resolved.
-
After five typed characters, the location controller debounces a query and presents provider suggestions using the selected integration.
-
Lookup requests accept and return only plain serializable values. A suggestion contains only the display, location text, and optional URL data needed by the UI; it contains no provider object, calendar object,
calIEvent, or DOM value. -
The async lookup lifecycle is keyed by session and request ID. A response is accepted only when it still matches the current session and query; replacing the route, clearing below the threshold, or issuing a newer query prevents stale suggestions from being shown.
-
If the selected provider supports cancellation, pass cancellation through; request-ID matching remains required because cancellation alone does not prove that a provider request stopped.
-
The controller renders committed location state and lookup lifecycle from stable
storeObserverselections. Do not use getters that pull state from the store. -
The input’s composition state, debounce timer, popup-open state, and active suggestion remain local control state. The suggestion popup must not grow or reposition the dialog body.
-
Selecting a suggestion dispatches one narrow location-section patch containing plain selected-address metadata. A selected address is not inline-editable; it can be focused, highlighted, or deleted.
-
The field-owned Save serializer maps the selected address’s location text through existing event-location support. It does not persist provider objects or perform calendar mutation before the normal create/edit Save transaction.
-
Clicking a selected address opens its resolved URL only when a valid URL is present. URL opening occurs in the UI controller, never in a reducer.
-
Bug 2061587 continues to own freeform input, default-off behavior, empty-value handling, and Location-row expansion.
-
Add focused tests for the five-character threshold, debounce behavior, pending/result/error lifecycle, serializable results, stale response rejection, session replacement, selection and deletion, selected-address read-only behavior, optional URL opening, Save-time mapping, popup non-growth, the resolved freeform boundary, and axe coverage where supported.
Out of scope:
- Choosing or creating a provider, provider account setup, generic autocomplete infrastructure, raw provider objects in Redux, direct event mutation outside Save, and changes to Bug 2061587’s freeform MVP behavior before the open product decision is resolved.
| Reporter | ||
Updated•1 month ago
|
| Reporter | ||
Updated•9 days ago
|
Description
•