Edwin
d5ac2a21b3
Fix JavaScript tree reload after CRUD operations
...
- Add reloadTree() function to centralize tree updates
- Fix handleSaveEditItem to reload tree after item updates
- Fix handleAddItem to reload tree after adding items
- Fix handleDeleteItem to reload tree after item deletion
- Fix all category functions to reload tree after operations
- Replace broken Bootstrap.Modal.getInstance() with direct DOM manipulation
- Fix JavaScript syntax errors and missing braces
- Ensure tree updates automatically without manual page reload
Resolves issue where tree navigation was not updating after item modifications.
2025-11-12 16:29:35 +00:00
E.Noorlander
9f9617ca45
Add development documentation and enhance SPA navigation with category/item detail views
...
- Add DEVELOPMENT.md with complete LXC environment setup guide
- Implement dynamic category tree with item navigation in sidebar
- Add category detail view with items list via AJAX
- Add item edit form with delete functionality
- Enhance SPA routing to support query parameters for categories/items
- Update Bootstrap styling with icons and improved navigation
- Include SQLite database in repository for development
2025-11-12 09:51:01 +01:00
E.Noorlander
deb27490c2
Implement category tree via AJAX to avoid 500 errors on page load
2025-11-12 08:47:52 +01:00
E.Noorlander
953f831ab9
Temporarily disable tree building to fix 500 errors, likely due to database issues
2025-11-12 08:44:07 +01:00
E.Noorlander
03e2e2b13a
Add size limit to sidebar HTML to prevent large output causing 500 errors
2025-11-12 08:42:09 +01:00
E.Noorlander
67c402a37a
Enable category tree with limits to prevent 500 errors: max depth 5, max 20 items per category
2025-11-12 08:41:23 +01:00
E.Noorlander
bbc57a9d53
Implement category tree in sidebar using PHP-generated HTML to avoid Twig recursion issues
2025-11-12 08:40:22 +01:00
E.Noorlander
7c5ecd4b9b
Fix category tree building to prevent infinite recursion on circular references
2025-11-12 08:37:50 +01:00
E.Noorlander
5549c67eb5
Replace sidebar menu with collapsible category tree showing items
2025-11-12 08:36:40 +01:00
E.Noorlander
8f072292c1
Organize scattered PHP files into scripts/ and tests/ directories
2025-11-12 08:34:20 +01:00
E.Noorlander
0622f40004
Update database and QR files
2025-11-11 18:27:06 +01:00
E.Noorlander
b06207810b
Fix QR generation using save method
2025-11-11 18:24:53 +01:00
E.Noorlander
81fca09069
Regenerate QR on print if invalid
2025-11-11 18:23:01 +01:00
E.Noorlander
bfea1f4dfe
Fix image update in edit, QR code generation and translations
2025-11-11 18:21:40 +01:00
E.Noorlander
c1957baab9
Update AGENTS.md with coding standards and commands
2025-11-11 18:17:54 +01:00
E.Noorlander
3ff85b8143
Translate list action buttons; add debug logging for item updates
2025-11-11 18:13:24 +01:00
E.Noorlander
e1cf2a3e46
Sanitize image file names to remove special characters; fix existing image paths
2025-11-11 18:10:26 +01:00
E.Noorlander
b1ce2ce3aa
Add display of current image in edit modal
2025-11-11 18:09:51 +01:00
E.Noorlander
c7f199d61f
Set uploads directory permissions to 777 for file uploads
2025-11-11 18:09:38 +01:00
E.Noorlander
413c7daee5
Add debug logging for image upload and QR generation
2025-11-11 18:07:20 +01:00
E.Noorlander
ec8beab484
Add close button to print QR page; fix QR generation to use file_put_contents
2025-11-11 18:04:57 +01:00
E.Noorlander
4ed2f075a6
Add enctype='multipart/form-data' to forms for file upload support
2025-11-11 18:03:42 +01:00
E.Noorlander
9fb5066f9b
Change QR code output to SVG to avoid GD dependency; fix permissions for uploads
2025-11-11 18:02:19 +01:00
E.Noorlander
ef5bf3ecca
Fix PDO type hint in ItemController to use global PDO class
2025-11-11 18:00:45 +01:00
E.Noorlander
2b21c79eff
Add README.md with project description and usage instructions
2025-11-11 17:59:41 +01:00
E.Noorlander
a15c976106
Add new fields to items: id_code, image, location; implement QR code generation and printing; update translations and UI
2025-11-11 17:59:23 +01:00
E.Noorlander
921a74bbe2
first commit
2025-11-11 17:00:02 +01:00