feat: Add web UI for manual oneliner overrides

Adds a new POST endpoint for web-based oneliner overrides and updates
the UI to allow manual editing. The person icon replaces the pencil icon
for doctor-authored titles, signifying manual authorship rather than
editability.
This commit is contained in:
2026-04-26 17:17:09 +02:00
parent d732fdd8ec
commit 03736b6993
9 changed files with 531 additions and 49 deletions
+7 -1
View File
@@ -622,7 +622,13 @@ impl DoctateApp {
};
let resp = ui.add(label);
if matches!(marker.oneliner, Some(OnelinerState::Manual { .. })) {
ui.colored_label(egui::Color32::from_rgb(0, 110, 0), "");
// Person-glyph marks doctor-authored titles.
// Replaces an earlier pencil icon: the pencil
// suggested an edit affordance, but on this row
// the marker is informational only — clicking
// the title text already opens the editor.
ui.colored_label(egui::Color32::GRAY, "👤")
.on_hover_text("manuell bearbeitet");
}
if resp.clicked() {
// Pre-fill the editor with the visible text