feat(mana/web/nutriphi): context menu quick-action for "Neue Mahlzeit"

Adds a contextMenuActions entry to the nutriphi registerApp() block
matching the convention todo / calendar / contacts / habits / notes /
dreams / cycles all use: a Plus-icon "Neue Mahlzeit" action that
dispatches a window CustomEvent('mana:quick-action', { app: 'nutriphi',
action: 'new' }).

Note: there is currently no registered listener for mana:quick-action
in the codebase — every existing module dispatches it but nothing
consumes it yet (presumably waiting for a central handler in the
workbench shell). Adding the entry now keeps nutriphi consistent with
the convention so it will light up automatically once the listener
lands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-09 16:14:50 +02:00
parent 6124ae9cd6
commit bd748b0a14

View file

@ -541,6 +541,17 @@ registerApp({
views: {
list: { load: () => import('$lib/modules/nutriphi/ListView.svelte') },
},
contextMenuActions: [
{
id: 'new-meal',
label: 'Neue Mahlzeit',
icon: Plus,
action: () =>
window.dispatchEvent(
new CustomEvent('mana:quick-action', { detail: { app: 'nutriphi', action: 'new' } })
),
},
],
});
registerApp({