Skip to content

feat: Implement conference website skill with Content Fragment support and Universal Editor integration#9

Merged
tusharmane-tm merged 1 commit intomainfrom
qa
Feb 6, 2026
Merged

feat: Implement conference website skill with Content Fragment support and Universal Editor integration#9
tusharmane-tm merged 1 commit intomainfrom
qa

Conversation

@tusharmane-tm
Copy link
Contributor

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):

Fix #

Test URLs:

@aem-code-sync
Copy link

aem-code-sync bot commented Feb 6, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@gemini-code-assist
Copy link

Summary of Changes

Hello @tusharmane-tm, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive implementation of a conference website solution, enhancing content management flexibility and authoring experience. It integrates Content Fragment support into key blocks like speakers, sessions, and sponsors, allowing for dynamic content sourcing. Furthermore, it establishes robust Universal Editor integration with dedicated models, streamlining the content authoring workflow for these components.

Highlights

  • Content Fragment Support: Core blocks (speakers, sessions, sponsors) now support both table-based and Content Fragment-based content, including data-fragment-path attribute and proper fallback logic for fragment loading.
  • Universal Editor Integration: A dedicated speaker model (/ue/models/blocks/_speaker.json) has been created, and the section model (/ue/models/_section.json) updated, to enable Universal Editor authoring for speaker components, utilizing the core/franklin/components/block/v1/block resourceType and a text field for fragmentPath.
  • Technical Improvements: All JavaScript and CSS linting errors have been resolved, function definition order issues fixed, CSS shorthand properties optimized, and modern color function notation adopted, all while maintaining full backward compatibility.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • skills/conference-website-implementation.md
    • Added new documentation detailing the complete implementation of a conference website skill, including Content Fragment support and Universal Editor integration for speakers, sessions, and sponsors blocks.
  • ue/models/blocks/_speaker.json
    • New Universal Editor model for speaker components, created by renaming ue/models/speaker.json.
  • ue/models/speaker.json
    • Renamed to ue/models/blocks/_speaker.json as part of the Universal Editor model restructuring.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@tusharmane-tm tusharmane-tm merged commit a177ef9 into main Feb 6, 2026
1 of 2 checks passed
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds comprehensive documentation for the new conference website skill, including Content Fragment support and Universal Editor integration. The documentation is well-structured, but I've found a few issues. There are incorrect file paths for the speaker model that need updating. More importantly, I've identified a critical bug in the fragment loading fallback logic that would cause a runtime error, and a high-severity issue with how speaker bios are rendered, which would strip any HTML formatting. I've also noted an opportunity for a minor code quality improvement.

### 1. Content Fragment Support
- Updated all core blocks (speakers, sessions, sponsors) to support both table-based and Content Fragment-based content
- Implemented `data-fragment-path` attribute support
- Added fragment loading functionality with proper fallback behavior

Choose a reason for hiding this comment

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

critical

The implementation of the fallback behavior described here is broken. In blocks/speakers/speakers.js, the loadSpeakersFromFragment function's catch block calls processTableBasedSpeakers(null, container). This will cause a TypeError as processTableBasedSpeakers expects a block element, not null. To fix this, the original block should be passed through to be used in the fallback. This bug contradicts the claims of having a "proper fallback behavior", "Full backward compatibility maintained" (line 58), and being a "Production-ready implementation" (line 62).

## Implementation Details

### Speaker Block
- Updated to handle JSON structure with `image_ext`, `title`, `jobTitle`, `companyName`, `description`

Choose a reason for hiding this comment

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

high

The handling of the description field from the JSON structure appears incorrect. In createSpeakerCardFromFragment (blocks/speakers/speakers.js), the description.html property is assigned to an element's textContent. This will strip out any HTML formatting from the speaker's bio. If the description is intended to support rich text, innerHTML should be used instead. Given the property is named .html, it's likely that HTML content is expected.

- Updated all core blocks (speakers, sessions, sponsors) to support both table-based and Content Fragment-based content
- Implemented `data-fragment-path` attribute support
- Added fragment loading functionality with proper fallback behavior
- Structured code to handle both fragment and table-based content seamlessly

Choose a reason for hiding this comment

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

medium

While the code handles both content types, there's an opportunity to improve the code structure in createSpeakerCardFromFragment within blocks/speakers/speakers.js. The logic for creating a speaker photo is duplicated for image_ext and image. This can be refactored to be more DRY (Don't Repeat Yourself) by checking for either property first and then creating the element, which would make the code cleaner and more maintainable.

- Structured code to handle both fragment and table-based content seamlessly

### 2. Universal Editor Integration
- Created speaker model (`/ue/models/speaker.json`) for Universal Editor authoring

Choose a reason for hiding this comment

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

medium

The file path for the speaker model is outdated. Based on the file changes in this pull request, it was renamed to /ue/models/blocks/_speaker.json. Please update this path for accuracy.

Suggested change
- Created speaker model (`/ue/models/speaker.json`) for Universal Editor authoring
- Created speaker model (`/ue/models/blocks/_speaker.json`) for Universal Editor authoring

- No console.log statements remaining

## Files Modified
- `/ue/models/speaker.json` - Created speaker model for Universal Editor

Choose a reason for hiding this comment

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

medium

This file path for the speaker model is incorrect due to a file rename in this PR. Please update it to /ue/models/blocks/_speaker.json.

Suggested change
- `/ue/models/speaker.json` - Created speaker model for Universal Editor
- `/ue/models/blocks/_speaker.json` - Created speaker model for Universal Editor

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.

1 participant