Add feature flag for ai assistant#2855
Open
maggie-li-yd wants to merge 7 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Introduces a new aiAssistant feature flag to the portal, along with initial UI scaffolding (a floating button) gated by that flag and translated feature naming across supported locales.
Changes:
- Added a new non-plugin feature flag (
aiAssistant) to the portal feature service metadata (default disabled). - Added an
AiAssistantButtoncomponent and rendered it in the Researcher shell when the flag is enabled. - Added i18n keys/translations for the “AI Assistant” feature label (default + de/zh).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/ui/apps/portal/src/contexts/app-context/states/translation-state.ts | Adds default-locale i18n key for the AI Assistant feature label. |
| plugins/ui/apps/portal/src/containers/researcher/Researcher.tsx | Mounts the AI assistant entry-point button in the Researcher layout. |
| plugins/ui/apps/portal/src/components/AiAssistant/AiAssistantButton.tsx | New feature-gated UI button component for the AI assistant entry point. |
| plugins/ui/apps/portal/src/components/AiAssistant/AiAssistantButton.scss | Styles the button as a fixed-position floating action entry. |
| plugins/ui/apps/portal/public/translations/zh.json | Adds zh translation for the AI Assistant feature label. |
| plugins/ui/apps/portal/public/translations/de.json | Adds de translation for the AI Assistant feature label. |
| plugins/functions/portal/src/feature/feature.service.ts | Registers the aiAssistant flag as a non-plugin feature (default disabled). |
suwarnoong
reviewed
Jul 6, 2026
| {!isHome && <Header portalType="researcher" plugins={sortedPlugins} />} | ||
| <main> | ||
| <FeedbackToast /> | ||
| <AiAssistantButton /> |
Collaborator
There was a problem hiding this comment.
There is <FeatureGate component too if you want to use it
suwarnoong
approved these changes
Jul 7, 2026
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.
Screen.Recording.2026-07-06.at.2.02.35.PM.mov
Merge Checklist
Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.
developbranch)