Skip to content

Commit b81437d

Browse files
SchimuneckMatias Schimuneck
andauthored
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

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 changed

.github/workflows/llama-stack-modular-ui-bff-build.yml renamed to .github/workflows/gen-ai-bff-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: 'Llama Stack Modular UI - BFF - Build'
1+
name: 'Gen AI - BFF - Build'
22
on:
33
push:
44
paths:
5-
- 'frontend/packages/llama-stack-modular-ui/**'
5+
- 'packages/gen-ai/**'
66
- '!LICENSE*'
77
- '!DOCKERFILE*'
88
- '!**.gitignore'
99
- '!**.md'
1010

1111
pull_request:
1212
paths:
13-
- 'frontend/packages/llama-stack-modular-ui/**'
13+
- 'packages/gen-ai/**'
1414
- '!LICENSE*'
1515
- '!DOCKERFILE*'
1616
- '!**.gitignore'
@@ -27,21 +27,21 @@ jobs:
2727
go-version: '1.24.3'
2828

2929
- name: Run clean
30-
working-directory: frontend/packages/llama-stack-modular-ui/bff
30+
working-directory: packages/gen-ai/bff
3131
run: make clean
3232

3333
- name: Run lint
3434
uses: golangci/golangci-lint-action@v8
3535
with:
3636
version: v2.1.0
37-
working-directory: frontend/packages/llama-stack-modular-ui/bff
37+
working-directory: packages/gen-ai/bff
3838

3939
- name: Run build
40-
working-directory: frontend/packages/llama-stack-modular-ui/bff
40+
working-directory: packages/gen-ai/bff
4141
run: make build
4242

4343
- name: Check if there are uncommitted file changes
44-
working-directory: frontend/packages/llama-stack-modular-ui/bff
44+
working-directory: packages/gen-ai/bff
4545
run: |
4646
clean=$(git status --porcelain)
4747
if [[ -z "$clean" ]]; then

.github/workflows/llama-stack-modular-ui-frontend-build.yml renamed to .github/workflows/gen-ai-frontend-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: 'Llama Stack Modular UI - Frontend - Test and Build'
1+
name: 'Gen AI - Frontend - Test and Build'
22
on:
33
push:
44
paths:
5-
- 'frontend/packages/llama-stack-modular-ui/**'
5+
- 'packages/gen-ai/**'
66
- '!LICENSE*'
77
- '!DOCKERFILE*'
88
- '!**.gitignore'
99
- '!**.md'
1010

1111
pull_request:
1212
paths:
13-
- 'frontend/packages/llama-stack-modular-ui/**'
13+
- 'packages/gen-ai/**'
1414
- '!LICENSE*'
1515
- '!DOCKERFILE*'
1616
- '!**.gitignore'
@@ -27,23 +27,23 @@ jobs:
2727
node-version: '20'
2828

2929
- name: Install dependencies
30-
working-directory: frontend/packages/llama-stack-modular-ui/frontend
30+
working-directory: packages/gen-ai/frontend
3131
run: npm install
3232

3333
- name: Run tests
34-
working-directory: frontend/packages/llama-stack-modular-ui/frontend
34+
working-directory: packages/gen-ai/frontend
3535
run: npm run test:standalone
3636

3737
- name: Run clean
38-
working-directory: frontend/packages/llama-stack-modular-ui/frontend
38+
working-directory: packages/gen-ai/frontend
3939
run: npm run clean
4040

4141
- name: Run build
42-
working-directory: frontend/packages/llama-stack-modular-ui/frontend
42+
working-directory: packages/gen-ai/frontend
4343
run: npm run build:standalone
4444

4545
- name: Check if there are uncommitted file changes
46-
working-directory: frontend/packages/llama-stack-modular-ui/frontend
46+
working-directory: packages/gen-ai/frontend
4747
run: |
4848
clean=$(git status --porcelain)
4949
if [[ -z "$clean" ]]; then

frontend/config/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = smp.wrap(
5353
'**/jest-coverage',
5454
'**/.nyc_output',
5555
'**/upstream',
56-
'**/llama-stack-modular-ui',
56+
'**/gen-ai',
5757
],
5858
},
5959
devServer: {

frontend/packages/llama-stack-modular-ui/bff/internal/constants/api_constants.go

Lines changed: 0 additions & 11 deletions
This file was deleted.

frontend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"public",
1414
"public-cypress",
1515
"src/__tests__/cypress",
16-
"**/packages/llama-stack-modular-ui",
16+
"**/packages/gen-ai",
1717
"**/upstream"
1818
]
1919
}

0 commit comments

Comments
 (0)