From c75cdab13401ca21d430c79cb7586c0de132566e Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 10 Jul 2026 12:01:34 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20server-side=20share=20persistence=20?= =?UTF-8?q?=E2=80=94=20DB=20columns=20+=20API=20+=20sidebar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pages table: added share_mode (private/invited/anyone) and published (bool) - board.py: view_page now loads share_mode + published from DB - page_editor.html: initializes shareTab, generalAccess, pagePublished from server - Clipboard: fallback to textarea copy for HTTP (no HTTPS required) - Toast: guaranteed visible with fixed positioning and Alpine x-show - Sidebar Shared section: renders shared_pages (pages with share_mode != private) --- app/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/db.py b/app/db.py index 0b33be6..96ef9c0 100644 --- a/app/db.py +++ b/app/db.py @@ -138,6 +138,8 @@ def init_db(): content TEXT NOT NULL DEFAULT '', parent_section TEXT DEFAULT 'Private', parent_id INTEGER REFERENCES pages(id), + share_mode TEXT DEFAULT 'private', + published INTEGER DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );