diff --git a/apps/mana/apps/web/src/lib/components/feedback/FeedbackForm.svelte b/apps/mana/apps/web/src/lib/components/feedback/FeedbackForm.svelte new file mode 100644 index 000000000..2ce4c6d82 --- /dev/null +++ b/apps/mana/apps/web/src/lib/components/feedback/FeedbackForm.svelte @@ -0,0 +1,344 @@ + + + +{#if submittedDisplayName} +
+

+ Dein Feedback ist eingegangen — sichtbar als {submittedDisplayName}. +

+
+ +5 + Mana Credits +
+ {#if isPublic} +

Es taucht in der Community-Page auf, sobald wir es freigeben.

+ {:else} +

Es bleibt privat und ist nur für dich + Admins sichtbar.

+ {/if} + {#if onCancel} + + {/if} +
+{:else} +
+ {#if moduleContext} +
Modul: {moduleContext}
+ {/if} + + + + + + + + {#if error} + + {/if} + +
+ {#if onCancel} + + {/if} + +
+
+{/if} + + diff --git a/apps/mana/apps/web/src/lib/components/feedback/FeedbackHook.svelte b/apps/mana/apps/web/src/lib/components/feedback/FeedbackHook.svelte index 6215cc77c..85d89ee4c 100644 --- a/apps/mana/apps/web/src/lib/components/feedback/FeedbackHook.svelte +++ b/apps/mana/apps/web/src/lib/components/feedback/FeedbackHook.svelte @@ -3,29 +3,46 @@ pre-filled with the calling module's id. Drops into ModuleShell's window-actions row by default; can be placed anywhere by callers. - ModuleShell auto-injects this in its header (right next to the - window-controls). Modules opt out via `hideFeedback={true}`. + Two render modes: + - Standalone (`onClick` not provided): renders the heart-half button + + opens its own FeedbackQuickModal. Used outside the workbench + (e.g. /todo direct route, settings pages). + - Hosted (`onClick` provided): just the icon button — the host owns + the open-state and renders feedback inline (workbench AppPage). + + ModuleShell auto-injects the standalone variant in its header. The + workbench's AppPage suppresses that and wires its own onFeedback to + flip into the inline feedback panel (like the Hilfe panel). --> @@ -33,14 +50,17 @@ - (open = false)} /> + {#if !onClick} + (open = false)} /> + {/if} {/if} diff --git a/apps/mana/apps/web/src/lib/components/feedback/FeedbackQuickModal.svelte b/apps/mana/apps/web/src/lib/components/feedback/FeedbackQuickModal.svelte index 8c5b6cf1e..e2483b6c2 100644 --- a/apps/mana/apps/web/src/lib/components/feedback/FeedbackQuickModal.svelte +++ b/apps/mana/apps/web/src/lib/components/feedback/FeedbackQuickModal.svelte @@ -1,76 +1,28 @@