Commit Graph

62 Commits

Author SHA1 Message Date
ac0735381f fix: global serialization hardening for layouts and components
- Sanitized getEntityConfig at the source to prevent Navbar errors.
- Sanitized user object in DashboardLayout to protect Sidebar.
- This ensures all collections and custom routes are immune to 'Only plain objects' errors.
2026-03-28 12:14:28 -05:00
b58a2a59fb fix: resolve 'Only plain objects' serialization errors across dashboard and home
- Applied JSON.parse(JSON.stringify()) sanitization to documents and relationData in EditEntityPage.
- Sanitized relationData and user in NewEntityPage.
- Sanitized posts and settings in Homepage.
- Added missing Query import to dashboard edit page.
- This ensures all data passed to Client Components is in a serializable POJO format.
2026-03-28 12:05:41 -05:00
c6cb9a0265 feat: unify dashboard layout and implement pagination for publications
- Refactored EntityPage to share the same Header, Search, and Pagination UI across all modules.
- Implemented server-side pagination for the specialized Publications view (12/page).
- Added search support for Publications module.
- Ensured 100% design consistency between specialized and generic views.
- Fixed 4062 record display issue by implementing blocks of data fetch.
2026-03-28 11:15:36 -05:00
29c124580e fix: stabilize dashboard and harden appwrite actions against production schema mismatches
- Fix Next.js serialization error by sanitizing Appwrite documents (POJO conversion).
- Harden entity configuration actions to handle 404 (collection not found) gracefully.
- Add fallback for NewsTicker WhatsApp messages if 'status' attribute is missing.
- Prevent 'document_missing_data' error in updateEntityConfig by validating input.
2026-03-28 10:46:53 -05:00
0ebe2b691a fix: refactor zod schemas for zod 4 compatibility
- Use 'message' instead of 'errorMap' or 'invalid_type_error' for enum validation.
- Explicitly pass key type to z.record (required in Zod 4).
2026-03-28 10:25:07 -05:00
2b099f86ba fix: resolve build failure by relaxing submitEditAction type in PublicationsList 2026-03-28 10:15:57 -05:00
5279af2003 refactor: global project hardening and integrity verification
- Add safety checks for direct Appwrite document index access across all root pages.
- Harden NewsTicker and AdWrappers with robust fallback settings and length checks.
- Apply strict typing to dashboard settings page and resolve icon conflicts.
- Final global audit for deprecated Zod .errors usage (0 occurrences remaining).
- Standardize PublicationLayout across creation and edit workflows for posts.
2026-03-28 10:07:32 -05:00
956360a693 fix: resolve build-time type error in dashboard pages by relaxing submitAction return type
- Update PublicationLayoutProps and PublicationDrawerProps to allow 'void' as a valid return type for server actions (supporting redirects).
- Improve error handling in PublicationLayout and PublicationDrawer to safely process both object and void responses.
- Update EditEntityPage to include missing user authentication and use specialized PublicationLayout for 'posts' entity.
2026-03-28 10:03:54 -05:00
339ac0125e refactor: improve project integrity with shared types and strict Appwrite document casting
- Create shared Settings interface in @/types/settings.
- Refactor NewsTicker, AdWrappers, and page components to use shared types.
- Remove risky 'as any' casting from Appwrite document resolution.
- Update Post interface to include resolved_media for consistent data handling.
- Verify Zod error handling consistency across the src directory.
2026-03-28 09:57:42 -05:00
ea551469b7 fix: use zod issues instead of errors for build compatibility 2026-03-28 09:53:10 -05:00
dda9ae0f4a feat: implement robust publications module with real-time validation and state management
- Refactor dashboard entity pages to support dynamic publications management.
- Add Publications Module with Atomic Design components (PostCard, PublicationsList, FormSection).
- Implement Zod-based real-time validation for publication forms.
- Manage state using Zustand for optimistic UI and in-place relations.
- Add RBAC protection with PermissionGuard and server-side API validation.
- Fix: Resolve TypeScript type error in AdWrappers.tsx to ensure successful build.
- Add ToastProvider and ErrorBoundary for improved user experience.
- Update dependencies for publications logic.
2026-03-28 08:47:40 -05:00
7659019ca3 fix: replace client SDK with Admin SDK in radio and tv server pages 2026-03-27 21:23:41 -05:00
cf3e3181cc fix(production): final stabilization of AdWrappers and ClientSidebars robustness 2026-03-27 21:18:16 -05:00
4c7c4d1468 fix(stabilization): resolved media object fragility and refined sidebar error boundaries 2026-03-27 21:17:28 -05:00
5736efc915 fix: resolve server-side render exception by switching to Admin SDK in wrappers and adding robust media validation 2026-03-27 21:03:56 -05:00
0ab9cf1c16 chore: enhance home page robustness and finalized database unification 2026-03-27 19:01:10 -05:00
949811297a fix: resolve production 500 error by unifying DATABASE_ID to 'almeira' and centralized logic in src/lib/appwrite.ts 2026-03-27 19:00:19 -05:00
44947d0d29 fix: resolve production UnrecognizedActionError by externalizing entity server actions into stable top-level exports 2026-03-27 18:42:07 -05:00
64c6568a99 feat: implement advanced publications UX with 12-column grid, sections and on-the-fly creation 2026-03-27 18:29:33 -05:00
0bce072ce4 deploy: force rebuild to reflect recent multimedia and login changes 2026-03-27 18:16:15 -05:00
cc9a599aad fix: login secure cookie and add diagnostic logging 2026-03-27 18:13:22 -05:00
ded6045fdb feat: add automated configuration checker script 2026-03-27 16:37:46 -05:00
0ecfa29bf0 feat: finalize Almeira Multimedia Ecosystem integration and UI refinements 2026-03-27 16:29:10 -05:00
3ee7b28d3d fix: remove duplicate HTML entity keys in utils 2026-03-27 10:16:18 -05:00
76436ac1a2 fix: deleteDocumentServer signature compatibility 2026-03-27 10:11:02 -05:00
3abaa7602f fix: standardized server action return types and fixed media upload types 2026-03-27 10:07:23 -05:00
8a6db9df86 fix: build errors, missing deps, and restored server actions 2026-03-27 09:54:28 -05:00
bda5ab2c82 fix: final auth reset v1.1.0-RESET and force docker rebuild 2026-03-27 09:39:46 -05:00
42777abf6d fix: force rebuild and enable insecure cookies for HTTP access v1.1.0 2026-03-27 09:37:59 -05:00
00aeb44baa Fix: Disable secure cookies for HTTP & add detailed logs 2026-03-27 09:22:36 -05:00
310caf1696 Robustness Fix: Trim email and full project ID sync 2026-03-27 09:15:24 -05:00
754e347619 Final Fix: Secure emergency login and absolute project ID consistency 2026-03-27 09:09:59 -05:00
4680213b2d Fix: Unified Project IDs, secured emergency login, and fixed HTML entity decoding 2026-03-27 09:00:00 -05:00
3925d789e2 Fix: comment out public folder copy in Dockerfile (missing in project) 2026-03-27 07:42:48 -05:00
7ba9c2832e Deploy: Add Dockerfile and enable standalone output for Coolify deployment 2026-03-27 06:55:37 -05:00
e3024af88b modified: src/app/[slug]/page.tsx
modified:   src/app/clasificados/page.tsx
modified:   src/app/dashboard/[entity]/[id]/page.tsx
modified:   src/app/dashboard/[entity]/new/page.tsx
modified:   src/app/dashboard/[entity]/page.tsx
modified:   src/app/dashboard/entity/page.tsx
modified:   src/app/dashboard/profile/page.tsx
modified:   src/app/dashboard/settings/page.tsx
modified:   src/app/eventos/page.tsx
modified:   src/app/globals.css
modified:   src/app/page.tsx
modified:   src/components/NewsTicker.tsx
modified:   src/components/ProgrammingSchedule.tsx
2026-03-27 06:51:16 -05:00
80a6f77b74 Dashboard: Implemented search, pagination and relation resolution across all listing pages 2026-03-26 16:16:21 -05:00
4b45712d49 Fix: Completed conditional sidebar and full-width grids across all pages with AD_BANNER support 2026-03-26 15:57:23 -05:00
f799c41ae7 Refactor: Conditional sidebar support with AD_BANNER and full-width detail page 2026-03-26 15:57:06 -05:00
1926330b41 Fix: Unified conditional sidebar and full-width grids across all pages 2026-03-26 15:56:48 -05:00
f71879da9c Refactor: Full-width support for Clasificados 2026-03-26 15:56:38 -05:00
4f1bc2b3ba Fix: Finalizing full-width logic for Eventos 2026-03-26 15:56:18 -05:00
0fd3c014c1 Refactor: Full-width support for Eventos 2026-03-26 15:56:02 -05:00
3cc3c65464 Fix: Applied conditional sidebar to Eventos and fixed Home fallback 2026-03-26 15:55:05 -05:00
95f3f6166e Fix: Final layout logic for sidebar 2026-03-26 15:54:55 -05:00
d22b3d4cfa Refactor: Unified conditional sidebar logic across pages 2026-03-26 15:54:12 -05:00
03c72505af Refactor: Full-width feed if sidebar is empty 2026-03-26 15:53:53 -05:00
a0dcd01b9b Fix: Conditional sidebar and full-width News Feed 2026-03-26 15:53:31 -05:00
c76ed914b1 Fix: Invalid query in slug route and NewsCard footer logic 2026-03-26 15:52:15 -05:00
8e27335f71 Refactor: Move news route to root level for WordPress compatibility 2026-03-26 15:45:01 -05:00