Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

Description

The sidebar video field was visible when creating new rules, but only makes sense during editing. Applied ConditionalHiddenField component to hide it in create mode.

Changed:

  • /tina/collection/rule.tsx - Added ui: { component: ConditionalHiddenField } to sidebarVideo field

This follows the existing pattern used for other edit-only fields like categories, authors, and related rules.

Screenshot (optional)

✏️

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Sidebar Video - Hide on Create Form</issue_title>
<issue_description>Requested by: @jakebayliss via YakShaver.ai 🦬
cc: @jakebayliss, @GordonBeeming, @Marxoz, @PothieuG, @Freego1783

Hi Team!

  🟥  Watch the video (48 sec)

  Url from screen share: https://www.ssw.com.au/rules/admin/index.html#/collections/new/rule/-/

Pain

Hide the sidebar video on the create form in the Rules V3 (TinaCMS) website as it is not needed and should be hidden like other fields.

Acceptance Criteria

  1. The sidebar video should not be visible when adding a new rule on the Rules V3 (TinaCMS) website.
  2. All other fields that are purposefully hidden should remain hidden.
  3. The functionality of adding a new rule should not be affected by hiding the sidebar video.

Screenshot

Screenshot
Figure: Hide additional field on create form</issue_description>

<agent_instructions>There is a conditional hidden field component. We should use that for this so it doesnt show up in the create mode and only the edit mode</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Hide sidebar video on create form in Rules V3 Hide sidebar video field on create form Dec 20, 2025
Copilot AI requested a review from jakebayliss December 20, 2025 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Sidebar Video - Hide on Create Form

2 participants