Skip to main content

Module notices

Module notices 

Source
Expand description

Notices shown where they happened (docs/notices.md).

A page or a panel draws a notice site for its place (notice_site): while it is drawn, the routing policy may send a notice of that place there (by default, the user’s own errors and warnings: Surface::Inline), and the site draws each as a Note, selectable, with Copy and a close button. Raising, routing and reading notices are on AppHandle: AppHandle::report, AppHandle::route_notices, AppHandle::notice_badge, AppHandle::run_reported.

Experimental: may change in any release (docs/stability.md).

Re-exports§

pub use crate::bus::NoticeBadge;

Structs§

CommandError
Why a command failed, for people and for the record.
DefaultRouting
egui-pop’s own policy: default_route.
Filter
What the panel lists: the notices that match every part set.
NoticesPlugin
The history of notices in view: the status bar’s bell, counting the errors and warnings not seen yet (AppHandle::notice_badge), and the Notices panel (PANEL_NOTICES, closed until the bell or the application opens it) listing every notice kept, with its filters, Copy all, Mark all seen, Clear seen and each notice’s details.
Route
The surfaces a policy picked for one notice, in order.
RouteCx
What a policy knows besides the notice: the places a notice site shows now.

Enums§

Surface
A view that shows a notice.

Constants§

BELL
The status bar’s bell.
PANEL_NOTICES
The Notices panel: the history of notices, newest first.
PLUGIN
The plugin’s id.
SITE_SHOWN
How many notices a site shows at once, the newest.

Traits§

NoticeRouting
An application’s routing policy. A closure Fn(&Notice, &RouteCx) -> Route is one.

Functions§

bell
The status bar’s bell: the notification symbol, a count of the errors and warnings not seen yet coloured by the worst, a tooltip saying them. A click opens the Notices panel, or gives it the keyboard. For screen readers, a button named “Notices” with its count, announced politely when it rises.
bell_text
The bell’s tooltip: “3 errors, 1 warning not yet seen”, or that nothing is new.
copy_all_text
What Copy all puts on the clipboard: each notice listed as its note copies it (headline, reason, hint, details, time), in the panel’s order, separated by a line of =.
default_route
egui-pop’s default routing table (the module’s): background work never pops up, a user’s own failure shows where it happened.
listed
The notices a filter lists, in the panel’s order: the unresolved ones first, newest first within each.
notice_site
Draws the notice site of place (a page, a panel: settings/storage/ nodes): registers it, so the routing policy may send it the notices of that place while it is drawn, and draws the notices routed to it that were not put away (nor resolved, for a condition), the newest SITE_SHOWN, newest first. A notice drawn is marked seen; its close button puts it away (pop.notice.dismissed); its actions that name a command run it.
panel
Draws the Notices panel’s content (the panel PANEL_NOTICES calls it; an application may draw it anywhere): its filters and actions, then the notices kept, unresolved first, newest first; a click on a row shows its notice in full. The notices it lists are marked seen.
panel_preview
Draws the Notices panel’s content as panel does, without marking the notices it lists seen: a preview (a gallery, a help page) that leaves the bell’s count as it is.