You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is it?: Migrate the existing Comics gallery content sourcing to Directus. The current Comics UI should remain in use, but comic collections, covers and pages should be managed through Directus instead of relying on the existing public/site/comics file and directory structure.
Why improve it?: The current implementation ties comic content and ordering to the server-side directory structure. Adding or reorganizing comics therefore depends on the underlying files rather than the CMS. Moving the content to Directus allows comics to be managed, ordered and published without frontend or filesystem changes.
🌟 Benefits of the Enhancement
User Experience: Comic content can be updated and expanded more reliably while preserving the existing Comics gallery experience.
Project Impact: Centralizes comic content management in Directus, removes the dependency on the existing filesystem-based comics structure and makes future content updates easier to maintain.
🛠️ Proposed Implementation
Technical Details:
Create a Directus data model for comic collections.
Each comic collection should support at least:
Title/name
Cover image
Ordered comic pages/images
Sort/order value
Publication status
Comic pages should use Directus file relations and preserve their intended reading order.
Configure public/frontend read permissions for published comic content.
Create a Directus API/query layer for Comics content.
Convert Directus file IDs to asset URLs for the existing gallery components.
Return the data in a format compatible with the existing Comics UI where practical.
Only published comic collections should be visible publicly.
Collections and individual comic pages must render in their configured order.
The existing regular gallery functionality must continue to work and should not be migrated as part of this issue.
Remove the Comics page dependency on the current public/site/comics directory fetching once the Directus integration is in use.
Implementation Plan:
Review the current Comics gallery data requirements and existing SectionGallerias / gallery flow.
Create the required Comics collections and file relations in Directus.
Configure publication status, ordering and public read permissions.
Add TypeScript types for the Directus Comics data.
Create a dedicated Comics Directus API/query layer.
Map the Directus response into the structure required by the existing Comics gallery components.
Update ComicsGalleriesPage to source its content from Directus.
Migrate the existing comic content and page ordering into Directus.
Remove the obsolete filesystem-based Comics data path where it is no longer required.
Verify that the existing Comics UI and modal/slider behavior continue to work correctly after the migration.
Verify that the regular Galleries implementation is unaffected by the change.
✨ Enhancement Description
public/site/comicsfile and directory structure.🌟 Benefits of the Enhancement
🛠️ Proposed Implementation
Technical Details:
public/site/comicsdirectory fetching once the Directus integration is in use.Implementation Plan:
SectionGallerias/ gallery flow.ComicsGalleriesPageto source its content from Directus.📎 Additional Information
Links & References:
src/preparedPages/ComicsGalleriesPages/src/widgets/SectionGallerias/src/entities/Gallery/model/galleryApi.tspublic/site/comicsMockups/Examples: