Skip to content

Comments

feat: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add vscode tasks, add arkts debugger, update deps#262

Merged
Groupguanfang merged 14 commits intonextfrom
next-dev
Feb 18, 2026

Conversation

@Groupguanfang
Copy link
Collaborator

@Groupguanfang Groupguanfang commented Feb 2, 2026

  • Merge all SPA front-end projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking

    Result: Originally with 2 panels, the volume occupied was close to 4MB; after reduction, including the panels created in this submission (total of 4 panels), the overall volume is approximately 3MB, significantly reducing space occupation.

  • feat: add hdc manager panel and device manager panel

  • chore: update @arkts/sdk-downloader to v0.1.32:

    • fix problems on Windows
    • update API20-Beta1 to API20-Release
    • fix native toolchains symlink issue #17
  • feat: update hdc manager panel, update baseline-browser-mapping deps

  • feat: add vscode tasks

    • hdc-run-ability: run an ability using hdc
    • hdc-install-hap: install compiled .hap file to device using hdc
    • hvigor-assemble-hap: compile and assemble the project to .hap file using hvigor
  • feat: add debugger @arkts/debugger into vscode extension (beta stage, not ready for production use)

Copilot AI review requested due to automatic review settings February 2, 2026 17:03
@github-project-automation github-project-automation bot moved this to Todo in ArkTS Feb 2, 2026
@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

🦋 Changeset detected

Latest commit: a9ca307

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vscode-naily-ets Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors the frontend architecture by consolidating multiple SPA webview projects into a unified SSG (Static Site Generation) architecture using vite-ssg. It adds new HDC manager and device manager panels, updates build tools, and reorganizes the codebase structure.

Changes:

  • Merged separate frontend projects (qualifier-editor, project) into a unified src/frontend/ structure with SSG architecture
  • Added HDC Manager and Device Manager panels for device management functionality
  • Updated build configuration to use vite-ssg and consolidated build scripts
  • Refactored context/protocol architecture with updated Translator integration from unioc/vscode
  • Updated dependencies including @arkts/sdk-downloader (0.1.32), unioc (0.0.23), and vscode-ext-gen (1.5.1)

Reviewed changes

Copilot reviewed 115 out of 147 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tsconfig.json Updated exclusions to include e2e apps and removed old exclusions
pnpm-workspace.yaml Updated dependency versions and added @css-render/vue3-ssr
packages/vscode/vite.config.mts Complete refactor to SSG architecture with vite-ssg integration
packages/vscode/src/frontend/ New unified frontend structure with consolidated components, pages, and utilities
packages/vscode/src/extension.ts Added new plugins (L10n, Task, Debug) and initialization order changes
packages/vscode/src/views/hdc-manager.ts New HDC manager webview for device management
packages/vscode/src/hdc-manager.ts New service for HDC path resolution and management
packages/vscode/src/tasks/hvigor-debug-deploy.ts New task provider for Hvigor debug deployment
packages/vscode/src/debugger/ New debugger adapter infrastructure for ETS debugging
e2e/apps/21/ New end-to-end test application for API 21
Comments suppressed due to low confidence (2)

packages/vscode/src/frontend/modules/i18n.ts:34

  • The error handling catches all errors and logs them, but then proceeds with an empty object. This could mask underlying issues. Consider whether failures to read locale files should be more visible, especially during development, or if the fallback is acceptable for all scenarios.
    packages/vscode/src/frontend/Root.vue:11
  • The SSR_VAR_FALLBACK color (#1e1e1e) is a dark color. If the theme is light mode during SSR, this could cause visibility issues. Consider using a more neutral fallback or detecting the theme context if possible during SSR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Groupguanfang Groupguanfang changed the title Next dev feat: #48 Feb 2, 2026
@Groupguanfang Groupguanfang changed the title feat: #48 refactor: #48, merge all SPA front-end projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, update deps Feb 17, 2026
@Groupguanfang Groupguanfang changed the title refactor: #48, merge all SPA front-end projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, update deps refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, update deps Feb 17, 2026
@Groupguanfang Groupguanfang changed the title refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, update deps refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add tasks, update deps Feb 18, 2026
- hdc-run-ability: run an ability using `hdc`
- hdc-install-hap: install compiled `.hap` file to device using `hdc`
- hvigor-assemble-hap: compile and assemble the project to `.hap` file using `hvigor`
@Groupguanfang Groupguanfang changed the title refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add tasks, update deps refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add vscode tasks, update deps Feb 18, 2026
@Groupguanfang Groupguanfang changed the title refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add vscode tasks, update deps refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add vscode tasks, add arkts debugger, update deps Feb 18, 2026
@Groupguanfang Groupguanfang changed the title refactor: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add vscode tasks, add arkts debugger, update deps feat: #48, merge all SPA frontend projects related to webview into one SSG project, allowing vite to achieve cross-project tree-shaking, add vscode tasks, add arkts debugger, update deps Feb 18, 2026
…ension (beta stage, not ready for production use)
@Groupguanfang Groupguanfang merged commit 2067c24 into next Feb 18, 2026
3 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in ArkTS Feb 18, 2026
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.

1 participant