From 9100da74f3da0c7bb84d0a53e2b36d6857ca6fb5 Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 19 Jul 2026 21:40:39 -0400 Subject: [PATCH] Unify all New Page / New Folder buttons across the app - Add global window.FlowDeck namespace with createPage() and showCreateFolderModal() - createPage() creates a Notion-style page via /board/api/pages (same as sidebar bottom-right button) - showCreateFolderModal() opens a global themed modal (dark/light) instead of browser prompt() - All New Page buttons now call window.FlowDeck.createPage() - All New Folder buttons now call window.FlowDeck.showCreateFolderModal() - Global New Folder modal uses existing .flowdeck-modal CSS classes for theme consistency - Updated Ctrl+N keyboard shortcut to use unified createPage() --- app/templates/base.html | 97 +++++++++++++++++++++++++++--- app/templates/gitea_workspace.html | 2 +- app/templates/library.html | 6 +- app/templates/local_workspace.html | 16 ++--- 4 files changed, 101 insertions(+), 20 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 8f69421..415ffe3 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -123,8 +123,8 @@ {% if gitea_workspace %}📁 {{ active_ws_name }}{% elif workspace_key and '/' in workspace_key %}🔗{% else %}📁{% endif %} {{ active_ws_name if not gitea_workspace else '' }} {% from '_workspace_tree_macro.html' import render_workspace_tree %} @@ -170,7 +170,7 @@ Meetings @@ -425,10 +425,10 @@ @click.outside="wsCtx.visible = false">