Tinacms Developer Docs

14 November 2024

In this meeting, the team discussed various technical topics related to TinaCMS, with a focus on improving image handling, troubleshooting editorial workflows, and exploring custom configuration options. Here’s a summary of the key points:

🤖🤖

  1. Image Handling with Relative Paths:

    • The team discussed challenges with handling images that are stored alongside content rather than in a public folder. Jeff explained that TinaCMS was originally designed with a public assets folder in mind, and customizing this logic to handle relative paths would require significant changes. Possible solutions were considered, such as adding configuration options for user-defined image paths and modifying how TinaCMS indexes and serves images, particularly in development environments.
  2. Editorial Workflow and Schema Mismatches:

    • They addressed issues where schema mismatches occur when switching branches. This often happens when schema changes, such as adding required fields, are made on a branch and cause errors upon merging back to the main branch. Jeff explained how TinaCMS currently performs schema checks and highlighted the need for a future migration tool that would help handle schema changes more gracefully, especially for non-breaking updates.
  3. Tina Lock File Overview:

    • Jeff provided an in-depth overview of the Tina lock file, explaining its purpose as a snapshot of the schema and configuration needed for TinaCMS to function without running user code on Tina Cloud. The lock file is critical for ensuring consistency in schema handling across environments and was compared to traditional package lock files.
  4. Troubleshooting New Page Creation in Editorial Workflow:

    • The team discussed a bug where new pages created in editorial workflow sometimes result in 404 errors until the page is fully indexed. Jeff explained how fallback blocking and draft modes can help mitigate this issue but acknowledged that TinaCMS’s current setup for editorial workflow could use further refinement for a smoother experience.
  5. Rich Text Formatting and Plugin Development:

    • Jeff briefly mentioned efforts to address issues with formatting in rich text fields, specifically focusing on integrating plugins in TinaCMS’s Plate editor. They plan to address formatting bugs by working directly within Plate rather than using workarounds.

This meeting emphasized improving TinaCMS’s handling of images, schema migration, and editorial workflows, along with providing technical insights into the lock file and troubleshooting steps for a better developer experience.

On this page