Commit Graph

6 Commits

Author SHA1 Message Date
Ali 1bd244c6fc fix: bust the correct frappe.local block caches after save
The permission-hook refactor in jey_theme dropped the _jey_layout_raw cache
slot and added _jey_blocked_doctypes/_workspaces/_slugs. _bust_caches now
clears those so a save / block toggle is reflected within the same request.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 16:22:19 +00:00
Ali 721273a2f7 feat: block DocTypes via the real /app/doctype list (edit mode only)
Replaces the search-only dialog with the native DocType list: the 'Block
DocTypes' editor action routes to /app/doctype, where a 'Jey Layout' button
group (Block/Unblock selected, Show blocked only toggle) and a 'Blocked'
indicator are injected via listview_settings (extends, never overwrites core).
Buttons/indicator show only in edit mode; robust to the dynamic-load race by
also applying to the live cur_list on route change. Server helpers
block_doctypes/unblock_doctypes/blocked_doctypes_list. Banner shortened and
hidden off workspace pages so it no longer covers the list toolbar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 09:29:27 +00:00
Ali b41d517249 feat: 'Block DocTypes' editor button — block any doctype, incl. not on /desk
Adds an edit-mode menu action + dialog to manage a global blocked_doctypes
list (Link picker + remove), persisted in the working config and validated
server-side. Lets you block doctypes that have no link on the desk.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 09:58:43 +00:00
Ali 17893b06ae docs: design mode auto-enables when jey_layout is installed
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 08:51:47 +00:00
Ali 750bf2c157 feat: inline desk visibility editor (hide/block/add/reorder)
Editor companion to jey_theme. On /desk a System Manager can mark workspaces/
cards/links visible, hidden or blocked, add DocType/Report/Page links into a
card, and reorder links within a card — all non-destructive (applied server-side
by jey_theme, Workspace records untouched). Editor JS/CSS is loaded dynamically
by jey_theme.js in design mode, not via app_include (avoids the preload Link
header tripping the edge proxy's 4 KB buffer). Working config is gitignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 12:53:53 +00:00
Ali b55967e426 feat: Initialize App 2026-06-18 09:50:32 +00:00