Skip to content

Conversation

@mgoudy91
Copy link
Contributor

Requested here https://contentful.slack.com/archives/C07T0NJ3D98/p1763716062687039

Change summary

  • Add enabledFeatures parameter to installation configuration
  • Create FeatureSelectionSection component for config page
  • Filter sidebar buttons to show only enabled features
  • Add validation in Dialog to prevent access to disabled features
  • Ensure backward compatibility (defaults to all features if not configured)
image image image

- Add enabledFeatures parameter to installation configuration
- Create FeatureSelectionSection component for config page
- Filter sidebar buttons to show only enabled features
- Add validation in Dialog to prevent access to disabled features
- Ensure backward compatibility (defaults to all features if not configured)
@mgoudy91 mgoudy91 requested a review from a team as a code owner November 21, 2025 19:41
@mgoudy91 mgoudy91 changed the title Add feature selection capability to Bedrock Content Generator feat: Add feature selection capability to Bedrock Content Generator [] Nov 21, 2025
@mgoudy91 mgoudy91 requested a review from Copilot November 21, 2025 19:42
Copy link
Contributor

Copilot AI left a comment

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 feature selection capability to the Bedrock Content Generator app, allowing administrators to configure which AI features are available to users. The implementation ensures backward compatibility by defaulting to all features when not configured.

Key Changes

  • Added enabledFeatures parameter to installation configuration with validation
  • Created UI component for feature selection in the configuration page
  • Implemented feature filtering in sidebar and dialog locations

Reviewed changes

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

Show a summary per file
File Description
appInstallationParameters.ts Added optional enabledFeatures field to installation parameters
parameterReducer.ts Added reducer action and logic for updating enabled features
FeatureSelectionSection.tsx New component providing checkbox UI for feature selection
configText.ts Added text constants for feature selection section
ConfigPage.tsx Integrated feature selection section into config page
useSidebarParameters.ts Added logic to retrieve and default enabled features
SidebarButtons.tsx Updated to filter buttons based on enabled features
Dialog.tsx Added validation to prevent access to disabled features

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@sam-is-content sam-is-content left a comment

Choose a reason for hiding this comment

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

works well!

* This hook is used to get the installation parameters from the sidebar location,
* checks to see if there is a brand profile, validates the API Key and returns any errors
*
* @returns {hasBrandProfile, apiError}
Copy link
Contributor

@sam-is-content sam-is-content Nov 21, 2025

Choose a reason for hiding this comment

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

so this hook didn't actually return an apiError to begin with?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i guess not. looking at it, it's pretty clear. I removed this to get rid of a lint warning

@mgoudy91 mgoudy91 merged commit 2a3ffef into master Nov 21, 2025
14 checks passed
@mgoudy91 mgoudy91 deleted the bedrock-feature-selection branch November 21, 2025 21:10
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.

3 participants