feat: Global GenAI context panel (v0) — AWSUI-52880 [WIP]#4822
Draft
ernst-dev wants to merge 1 commit into
Draft
feat: Global GenAI context panel (v0) — AWSUI-52880 [WIP]#4822ernst-dev wants to merge 1 commit into
ernst-dev wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4822 +/- ##
==========================================
- Coverage 97.61% 97.60% -0.01%
==========================================
Files 952 953 +1
Lines 30816 30857 +41
Branches 11318 11345 +27
==========================================
+ Hits 30081 30119 +38
- Misses 688 691 +3
Partials 47 47 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Description
[WIP / v0] First cut of a reusable Global GenAI context panel — a drawer surface for a generative-AI assistant's context (system prompt, active model, and files currently in scope), designed to drop into
AppLayoutdrawers. Tracks AWSUI-52880.This is intentionally additive and opt-in and is not part of the public package API yet. It lives as an internal composition (
src/internal/components/genai-context-panel) built entirely from existing Cloudscape primitives (PromptInput,Select,FormField,FileTokenGroup,Header,Box,SpaceBetween), plus acreateGenaiContextPanelDrawer()helper that returns a ready-to-useAppLayoutProps.Drawer.Done in this v0
GenaiContextPanelinternal component: system prompt editor, optional model selector, dismissible context-file list with empty state, fulli18nStrings.createGenaiContextPanelDrawer()helper producing anAppLayoutProps.Drawer(gen-aitrigger icon, resizable, badge support).pages/app-layout/genai-context-panel.page.tsxdemonstrating end-to-end integration withAppLayoutdrawers.quick-build(types),eslint ., and unit tests all green.Remaining (follow-ups, out of scope for v0)
src/genai-context-panelfolder,interfacesdocs, documenter snapshot, test-utils, i18n messages/JSON,index.tsexport) once the API is agreed.How has this been tested?
npm run quick-build— passes (TypeScript compiles clean).npx jest -c jest.unit.config.js genai-context-panel— 7/7 pass.npx eslint .— 0 errors (only pre-existing warnings in unrelated files).app-layout/genai-context-panelrenders the panel in an AppLayout drawer; editing prompt / selecting model / removing files updates state live.Related links, issue #, if available: AWSUI-52880
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.