]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] WebUI: add tab-utils.js to ARCHITECTURE.md
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 2 Jul 2026 11:27:22 +0000 (14:27 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 2 Jul 2026 11:27:22 +0000 (14:27 +0300)
interface/ARCHITECTURE.md

index 96a4920687617cce78ad887d57d09bed60493343..0c637a003fbbc377f200f5c7dc936f9dfb0de4db 100644 (file)
@@ -64,7 +64,8 @@ interface/
 │   │   ├── config.js      # Configuration tab (actions, maps)
 │   │   ├── upload.js      # Scan tab (message upload/scanning)
 │   │   ├── selectors.js   # Selectors tab (testing selectors)
-│   │   └── libft.js       # Tabulator table utilities (history/scan rendering)
+│   │   ├── libft.js       # Tabulator table utilities (history/scan rendering)
+│   │   └── tab-utils.js   # Shared Tabulator UI helpers (footer, scroll, row-toggle)
 │   └── lib/               # Third-party libraries (minified)
 ├── img/                   # Images and logos
 └── README.md              # Setup instructions
@@ -156,6 +157,14 @@ Tests Rspamd selectors against messages (Selectors tab)
 
 Shared Tabulator table utilities: data preprocessing, table initialization, pagination, sorting
 
+### Shared Tabulator UI Helpers
+`js/app/tab-utils.js`
+
+Cross-table UI helpers used by every Tabulator table: scroll-into-view patching,
+tableholder tabindex stripping, single-page footer hiding, click-to-toggle
+responsive rows, and scroll-position preservation across renders. Depends only
+on `common` (no jQuery).
+
 ## Data Flow
 
 **Typical interaction pattern:**