Conversation
[For example, we might want to provide a few built-in UI components (e.g. table, accordion, side-by-side comparison, etc.) that checks results can populate. For example, a translations check might want to output a table, a typo check might want to output a list (with each item linking to a field), Lighthouse or AI-assisted check might want to add a screenshot, etc.)]
(I would say point 2 is more important than 1 right now) |
realistically we're the only users of this for now so i think it's fine exposing this api and even changing it later. i can add a docstring that says we're still iterating on the final api/interface for the checks configuration if that eases your concerns. do you have suggestions on how to add those more rich types of components? i personally would be fine with just enabling markdown and having the plugin provide a landing page for the more detailed error mesages.
any suggestions? e.g. |
I can't think of a scenario now where it would make sense to have something apply to all collections but be disabled in specific ones, so maybe we just go with |
|
done |
| * collection schema. Walks the field tree and collects strings from fields | ||
| * that have `translate: true`. | ||
| */ | ||
| function extractTranslatableStrings( |
There was a problem hiding this comment.
no action needed here just noting we really need to extract the extract function into a shared file so that all our callsites can use it. i think the one in our internal localizer plugin is currently the most comprehensive so i'll take an AI at adding that in a PR for us
screenshots:
fixes #722