Skip to content

Add toast message UI.#7710

Merged
na9da merged 6 commits intomainfrom
toast-notification
Dec 9, 2025
Merged

Add toast message UI.#7710
na9da merged 6 commits intomainfrom
toast-notification

Conversation

@na9da
Copy link
Copy Markdown
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
Copy link
Copy Markdown
Contributor

@micholm micholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@na9da na9da merged commit 4dffd57 into main Dec 9, 2025
10 checks passed
@na9da na9da deleted the toast-notification branch December 9, 2025 23:30
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