fix(servo-shell): show app name in APP_READY notification

system-ui.html: APP_READY handler extracts the last component of
msg.app_id (e.g. 'notes' from 'com.example.notes') and shows
'<name> is ready'. Falls back to the session_id if app_id is absent.
This commit is contained in:
Marco Allegretti 2026-03-11 10:51:16 +01:00
parent dbe44bd0e0
commit 5bd4857a67

View file

@ -202,7 +202,8 @@
function handleAppdMessage(msg) { function handleAppdMessage(msg) {
if (msg.type === 'APP_READY') { if (msg.type === 'APP_READY') {
showNotification('App ready (session ' + msg.session_id + ')'); var label = msg.app_id ? msg.app_id.split('.').pop() : String(msg.session_id);
showNotification(label + ' is ready');
} else if (msg.type === 'APP_STATE') { } else if (msg.type === 'APP_STATE') {
if (msg.state === 'stopped') { if (msg.state === 'stopped') {
removeTaskbarEntry(msg.session_id); removeTaskbarEntry(msg.session_id);