Skip to content

Add integration notes field to sections to display info when using in… - #4

Merged
javihgil merged 2 commits into
5.5from
add-integration-notes-to-sections-to-show-info-in-module
Oct 15, 2025
Merged

Add integration notes field to sections to display info when using in…#4
javihgil merged 2 commits into
5.5from
add-integration-notes-to-sections-to-show-info-in-module

Conversation

@javihgil

Copy link
Copy Markdown
Member

… modules

Copilot AI review requested due to automatic review settings October 15, 2025 16:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an integration notes field to sections that allows administrators to add internal documentation when configuring sections for use in content modules. The notes field supports HTML content and is displayed in the admin interface when integrating sections into content.

  • Adds a nullable notes field to the Section model with corresponding database migration
  • Implements form fields in both create and update forms for section administration
  • Integrates notes display in the content editing interface with JavaScript functionality

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
translations/sfs_cms_admin.es.yaml Adds Spanish translations for the integration notes field
translations/sfs_cms_admin.en.yaml Adds English translations for the integration notes field
src/Model/SectionInterface.php Adds interface methods for getting and setting notes
src/Model/Section.php Implements notes property and accessor methods
src/Migrations/Version20251015150528.php Database migration to add notes column to cms_section table
src/Form/Type/SectionType.php Updates form type to include notes data attributes and view variables
src/Form/Admin/Section/SectionUpdateForm.php Adds notes textarea field to section update form
src/Form/Admin/Section/SectionCreateForm.php Adds notes textarea field to section create form
config/doctrine-mapping/model/Section.orm.xml Adds Doctrine mapping for the notes field
cms/modules/section/form.html.twig Adds UI element to display section notes in content editing
assets/scripts/admin/content-edit/preview-section.js Implements JavaScript functionality to show/hide notes dynamically

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread assets/scripts/admin/content-edit/preview-section.js
Comment thread assets/scripts/admin/content-edit/preview-section.js
@javihgil
javihgil merged commit bad171e into 5.5 Oct 15, 2025
3 checks passed
@javihgil
javihgil deleted the add-integration-notes-to-sections-to-show-info-in-module branch October 15, 2025 16:36
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.

2 participants