From aea4399e3b5d5fbff2c22e0a246aa89884fa6efe Mon Sep 17 00:00:00 2001 From: mrkmntal Date: Mon, 16 Nov 2026 09:58:03 -0500 Subject: [PATCH] Remove the New Note and Delete buttons from default view, moved functionality to File menu --- AGENTS.md | 8 +-- README.md | 4 +- src/pages.rs | 123 ++++++++++++++++++++++++++++++++-------- static/style.css | 18 ++++++ tests/auth_gating.rs | 132 ++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 251 insertions(+), 34 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7fd664e..d4eb4b7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,7 +26,7 @@ The application layout follows a classic 3-column / top-menu layout rendered cle +-----------------------------------------------------------------------------------+ | [File] [Edit] [View] [Theme] [Help] [EternaLibre Notes v{CARGO_PKG_VERSION}] | <-- Classic Menu Bar; version is manifest-derived +-----------------------------------------------------------------------------------+ -| [+ New Note] [Delete] | Search... | Theme: [ Dark v ] | <-- Apple-style Toolbar +| Search... | Theme: [ Dark v ] | <-- Apple-style Toolbar +-------------------+-----------------------------------+---------------------------+ | Sidebar | Editor Pane | Live Preview Pane | | ----------------- | --------------------------------- | ------------------------- | @@ -46,7 +46,7 @@ The application layout follows a classic 3-column / top-menu layout rendered cle 1. **Fluid Typography**: Inter/SF Pro or high-quality system sans-serif for the interface; Monospace for Markdown source; clean sans for HTML preview. 2. **Subtle Elevation & Borders**: Soft 1px borders using `--ui-border` / `--app-bg` contrast shades rather than heavy drop shadows. 3. **Apple-style Note List**: Sidebar lists show note title, relative timestamp, and a single line preview snippet in muted text. -4. **Progressive Enhancement**: Note editing, server-side search, weather-location settings, and the login form work with JavaScript disabled via HTML forms and page reloads. The visible theme selector currently submits through Alpine's change handler, so theme changes from the toolbar require JavaScript. Menu dropdowns, mobile tab switching, live preview, drag-and-drop re-filing, and automatic opening of the PDF print dialog are also JavaScript-dependent. +4. **Progressive Enhancement**: Note editing, server-side search, weather-location settings, and the login form work with JavaScript disabled via HTML forms and page reloads. New Note and Delete live in the `File` menu for everyone; a `