Native AFP pages: forecast and observation engagement events
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- next.js, typescript
Direzione di ricerca
Read docs/analytics-events.md and the implementation and acceptance criteria in the linked widget issues #319, #320, and #321 first; native work is blocked until those land and a forecast rollout is planned. Trace the native forecast sections, GlossaryProse/AuthoredHtml, MediaLightbox, and ZoneObservationCards named in the issue, then add the matching event behavior and client tests for the timer and send triggers. Done means native pages emit the widget event names and properties wherever those surfaces exist.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This was generated by AI during triage.
Parent
#1484. Related: #1135, #1136.
What to build
Emit the engagement events specified in #1487 on the native forecast and observation pages, so a center's numbers don't change when a product flips from widget to native. #1136 covers the existing widget vocabulary and explicitly excludes these events. Follow docs/analytics-events.md in the widgets repo, which is the source of truth by then.
No center has nativeProducts.forecast on in production, so this waits until a flip is planned.
Implementation notes
useAnalytics().captureaccepts only string properties and no options.forecast_readneeds numbers andsendBeacontransport.- The forecast sections render on the server, and
data-print-sectioncan't identify them: the danger panel usesbottomLineand media has none. Add a dedicated attribute and one client island that owns the section timer. - Sanitized forecast HTML also renders on the server, so
forecast_link_clickedneeds a delegated listener in a client wrapper aroundGlossaryProseandAuthoredHtml. media_viewedhooks intoMediaLightbox.ProblemMediaFigure,DiscussionBodyandForecastMediaThumbnailsall open it.observation_readand thehas_avalanches/has_cracking/has_collapsingflags also apply once native observations ship.seconds_on_listandlist_positionapply once native observations ship. Forecast-tab opens useZoneObservationCards, which already hasobserverTypeandmediaCount.
Acceptance criteria
- For the same forecast page, native and widget send the same event names and properties, with
widget: forecasts - A trends breakdown of
forecast_readbycenterincludes native and widget centers with no per-host special casing - Each behavior in the widget acceptance criteria holds on native pages, where the surface exists
- Client tests cover the section timer and the send triggers
Out of scope
The existing widget vocabulary (#1136), video_progressed, and widget changes.
Blocked by
- NationalAvalancheCenter/afp-public-widgets#319, NationalAvalancheCenter/afp-public-widgets#320 and NationalAvalancheCenter/afp-public-widgets#321 (the implementations this mirrors)
- A planned native forecast rollout for at least one center
- Lingua principale
- TypeScript
- Stelle
- 6
- Fork
- 2
- Merge medio
- 1g 11h
- PR unite (30g)
- 35
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NWACus/web
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs-triage tenant:a3
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
NWACus/web#1190 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NWACus/web#1154 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Media browser returns "Not found" for repositories using the SHA-256 object formatForse già presa @adamchodera l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Follow-ups from #312Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
janhesters/remixcn#318 ·
I maintainer di solito rispondono entro 1 giorno
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launchesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
danielmiessler/LifeOS#3150 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Make the "%" unit spacing the same in the web and in A10Forse già presa @kragent66-glitch l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 commento ·