Search, filter, open a detail page

A guest looks for a vacation rental: they search by place, dates and guests, narrow the results in a filter drawer and open a stay to book it. A search with no results, or a search service that fails, each gets a page with a way on. Every step stays on the site, so the journey has no handoff.

13 screens and steps20 arrows0 warnings

What UJN shows here Point at a note to see its part of the drawing

Search, filter, open a detail page  SEARCHFind a vacation rental: search, narrow the results in a filter drawer, open a stay. Nothing leaves the siteStart Opens the siteStartOpens the siteLoad recent searches (Action)ActionLoad recent searchesRecent searches (Browser storage) Last 5, this browser only Location: localStorage · recent_searchesBrowser storageRecent searchesLast 5, this browser onlylocalStorage · recent_searchesSearch (View) Where, dates, guests, or a recent search Route: /ViewSearchWhere, dates, guests, or a recent search/Start, deep link A shared or bookmarked results link Route: /s/:place?dates&guests&filtersStart, deep linkA shared or bookmarked results linkSearch stays (Action) Query and filters from the routeActionSearch staysQuery and filters from the routeSearch service (System) Host: search.exampleSystemSearch servicesearch.exampleResults (View) List and map, 20 per page Route: /s/:place?dates&guests&filtersViewResultsList and map, 20 per page/s/:place?dates&guests&filtersNo stays found (View) Suggests other dates or filters to remove Route: /s/:place?dates&guests&filtersViewNo stays foundSuggests other dates or filters to remove/s/:place?dates&guests&filtersSearch not available (View) Results could not loadViewSearch not availableResults could not loadFilters (Drawer) Price, type, rooms, amenitiesDrawerFiltersPrice, type, rooms, amenitiesStay details (View) Photos, price for your dates, reviews Route: /stays/:id?dates&guestsViewStay detailsPhotos, price for your dates, reviews/stays/:id?dates&guestsBook a stay (Journey) Journey: BOOK_STAYJourneyBook a stayBOOK_STAYNo label Navigation from from_home to Load recent searchesNo label Navigation, read from Recent searches to Load recent searches Payload: {recent_queries}{recent_queries}No label Navigation from Load recent searches to SearchSearch Navigation from Search to Search stays Payload: {place, dates, guests}Search{place, dates, guests}No label Navigation from shared_link to Search stays Payload: {place, dates, guests, filters}{place, dates, guests, filters}No label Navigation, write from Search stays to Recent searches Payload: {place, dates, guests}{place, dates, guests}some found Navigation from Search stays to Resultssome foundnone found Navigation from Search stays to No stays foundnone foundChange dates Navigation from No stays found to Search stays Payload: {dates}Change dates{dates}Open stay Navigation from Results to Stay details Payload: {stay_id}Open stay{stay_id}Filters Navigation from Results to FiltersFiltersClear all Navigation from Filters to Search staysClear allApply Navigation from Filters to Search stays Payload: {price, type, rooms, amenities}Apply{price, type, rooms, amenities}Edit filters Navigation from No stays found to FiltersEdit filtersReserve Navigation from Stay details to Book a stayReserveNo label Navigation, call from Search stays to Search service Payload: {place, dates, guests, filters, page}{place, dates, guests, filters, page}service error Negative from Search stays to Search not availableservice errorNo label Return, reply from Search service to Search stays Payload: {stays, total}{stays, total}Try again Failed return from Search not available to Search staysTry againBack Return from Stay details to ResultsBack
The source (41 lines)
search.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey SEARCH "Search, filter, open a detail page"description: "Find a vacation rental: search, narrow the results in a filter drawer, open a stay. Nothing leaves the site"unique_id_friendly: search start from_home { description: "Opens the site" }action load_recent { title: "Load recent searches" }data recent { type: browser-storage; title: "Recent searches"; description: "Last 5, this browser only"; location: "localStorage · recent_searches" }view search { title: "Search"; description: "Where, dates, guests, or a recent search"; route: / }start shared_link { type: deep-link; description: "A shared or bookmarked results link"; route: "/s/:place?dates&guests&filters" }action run_search { title: "Search stays"; description: "Query and filters from the route" }system search_svc { title: "Search service"; host: search.example }view results { title: "Results"; description: "List and map, 20 per page"; route: "/s/:place?dates&guests&filters" }view no_results { title: "No stays found"; description: "Suggests other dates or filters to remove"; route: "/s/:place?dates&guests&filters" }view unavailable { title: "Search not available"; description: "Results could not load" }view filters { type: drawer; title: "Filters"; description: "Price, type, rooms, amenities" }view stay { title: "Stay details"; description: "Photos, price for your dates, reviews"; route: "/stays/:id?dates&guests" }ref book { journey: BOOK_STAY; title: "Book a stay" } from_home --> load_recentrecent -up-> load_recent { payload: [recent_queries] }load_recent --> searchsearch --> run_search : [Search] { payload: [place, dates, guests] }shared_link --> run_search { payload: [place, dates, guests, filters] }run_search -right-> search_svc { payload: [place, dates, guests, filters, page] }search_svc ..> run_search { payload: [stays, total] }run_search -up-> recent { payload: [place, dates, guests] }run_search --> results : some foundrun_search -left-x-> unavailable : service errorrun_search --> no_results : none foundno_results -up-> run_search : [Change dates] { payload: [dates] }results --> stay : [Open stay] { payload: [stay_id] }results --> filters : [Filters]filters -up-> run_search : [Clear all]filters -up-> run_search : [Apply] { payload: [price, type, rooms, amenities] }no_results --> filters : [Edit filters]unavailable .x.> run_search : [Try again]stay ..> results : [Back]stay --> book : [Reserve]@endujn