Frontend: bump Ardupilot Parameter repository submodule#3970
Conversation
Automated PR Review0. Summary
Bumps the 6. Code Quality & Style
8. Documentation
9. Nitpicks / Optional
Generated by PR Review Bot. This is advisory, a human reviewer must still approve. |
b345e2c to
3844b9f
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The virtual
ardupilot-param-indexplugin currently prefixes paths with/public/..., but files in Vite’spublicdirectory are served from/, so consider dropping the/publicsegment to avoid broken URLs (e.g./${path.relative(publicDir, fullPath).split(path.sep).join('/')}). - Instead of resolving the
publicdirectory viapath.resolve(__dirname, 'public')inside the plugin, consider using Vite’s configuredpublicDir(fromconfig.publicDiror similar) to keep this logic in sync with the build configuration.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The virtual `ardupilot-param-index` plugin currently prefixes paths with `/public/...`, but files in Vite’s `public` directory are served from `/`, so consider dropping the `/public` segment to avoid broken URLs (e.g. `/${path.relative(publicDir, fullPath).split(path.sep).join('/')}`).
- Instead of resolving the `public` directory via `path.resolve(__dirname, 'public')` inside the plugin, consider using Vite’s configured `publicDir` (from `config.publicDir` or similar) to keep this logic in sync with the build configuration.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Index ArduPilot parameter repository JSON files at build time via a virtual module instead of import-time globbing to avoid bundling file contents and reduce frontend build memory usage.
New Features:
Enhancements: