- Add tableRules to State for caching hst_rules data
- Add getTableRules() API function to fetch hst_rules table
- Modify getCategory() to check if table has categories (hst_permitidos)
- Only use set_hst for sub-categorization on tables with non-empty hst_permitidos
- Tables without categories now correctly show base name as category
- Load tableRules once on first data load for performance
Fixes issue where all items were showing sub-categories even when the
table (like itm, flg, loc) doesn't have category restrictions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tags are now categorized based on their set_hst field, which
points to the parent category tag (e.g., hst, spe, vue, vsn, msn).
This uses the actual semantic relationship defined in the database
rather than inferring from ref prefix or using the base.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tags are categorized by the base they belong to, not by their
ref prefix. A tag in the hst table is always a hashtag, regardless
of whether its ref starts with "flg", "ply", etc.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Count tags per category before rendering sidebar
- Only display categories that have tags in current view
- Show count next to each category name
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Event handlers now read fresh state from State.get() instead of
using captured values from when bindSidebarEvents was called.
This ensures the sidebar updates correctly with each render.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Instead of depending on non-existent api_library_list_* views,
now queries library_${base} for unique mrf_library values and
fetches tag info from main table.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implementación completa de soporte multi-bucket para tabla ATC:
- Tabla public.bucket_registry (metadata de buckets)
- Tabla public.bucket_access_log (auditoría)
- Campo bucket_mrf en tzzr_core_secretaria.atc
- 2275 archivos migrados a bucket 'deck'
- Documentación completa de sesión
Cambios menores:
- deck-v4.6.html actualizado
- Caddyfile para captain-mobile
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change API_BASE to https://tzrtech.org/api (HST server)
- Update all schemas to 'public' (actual DB schema)
- Fixes TreeView data loading in production
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Events now logs to console when _debug is true:
- [Events.on] event (N handlers) - green
- [Events.off] event - orange
- [Events.emit] event data → N handlers - blue
Toggle in browser console:
Events._debug = false // disable
Events._debug = true // enable (default)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>