Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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
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
0ecfa29bf0 feat: finalize Almeira Multimedia Ecosystem integration and UI refinements 2026-03-27 16:29:10 -05:00
4680213b2d Fix: Unified Project IDs, secured emergency login, and fixed HTML entity decoding 2026-03-27 09:00:00 -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
2dd32d02aa Update Almeira Web components and schema 2026-03-26 08:53:24 -05:00