Skip to content

Add feature flag for ai assistant#2855

Open
maggie-li-yd wants to merge 7 commits into
developfrom
maggie-li-yd/2851-add-feature-flag-for-ai-assistant
Open

Add feature flag for ai assistant#2855
maggie-li-yd wants to merge 7 commits into
developfrom
maggie-li-yd/2851-add-feature-flag-for-ai-assistant

Conversation

@maggie-li-yd

@maggie-li-yd maggie-li-yd commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator
  1. Add feature flag for AI Assistant in Setup
  2. Add a temporary placeholder button for AI assistant in the researcher portal.
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.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

@maggie-li-yd maggie-li-yd linked an issue Jul 6, 2026 that may be closed by this pull request
@maggie-li-yd maggie-li-yd marked this pull request as ready for review July 6, 2026 05:54
Copilot AI review requested due to automatic review settings July 6, 2026 05:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 AiAssistantButton component 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).

Comment thread plugins/ui/apps/portal/src/components/AiAssistant/AiAssistantButton.tsx Outdated
{!isHome && <Header portalType="researcher" plugins={sortedPlugins} />}
<main>
<FeedbackToast />
<AiAssistantButton />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is <FeatureGate component too if you want to use it

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.

Add feature flag for AI assistant

3 participants