Commit b81437d
Move and rename llamastack-modular-ui to gen-ai (opendatahub-io#4782)
* Move and rename llamastack-modular-ui to gen-ai
- Move frontend/packages/llama-stack-modular-ui to packages/gen-ai
- Rename all references from llama-stack-modular-ui to gen-ai
- Update package names, configurations, and documentation
- Fix routing: remove unwanted direct /api/v1/* route registration
- Fix middleware: support both direct and prefixed API paths for identity injection
- Update workflow files for gen-ai package structure
* Fix failing test and update package-lock.json after gen-ai migration
- Fix TestIsAPIRoute: trailing slash paths should return false to match isAPIRoute behavior
- Update package-lock.json after npm install reorganizes package entries
- All tests now pass for gen-ai package structure
* Fix plugin discovery: add missing extensions export for gen-ai package
- Add 'exports' field with './extensions' pointing to frontend/src/odh/extensions.ts
- This allows frontend plugin discovery system to find gen-ai after migration
- Resolves frontend build issues that were causing Cypress test failures
* Fix import paths in LlamaStackWrapper after gen-ai migration
- Change imports from main frontend aliases (~app/) to relative imports within gen-ai package
- Fix 'mod-arch-core', AppRoutes, and URL_PREFIX import resolution issues
- Resolves webpack build errors that were causing Cypress test failures
* Fix gen-ai extensions following established plugin patterns
- Rename plugin from 'llama-stack-plugin' to 'plugin-gen-ai'
- Use existing SupportedArea.LLAMA_STACK_CHAT_BOT for proper area integration
- Remove complex route extension that caused webpack build errors
- Move extensions.ts to package root following other packages' structure
- Update module federation config to expose extensions from correct path
- Add @odh-dashboard/internal dependency for SupportedArea types
- Simplified navigation-only extensions work with module federation remote
* Simplify gen-ai extensions for standalone module federation
- Remove SupportedArea import that caused build conflicts in standalone context
- Remove @odh-dashboard/internal dependency not needed for module federation remote
- Keep minimal extension structure: area definition and navigation href only
- Both main frontend and gen-ai standalone builds now work successfully
- Gen-ai operates as intended module federation remote without dependency conflicts
* Fix gen-ai TypeScript build configuration
- Move extensions.ts back to frontend/src/odh/ directory for proper TypeScript compilation
- Update package.json export path and module federation config accordingly
- Resolve TS6053 tsconfig not found errors in gen-ai standalone build
- Both main frontend and gen-ai builds now work successfully
- Only normal CSS ordering warnings remain (non-critical)
* Refactor LlamaStack wrapper to GenAi wrapper in packages/gen-ai
- Replace LlamaStackWrapper.tsx with GenAiWrapper.tsx
- Update extensions.ts to use new wrapper
- Update package.json dependencies
- Update package-lock.json
* Update Gen AI package routing and configuration
- Refactor app.go routing to use constants.ApiPathPrefix while preserving static file serving
- Restore SPA routing logic with proper fallback to index.html
- Update webpack dev configuration
- Modify llamaStackService and package dependencies
- Update Makefile build configuration
---------
Co-authored-by: Matias Schimuneck <schimuenck.matias@gmail.com>1 parent 33a1d8e commit b81437d
File tree
179 files changed
+8348
-3736
lines changed- .github/workflows
- frontend
- config
- packages/llama-stack-modular-ui/bff/internal/constants
- packages/gen-ai
- bff
- cmd
- internal
- api
- config
- constants
- helpers
- integrations
- kubernetes
- k8smocks
- llamastack
- lsmocks
- models
- repositories
- openapi/src
- lib
- static
- sub
- docs
- adr
- frontend
- config
- src
- __mocks__
- __tests__
- cypress
- fixtures
- support
- commands
- tests/e2e
- unit
- testUtils
- app
- Chatbot
- components
- alerts
- hooks
- __tests__
- sourceUpload
- NotFound
- bgimages
- hooks
- services
- standalone
- utilities
- odh
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
179 files changed
+8348
-3736
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 0 additions & 11 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
0 commit comments