Skip to content

Conversation

@na9da
Copy link
Collaborator

@na9da na9da commented Oct 23, 2025

What this PR does

Part of UX for #6845
Split from #7626

  • Adds a new toast message UI.
  • Adds new traits to show initialMessage as a toast instead of a popup.
{
 "catalog": [
   {
     "id": "bike-racks-toast",
     "type": "geojson",
     "name": "GeoJSON Test",
     "url": "test/bike_racks.geojson",
     "initialMessage": {
       "title": "Bike racks",
       "content": "This message will self-destruct in 5 seconds",
       "showAsToast": true,
       "toastVisibleDuration": 5
     }
   }
 ]
}

Test me

  • Open this CI link

  • Add the only item from the catalog

  • Observe the notification toast that auto-dismisses
    image

  • Remove and add the item again to the workbench

  • Observe that the toast is not shown again (only the first time)

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

Also add new traits for showing initialMessage as toast.
@na9da na9da changed the title Add toast messages. Add toast message UI. Oct 23, 2025
@na9da na9da mentioned this pull request Oct 29, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants