Add integration notes field to sections to display info when using in… - #4
Merged
javihgil merged 2 commits intoOct 15, 2025
Merged
Conversation
There was a problem hiding this comment.
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
notesfield 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.
javihgil
deleted the
add-integration-notes-to-sections-to-show-info-in-module
branch
October 15, 2025 16:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… modules