diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 4f7e2d8d..cc3a5728 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -3,7 +3,7 @@ name: Reusable backend workflow on: [workflow_call] jobs: - build-frontend: + build-skore-ui: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -11,22 +11,22 @@ jobs: with: node-version: '20' cache: 'npm' - cache-dependency-path: frontend/package-lock.json + cache-dependency-path: skore-ui/package-lock.json - shell: bash run: | - cd frontend + cd skore-ui npm install npm run build npm run build:lib -- --emptyOutDir false - uses: actions/upload-artifact@v4 with: - name: frontend-package-distributions - path: frontend/dist + name: skore-ui-package-distributions + path: skore-ui/dist test-backend: runs-on: ubuntu-latest - needs: build-frontend + needs: build-skore-ui strategy: fail-fast: true matrix: @@ -48,7 +48,7 @@ jobs: - name: Download package distributions uses: actions/download-artifact@v4 with: - name: frontend-package-distributions + name: skore-ui-package-distributions path: src/skore/ui/static - name: Build @@ -72,4 +72,4 @@ jobs: steps: - uses: geekyeggo/delete-artifact@v5 with: - name: frontend-package-distributions + name: skore-ui-package-distributions diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 195c653f..067cefcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest outputs: backend: ${{ steps.filter.outputs.backend }} - frontend: ${{ steps.filter.outputs.frontend }} + skore-ui: ${{ steps.filter.outputs.skore-ui }} permissions: pull-requests: read steps: @@ -21,9 +21,9 @@ jobs: - 'pyproject.toml' - 'requirements*.txt' - '.github/workflows/backend.yml' - frontend: - - 'frontend/**' - - '.github/workflows/frontend.yml' + skore-ui: + - 'skore-ui/**' + - '.github/workflows/skore-ui.yml' lint-all-files: uses: ./.github/workflows/lint.yml @@ -37,10 +37,10 @@ jobs: permissions: contents: read - lint-and-test-frontend: + lint-and-test-skore-ui: needs: [lint-all-files, changes] - if: ${{ needs.changes.outputs.frontend == 'true' }} - uses: ./.github/workflows/frontend.yml + if: ${{ needs.changes.outputs.skore-ui == 'true' }} + uses: ./.github/workflows/skore-ui.yml permissions: contents: read pull-requests: write @@ -49,7 +49,7 @@ jobs: needs: - lint-all-files - lint-and-test-backend - - lint-and-test-frontend + - lint-and-test-skore-ui if: ${{ always() }} runs-on: Ubuntu-latest steps: diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index ad3874c9..a6b0f081 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -1,9 +1,9 @@ -name: Reusable frontend workflow +name: Reusable skore-ui workflow on: [workflow_call] jobs: - lint-frontend: + lint-skore-ui: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -11,10 +11,10 @@ jobs: with: node-version: '20' cache: 'npm' - cache-dependency-path: frontend/package-lock.json - - name: Lint frontend + cache-dependency-path: skore-ui/package-lock.json + - name: Lint skore-ui run: | - cd frontend + cd skore-ui npm install npm run type-check @@ -22,19 +22,19 @@ jobs: npm run format npm run style-lint - test-frontend: + test-skore-ui: runs-on: ubuntu-latest - needs: lint-frontend + needs: lint-skore-ui steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - cache-dependency-path: frontend/package-lock.json - - name: Test frontend + cache-dependency-path: skore-ui/package-lock.json + - name: Test skore-ui run: | - cd frontend + cd skore-ui npm install npm run test:unit:coverage @@ -42,23 +42,23 @@ jobs: if: always() uses: davelosert/vitest-coverage-report-action@v2 with: - working-directory: ./frontend + working-directory: ./skore-ui pr-number: ${{ github.event.number }} - build-frontend: + build-skore-ui: runs-on: ubuntu-latest - needs: test-frontend + needs: test-skore-ui steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - cache-dependency-path: frontend/package-lock.json - - name: Build frontend + cache-dependency-path: skore-ui/package-lock.json + - name: Build skore-ui shell: bash run: | - cd frontend + cd skore-ui npm install npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82c83d04..b00e36e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,9 @@ jobs: with: node-version: 20 - - name: Build frontend and share library + - name: Build skore-ui and share library shell: bash - run: make build-frontend + run: make build-skore-ui - name: Override VERSION.txt with tag run: echo "${GITHUB_REF_NAME}" > VERSION.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d515152..f8a68af2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,23 +28,23 @@ repos: hooks: - id: tsc language: node - name: Use vue-tsc to typecheck frontend code. - entry: bash -c "cd frontend && npm run type-check" - files: ^frontend/ + name: Use vue-tsc to typecheck skore-ui code. + entry: bash -c "cd skore-ui && npm run type-check" + files: ^skore-ui/ - id: eslint language: node - name: Use eslint to lint frontend code. - entry: bash -c "cd frontend && npm run lint" - files: ^frontend/ + name: Use eslint to lint skore-ui code. + entry: bash -c "cd skore-ui && npm run lint" + files: ^skore-ui/ - id: prettier language: node - name: Use prettier to format frontend code. - entry: bash -c "cd frontend && npm run format" - files: ^frontend/ + name: Use prettier to format skore-ui code. + entry: bash -c "cd skore-ui && npm run format" + files: ^skore-ui/ - id: stylelint language: node name: Use stylelint to lint CSS. - entry: bash -c "cd frontend && npm run style-lint" - files: ^frontend/ + entry: bash -c "cd skore-ui && npm run style-lint" + files: ^skore-ui/ exclude: fixtures/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ce59613..bfd8a38b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,10 +10,10 @@ Bug reports are welcome, especially those reported with [short, self-contained, ### Quick start -You'll need Python>=3.12 to build the backend and Node>=20 to build the frontend. Then, you can install dependencies and run the UI with: +You'll need Python>=3.12 to build the backend and Node>=20 to build the skore-ui. Then, you can install dependencies and run the UI with: ```sh make install -make build-frontend +make build-skore-ui make serve-ui ``` @@ -37,24 +37,24 @@ When dependencies are changed in `pyproject.toml` the lockfiles should be update make pip-compile ``` -### Frontend +### skore-ui -Install frontend dependencies with +Install skore-ui dependencies with ```sh npm install ``` -in the `frontend` directory. +in the `skore-ui` directory. -Run the frontend in dev mode (for hot-reloading) with +Run the skore-ui in dev mode (for hot-reloading) with ```sh npm run dev ``` -in the `frontend` directory +in the `skore-ui` directory -Then, to use the frontend +Then, to use the skore-ui ```sh -make build-frontend +make build-skore-ui make serve-ui ``` @@ -91,6 +91,6 @@ When writing documentation, whether it be online, docstrings or help messages in ## Help for common issues -### `make build-frontend` doesn't work! +### `make build-skore-ui` doesn't work! Please check that your version of node is at least 20 using the following command: `node -v` diff --git a/Makefile b/Makefile index cb63349f..3774e50d 100644 --- a/Makefile +++ b/Makefile @@ -33,16 +33,16 @@ serve-ui: --port 22140 \ --timeout-graceful-shutdown 0 -build-frontend: +build-skore-ui: # cleanup - rm -rf frontend/dist + rm -rf skore-ui/dist rm -rf src/skore/ui/static # build (\ - cd frontend;\ + cd skore-ui;\ npm install;\ npm run build;\ npm run build:lib -- --emptyOutDir false;\ ) # move - mv frontend/dist/ src/skore/ui/static + mv skore-ui/dist/ src/skore/ui/static diff --git a/README.md b/README.md index 10d6fa6b..8e12397a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![lint](https://github.com/probabl-ai/skore/actions/workflows/lint.yml/badge.svg) ![tests](https://github.com/probabl-ai/skore/actions/workflows/backend.yml/badge.svg) -![UI tests](https://github.com/probabl-ai/skore/actions/workflows/frontend.yml/badge.svg) +![UI tests](https://github.com/probabl-ai/skore/actions/workflows/skore-ui.yml/badge.svg) ## Installation diff --git a/frontend/.eslintrc.cjs b/skore-ui/.eslintrc.cjs similarity index 100% rename from frontend/.eslintrc.cjs rename to skore-ui/.eslintrc.cjs diff --git a/frontend/.gitignore b/skore-ui/.gitignore similarity index 100% rename from frontend/.gitignore rename to skore-ui/.gitignore diff --git a/frontend/.prettierrc.json b/skore-ui/.prettierrc.json similarity index 100% rename from frontend/.prettierrc.json rename to skore-ui/.prettierrc.json diff --git a/frontend/.stylelintrc.json b/skore-ui/.stylelintrc.json similarity index 100% rename from frontend/.stylelintrc.json rename to skore-ui/.stylelintrc.json diff --git a/frontend/README.md b/skore-ui/README.md similarity index 100% rename from frontend/README.md rename to skore-ui/README.md diff --git a/frontend/index.html b/skore-ui/index.html similarity index 100% rename from frontend/index.html rename to skore-ui/index.html diff --git a/frontend/package-lock.json b/skore-ui/package-lock.json similarity index 99% rename from frontend/package-lock.json rename to skore-ui/package-lock.json index 1c54bd58..e07d2666 100644 --- a/frontend/package-lock.json +++ b/skore-ui/package-lock.json @@ -1,11 +1,11 @@ { - "name": "skore-frontend", + "name": "skore-ui", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "skore-frontend", + "name": "skore-ui", "version": "0.0.0", "dependencies": { "@floating-ui/vue": "^1.1.5", diff --git a/frontend/package.json b/skore-ui/package.json similarity index 98% rename from frontend/package.json rename to skore-ui/package.json index eb6410ea..9e258202 100644 --- a/frontend/package.json +++ b/skore-ui/package.json @@ -1,5 +1,5 @@ { - "name": "skore-frontend", + "name": "skore-ui", "version": "0.0.0", "private": true, "type": "module", diff --git a/frontend/public/apple-touch-icon.png b/skore-ui/public/apple-touch-icon.png similarity index 100% rename from frontend/public/apple-touch-icon.png rename to skore-ui/public/apple-touch-icon.png diff --git a/frontend/public/favicon.ico b/skore-ui/public/favicon.ico similarity index 100% rename from frontend/public/favicon.ico rename to skore-ui/public/favicon.ico diff --git a/frontend/public/favicon.svg b/skore-ui/public/favicon.svg similarity index 100% rename from frontend/public/favicon.svg rename to skore-ui/public/favicon.svg diff --git a/frontend/src/App.vue b/skore-ui/src/App.vue similarity index 100% rename from frontend/src/App.vue rename to skore-ui/src/App.vue diff --git a/frontend/src/ShareApp.vue b/skore-ui/src/ShareApp.vue similarity index 100% rename from frontend/src/ShareApp.vue rename to skore-ui/src/ShareApp.vue diff --git a/frontend/src/assets/fixtures/datatable.json b/skore-ui/src/assets/fixtures/datatable.json similarity index 100% rename from frontend/src/assets/fixtures/datatable.json rename to skore-ui/src/assets/fixtures/datatable.json diff --git a/frontend/src/assets/fixtures/markdown.md b/skore-ui/src/assets/fixtures/markdown.md similarity index 100% rename from frontend/src/assets/fixtures/markdown.md rename to skore-ui/src/assets/fixtures/markdown.md diff --git a/frontend/src/assets/fixtures/vega.json b/skore-ui/src/assets/fixtures/vega.json similarity index 100% rename from frontend/src/assets/fixtures/vega.json rename to skore-ui/src/assets/fixtures/vega.json diff --git a/frontend/src/assets/fonts/GeistMonoVF.woff2 b/skore-ui/src/assets/fonts/GeistMonoVF.woff2 similarity index 100% rename from frontend/src/assets/fonts/GeistMonoVF.woff2 rename to skore-ui/src/assets/fonts/GeistMonoVF.woff2 diff --git a/frontend/src/assets/fonts/GeistVF.woff2 b/skore-ui/src/assets/fonts/GeistVF.woff2 similarity index 100% rename from frontend/src/assets/fonts/GeistVF.woff2 rename to skore-ui/src/assets/fonts/GeistVF.woff2 diff --git a/frontend/src/assets/fonts/icomoon.eot b/skore-ui/src/assets/fonts/icomoon.eot similarity index 100% rename from frontend/src/assets/fonts/icomoon.eot rename to skore-ui/src/assets/fonts/icomoon.eot diff --git a/frontend/src/assets/fonts/icomoon.svg b/skore-ui/src/assets/fonts/icomoon.svg similarity index 100% rename from frontend/src/assets/fonts/icomoon.svg rename to skore-ui/src/assets/fonts/icomoon.svg diff --git a/frontend/src/assets/fonts/icomoon.ttf b/skore-ui/src/assets/fonts/icomoon.ttf similarity index 100% rename from frontend/src/assets/fonts/icomoon.ttf rename to skore-ui/src/assets/fonts/icomoon.ttf diff --git a/frontend/src/assets/fonts/icomoon.woff b/skore-ui/src/assets/fonts/icomoon.woff similarity index 100% rename from frontend/src/assets/fonts/icomoon.woff rename to skore-ui/src/assets/fonts/icomoon.woff diff --git a/frontend/src/assets/images/button-background.png b/skore-ui/src/assets/images/button-background.png similarity index 100% rename from frontend/src/assets/images/button-background.png rename to skore-ui/src/assets/images/button-background.png diff --git a/frontend/src/assets/images/editor-placeholder-dark.svg b/skore-ui/src/assets/images/editor-placeholder-dark.svg similarity index 100% rename from frontend/src/assets/images/editor-placeholder-dark.svg rename to skore-ui/src/assets/images/editor-placeholder-dark.svg diff --git a/frontend/src/assets/images/editor-placeholder-light.svg b/skore-ui/src/assets/images/editor-placeholder-light.svg similarity index 100% rename from frontend/src/assets/images/editor-placeholder-light.svg rename to skore-ui/src/assets/images/editor-placeholder-light.svg diff --git a/frontend/src/assets/images/not-found-dark.png b/skore-ui/src/assets/images/not-found-dark.png similarity index 100% rename from frontend/src/assets/images/not-found-dark.png rename to skore-ui/src/assets/images/not-found-dark.png diff --git a/frontend/src/assets/images/not-found-light.png b/skore-ui/src/assets/images/not-found-light.png similarity index 100% rename from frontend/src/assets/images/not-found-light.png rename to skore-ui/src/assets/images/not-found-light.png diff --git a/frontend/src/assets/images/sad-face-dark.svg b/skore-ui/src/assets/images/sad-face-dark.svg similarity index 100% rename from frontend/src/assets/images/sad-face-dark.svg rename to skore-ui/src/assets/images/sad-face-dark.svg diff --git a/frontend/src/assets/images/sad-face-light.svg b/skore-ui/src/assets/images/sad-face-light.svg similarity index 100% rename from frontend/src/assets/images/sad-face-light.svg rename to skore-ui/src/assets/images/sad-face-light.svg diff --git a/frontend/src/assets/styles/_animations.css b/skore-ui/src/assets/styles/_animations.css similarity index 100% rename from frontend/src/assets/styles/_animations.css rename to skore-ui/src/assets/styles/_animations.css diff --git a/frontend/src/assets/styles/_icons.css b/skore-ui/src/assets/styles/_icons.css similarity index 100% rename from frontend/src/assets/styles/_icons.css rename to skore-ui/src/assets/styles/_icons.css diff --git a/frontend/src/assets/styles/_reset.css b/skore-ui/src/assets/styles/_reset.css similarity index 100% rename from frontend/src/assets/styles/_reset.css rename to skore-ui/src/assets/styles/_reset.css diff --git a/frontend/src/assets/styles/_typography.css b/skore-ui/src/assets/styles/_typography.css similarity index 100% rename from frontend/src/assets/styles/_typography.css rename to skore-ui/src/assets/styles/_typography.css diff --git a/frontend/src/assets/styles/_variables.css b/skore-ui/src/assets/styles/_variables.css similarity index 100% rename from frontend/src/assets/styles/_variables.css rename to skore-ui/src/assets/styles/_variables.css diff --git a/frontend/src/assets/styles/main.css b/skore-ui/src/assets/styles/main.css similarity index 100% rename from frontend/src/assets/styles/main.css rename to skore-ui/src/assets/styles/main.css diff --git a/frontend/src/components/CrossValidationResultsWidget.vue b/skore-ui/src/components/CrossValidationResultsWidget.vue similarity index 100% rename from frontend/src/components/CrossValidationResultsWidget.vue rename to skore-ui/src/components/CrossValidationResultsWidget.vue diff --git a/frontend/src/components/DataFrameWidget.vue b/skore-ui/src/components/DataFrameWidget.vue similarity index 100% rename from frontend/src/components/DataFrameWidget.vue rename to skore-ui/src/components/DataFrameWidget.vue diff --git a/frontend/src/components/DropdownButton.vue b/skore-ui/src/components/DropdownButton.vue similarity index 100% rename from frontend/src/components/DropdownButton.vue rename to skore-ui/src/components/DropdownButton.vue diff --git a/frontend/src/components/DropdownButtonItem.vue b/skore-ui/src/components/DropdownButtonItem.vue similarity index 100% rename from frontend/src/components/DropdownButtonItem.vue rename to skore-ui/src/components/DropdownButtonItem.vue diff --git a/frontend/src/components/EditableList.vue b/skore-ui/src/components/EditableList.vue similarity index 100% rename from frontend/src/components/EditableList.vue rename to skore-ui/src/components/EditableList.vue diff --git a/frontend/src/components/EditableListItem.vue b/skore-ui/src/components/EditableListItem.vue similarity index 100% rename from frontend/src/components/EditableListItem.vue rename to skore-ui/src/components/EditableListItem.vue diff --git a/frontend/src/components/HtmlSnippetWidget.vue b/skore-ui/src/components/HtmlSnippetWidget.vue similarity index 100% rename from frontend/src/components/HtmlSnippetWidget.vue rename to skore-ui/src/components/HtmlSnippetWidget.vue diff --git a/frontend/src/components/ImageWidget.vue b/skore-ui/src/components/ImageWidget.vue similarity index 100% rename from frontend/src/components/ImageWidget.vue rename to skore-ui/src/components/ImageWidget.vue diff --git a/frontend/src/components/LoadingBars.vue b/skore-ui/src/components/LoadingBars.vue similarity index 100% rename from frontend/src/components/LoadingBars.vue rename to skore-ui/src/components/LoadingBars.vue diff --git a/frontend/src/components/MarkdownWidget.vue b/skore-ui/src/components/MarkdownWidget.vue similarity index 100% rename from frontend/src/components/MarkdownWidget.vue rename to skore-ui/src/components/MarkdownWidget.vue diff --git a/frontend/src/components/ModalDialog.vue b/skore-ui/src/components/ModalDialog.vue similarity index 100% rename from frontend/src/components/ModalDialog.vue rename to skore-ui/src/components/ModalDialog.vue diff --git a/frontend/src/components/PlotlyWidget.vue b/skore-ui/src/components/PlotlyWidget.vue similarity index 100% rename from frontend/src/components/PlotlyWidget.vue rename to skore-ui/src/components/PlotlyWidget.vue diff --git a/frontend/src/components/ProjectViewCanvas.vue b/skore-ui/src/components/ProjectViewCanvas.vue similarity index 100% rename from frontend/src/components/ProjectViewCanvas.vue rename to skore-ui/src/components/ProjectViewCanvas.vue diff --git a/frontend/src/components/ProjectViewCard.vue b/skore-ui/src/components/ProjectViewCard.vue similarity index 100% rename from frontend/src/components/ProjectViewCard.vue rename to skore-ui/src/components/ProjectViewCard.vue diff --git a/frontend/src/components/SectionHeader.vue b/skore-ui/src/components/SectionHeader.vue similarity index 100% rename from frontend/src/components/SectionHeader.vue rename to skore-ui/src/components/SectionHeader.vue diff --git a/frontend/src/components/SimpleButton.vue b/skore-ui/src/components/SimpleButton.vue similarity index 100% rename from frontend/src/components/SimpleButton.vue rename to skore-ui/src/components/SimpleButton.vue diff --git a/frontend/src/components/TabsWidget.vue b/skore-ui/src/components/TabsWidget.vue similarity index 100% rename from frontend/src/components/TabsWidget.vue rename to skore-ui/src/components/TabsWidget.vue diff --git a/frontend/src/components/TabsWidgetItem.vue b/skore-ui/src/components/TabsWidgetItem.vue similarity index 100% rename from frontend/src/components/TabsWidgetItem.vue rename to skore-ui/src/components/TabsWidgetItem.vue diff --git a/frontend/src/components/TextInput.vue b/skore-ui/src/components/TextInput.vue similarity index 100% rename from frontend/src/components/TextInput.vue rename to skore-ui/src/components/TextInput.vue diff --git a/frontend/src/components/ToastNotification.vue b/skore-ui/src/components/ToastNotification.vue similarity index 100% rename from frontend/src/components/ToastNotification.vue rename to skore-ui/src/components/ToastNotification.vue diff --git a/frontend/src/components/ToastNotificationArea.vue b/skore-ui/src/components/ToastNotificationArea.vue similarity index 100% rename from frontend/src/components/ToastNotificationArea.vue rename to skore-ui/src/components/ToastNotificationArea.vue diff --git a/frontend/src/components/TreeAccordion.vue b/skore-ui/src/components/TreeAccordion.vue similarity index 100% rename from frontend/src/components/TreeAccordion.vue rename to skore-ui/src/components/TreeAccordion.vue diff --git a/frontend/src/components/TreeAccordionItem.vue b/skore-ui/src/components/TreeAccordionItem.vue similarity index 100% rename from frontend/src/components/TreeAccordionItem.vue rename to skore-ui/src/components/TreeAccordionItem.vue diff --git a/frontend/src/components/VegaWidget.vue b/skore-ui/src/components/VegaWidget.vue similarity index 100% rename from frontend/src/components/VegaWidget.vue rename to skore-ui/src/components/VegaWidget.vue diff --git a/frontend/src/components/icons/FolderIcon.vue b/skore-ui/src/components/icons/FolderIcon.vue similarity index 100% rename from frontend/src/components/icons/FolderIcon.vue rename to skore-ui/src/components/icons/FolderIcon.vue diff --git a/frontend/src/components/icons/ManderIcon.vue b/skore-ui/src/components/icons/ManderIcon.vue similarity index 100% rename from frontend/src/components/icons/ManderIcon.vue rename to skore-ui/src/components/icons/ManderIcon.vue diff --git a/frontend/src/env.d.ts b/skore-ui/src/env.d.ts similarity index 100% rename from frontend/src/env.d.ts rename to skore-ui/src/env.d.ts diff --git a/frontend/src/main.ts b/skore-ui/src/main.ts similarity index 100% rename from frontend/src/main.ts rename to skore-ui/src/main.ts diff --git a/frontend/src/models.ts b/skore-ui/src/models.ts similarity index 100% rename from frontend/src/models.ts rename to skore-ui/src/models.ts diff --git a/frontend/src/router.ts b/skore-ui/src/router.ts similarity index 100% rename from frontend/src/router.ts rename to skore-ui/src/router.ts diff --git a/frontend/src/services/api.ts b/skore-ui/src/services/api.ts similarity index 100% rename from frontend/src/services/api.ts rename to skore-ui/src/services/api.ts diff --git a/frontend/src/services/utils.ts b/skore-ui/src/services/utils.ts similarity index 100% rename from frontend/src/services/utils.ts rename to skore-ui/src/services/utils.ts diff --git a/frontend/src/share.ts b/skore-ui/src/share.ts similarity index 100% rename from frontend/src/share.ts rename to skore-ui/src/share.ts diff --git a/frontend/src/stores/modals.ts b/skore-ui/src/stores/modals.ts similarity index 100% rename from frontend/src/stores/modals.ts rename to skore-ui/src/stores/modals.ts diff --git a/frontend/src/stores/project.ts b/skore-ui/src/stores/project.ts similarity index 100% rename from frontend/src/stores/project.ts rename to skore-ui/src/stores/project.ts diff --git a/frontend/src/stores/toasts.ts b/skore-ui/src/stores/toasts.ts similarity index 100% rename from frontend/src/stores/toasts.ts rename to skore-ui/src/stores/toasts.ts diff --git a/frontend/src/views/ComponentsView.vue b/skore-ui/src/views/ComponentsView.vue similarity index 100% rename from frontend/src/views/ComponentsView.vue rename to skore-ui/src/views/ComponentsView.vue diff --git a/frontend/src/views/ProjectView.vue b/skore-ui/src/views/ProjectView.vue similarity index 100% rename from frontend/src/views/ProjectView.vue rename to skore-ui/src/views/ProjectView.vue diff --git a/frontend/tests/components/DataFrameWidget.spec.ts b/skore-ui/tests/components/DataFrameWidget.spec.ts similarity index 100% rename from frontend/tests/components/DataFrameWidget.spec.ts rename to skore-ui/tests/components/DataFrameWidget.spec.ts diff --git a/frontend/tests/components/ToastNotificationArea.spec.ts b/skore-ui/tests/components/ToastNotificationArea.spec.ts similarity index 100% rename from frontend/tests/components/ToastNotificationArea.spec.ts rename to skore-ui/tests/components/ToastNotificationArea.spec.ts diff --git a/frontend/tests/components/TreeAccordion.spec.ts b/skore-ui/tests/components/TreeAccordion.spec.ts similarity index 100% rename from frontend/tests/components/TreeAccordion.spec.ts rename to skore-ui/tests/components/TreeAccordion.spec.ts diff --git a/frontend/tests/components/icons.spec.ts b/skore-ui/tests/components/icons.spec.ts similarity index 100% rename from frontend/tests/components/icons.spec.ts rename to skore-ui/tests/components/icons.spec.ts diff --git a/frontend/tests/services/api.spec.ts b/skore-ui/tests/services/api.spec.ts similarity index 100% rename from frontend/tests/services/api.spec.ts rename to skore-ui/tests/services/api.spec.ts diff --git a/frontend/tests/services/utils.spec.ts b/skore-ui/tests/services/utils.spec.ts similarity index 100% rename from frontend/tests/services/utils.spec.ts rename to skore-ui/tests/services/utils.spec.ts diff --git a/frontend/tests/stores/modals.spec.ts b/skore-ui/tests/stores/modals.spec.ts similarity index 100% rename from frontend/tests/stores/modals.spec.ts rename to skore-ui/tests/stores/modals.spec.ts diff --git a/frontend/tests/stores/project.spec.ts b/skore-ui/tests/stores/project.spec.ts similarity index 100% rename from frontend/tests/stores/project.spec.ts rename to skore-ui/tests/stores/project.spec.ts diff --git a/frontend/tests/stores/toasts.spec.ts b/skore-ui/tests/stores/toasts.spec.ts similarity index 100% rename from frontend/tests/stores/toasts.spec.ts rename to skore-ui/tests/stores/toasts.spec.ts diff --git a/frontend/tests/test.utils.ts b/skore-ui/tests/test.utils.ts similarity index 100% rename from frontend/tests/test.utils.ts rename to skore-ui/tests/test.utils.ts diff --git a/frontend/tests/views/ComponentsView.spec.ts b/skore-ui/tests/views/ComponentsView.spec.ts similarity index 100% rename from frontend/tests/views/ComponentsView.spec.ts rename to skore-ui/tests/views/ComponentsView.spec.ts diff --git a/frontend/tests/views/ProjectView.spec.ts b/skore-ui/tests/views/ProjectView.spec.ts similarity index 100% rename from frontend/tests/views/ProjectView.spec.ts rename to skore-ui/tests/views/ProjectView.spec.ts diff --git a/frontend/tsconfig.app.json b/skore-ui/tsconfig.app.json similarity index 100% rename from frontend/tsconfig.app.json rename to skore-ui/tsconfig.app.json diff --git a/frontend/tsconfig.json b/skore-ui/tsconfig.json similarity index 100% rename from frontend/tsconfig.json rename to skore-ui/tsconfig.json diff --git a/frontend/tsconfig.node.json b/skore-ui/tsconfig.node.json similarity index 100% rename from frontend/tsconfig.node.json rename to skore-ui/tsconfig.node.json diff --git a/frontend/tsconfig.vitest.json b/skore-ui/tsconfig.vitest.json similarity index 100% rename from frontend/tsconfig.vitest.json rename to skore-ui/tsconfig.vitest.json diff --git a/frontend/vite.config.lib.ts b/skore-ui/vite.config.lib.ts similarity index 100% rename from frontend/vite.config.lib.ts rename to skore-ui/vite.config.lib.ts diff --git a/frontend/vite.config.ts b/skore-ui/vite.config.ts similarity index 100% rename from frontend/vite.config.ts rename to skore-ui/vite.config.ts diff --git a/frontend/vitest.config.ts b/skore-ui/vitest.config.ts similarity index 100% rename from frontend/vitest.config.ts rename to skore-ui/vitest.config.ts diff --git a/frontend/vitest.setup.ts b/skore-ui/vitest.setup.ts similarity index 100% rename from frontend/vitest.setup.ts rename to skore-ui/vitest.setup.ts diff --git a/src/skore/ui/app.py b/src/skore/ui/app.py index cf2498c0..13294934 100644 --- a/src/skore/ui/app.py +++ b/src/skore/ui/app.py @@ -39,7 +39,7 @@ def create_app( # Include all sub routers. app.include_router(router) - # Mount frontend from the static directory. + # Mount skore-ui from the static directory. # Should be after the API routes to avoid shadowing previous routes. static_path = get_static_path() if static_path.exists(): diff --git a/src/skore/ui/project_routes.py b/src/skore/ui/project_routes.py index 0a0d9eb9..aa04aaa7 100644 --- a/src/skore/ui/project_routes.py +++ b/src/skore/ui/project_routes.py @@ -35,7 +35,7 @@ class SerializedItem: @dataclass class SerializedProject: - """Serialized project, to be sent to the frontend.""" + """Serialized project, to be sent to the skore-ui.""" items: dict[str, SerializedItem] views: dict[str, Layout] diff --git a/tests/integration/ui/test_ui.py b/tests/integration/ui/test_ui.py index a24c5587..a1dc11e1 100644 --- a/tests/integration/ui/test_ui.py +++ b/tests/integration/ui/test_ui.py @@ -27,7 +27,7 @@ def test_app_state(client): assert client.app.state.project is not None -def test_frontend_index(client): +def test_skore_ui_index(client): response = client.get("/") assert response.status_code == 200