Transform authored prop values for pages to server side format before push
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3582632. --> Reported by: [wotnak](https://www.drupal.org/user/3558113) Related to !839 >>> <h3 id="overview">Overview</h3> <p><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3575874" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3575874</a></span> added ability to pull/push canvas pages using CLI. After pulling, pages are stored as json-render compatible specs in json files. Canvas stores some prop type values on the backend in a different format from what is used as a prop value when rendering a component. On the json-render side, we need to store resolved prop values (<span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3577654" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3577654</a></span>) so that we can take advantage of the json-render tooling around validation and working with coding agents.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <ul> <li>store inputs_resolved instead of raw inputs for pulled pages so they can be easily modified and rendered locally</li> <li>add transformation layer to convert authored (resolved) prop values back to the server side format before push</li> <li>check what prop types need the transforms and implement them <ul> <li>image/media props will be handled separately in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3578452" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3578452</a></span></li> </ul> </li> </ul> <h3 id="ui-changes">User interface changes</h3> <p>n/a</p> > Related issue: [Issue #3575872](https://www.drupal.org/node/3575872)
issue