Tinacms Developer Docs

19 September 2024

This meeting primarily covers various technical discussions and troubleshooting related to TinaCMS's development, focusing on custom components, integration with other tools, and configuration. Here’s a summary of the main points discussed:

🤖🤖

  1. Old Package Removal:

    • The team discussed removing deprecated packages like @tinacms/graphql-old, data-layer-old, and AirTable-related code from the TinaCMS codebase, verifying that these components were no longer in use.
  2. Gatsby Integration:

    • Jeff explained the challenges of using TinaCMS with Gatsby, highlighting compatibility issues due to differences in how data is fetched and rendered at runtime. He suggested that migrating to Next.js might provide a smoother experience for those needing visual editing, as TinaCMS’s real-time editing relies on runtime data fetching and GraphQL API support, which Next.js accommodates better than Gatsby.
  3. Table Support in Rich Text Editor:

    • The team addressed issues with adding tables in TinaCMS’s rich text editor using Plate’s plugins. They examined how the rich text state translates to markdown, noting discrepancies in serialization and rendering. Jeff demonstrated how to configure tests to ensure that the shape of embedded tables matches between the editor and markdown outputs.
  4. Mermaid Integration for Diagrams:

    • Jack discussed integrating Mermaid for rendering diagrams in markdown. The integration involved custom handling of Mermaid blocks as code elements within markdown, though there were challenges in ensuring compatibility with the Tina Markdown renderer.
  5. Code Quality and Linting Issues:

    • The team encountered code quality errors during pull request reviews, some of which involved outdated or legacy code not directly modified in the PR. They discussed approaches to clean up these errors for improved consistency.
  6. Testing and Debugging:

    • Jeff highlighted the importance of structured testing within TinaCMS, particularly when working with custom components and parsing logic. Tests for custom structures in markdown (e.g., tables) were explored as a means of validating parsing and serialization.

The session focused on refining TinaCMS’s functionality, especially with custom embeds, Gatsby integration limitations, and ensuring reliable markdown parsing for features like tables and diagrams.

On this page