From 50273fcb1a3fd414002887cf2197e7cd9c22290b Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 22 Jul 2026 14:40:22 -0400 Subject: [PATCH] fix(database): rewrite table view in vanilla JS (Alpine 3.14.9 compat) Alpine 3.14.9 evaluates x-data expressions before Alpine.data() registration, causing 'pages is not defined', 'emptyRows is not defined', etc. Solution: pure vanilla JS DOM rendering (same pattern as Library fix). - _database_table.html: static DOM with IDs only, no Alpine directives - _database_table_scripts.html: vanilla JS state, render, cell editing, modals - Removes all x-data, x-for, x-show, x-model from database table --- app/templates/_database_table.html | 160 +------ app/templates/_database_table_scripts.html | 514 +++++++++++++-------- 2 files changed, 340 insertions(+), 334 deletions(-) diff --git a/app/templates/_database_table.html b/app/templates/_database_table.html index a421004..559dc9e 100644 --- a/app/templates/_database_table.html +++ b/app/templates/_database_table.html @@ -1,145 +1,53 @@ - -
+ +
-
+
- - - -
+
- - +
-
- - - - - - - - - - - - - - - - - - - - - - +
+
- -
- {{ fd_icon("plus",14) }} - - -
+ +
-
-
+ - - -
-
-
-

Rename page

- -
-
-
- -
-
- - + +
diff --git a/app/templates/_database_table_scripts.html b/app/templates/_database_table_scripts.html index 34166d4..3aeb0f1 100644 --- a/app/templates/_database_table_scripts.html +++ b/app/templates/_database_table_scripts.html @@ -1,57 +1,25 @@ - +