Skip to content

Conversation

@johnwaalsh
Copy link
Member

No description provided.

@johnwaalsh johnwaalsh self-assigned this Oct 30, 2025
@johnwaalsh
Copy link
Member Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

mounted() {
window.addEventListener("keypress", this.keypress);
this.setupNodeIntersectionObserver();
},
beforeDestroy() {
window.removeEventListener("keypress", this.keypress);
if (this.nodeObserver) {
this.nodeObserver.disconnect();
}

P1 Badge Cleanup hook still uses Vue‑2 lifecycle name

The migration replaces Vue 2 with Vue 3, but BisectView still declares the lifecycle hook as beforeDestroy. In the standard Vue 3 build this hook name is no longer invoked, so the global keypress listener and the IntersectionObserver registered in mounted are never removed. Navigating away from and back to the view keeps adding listeners, causing duplicated keypress handling and leaked observers. Rename the hook to beforeUnmount so the teardown code executes.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@johnwaalsh
Copy link
Member Author

@codex review the new commit

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 8 to 38
base: '/morphocluster/frontend/',
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 8080,
proxy: {
'/labeling': {
target: 'http://localhost:5000',
changeOrigin: true,
ws: true
},
'/config.js': {
target: 'http://localhost:5000',
changeOrigin: true
},
'/static': {
target: 'http://localhost:5000',
changeOrigin: true
},
'/api': {
target: 'http://localhost:5000',
changeOrigin: true,
ws: true
},
'/get_obj_image': {
target: 'http://localhost:5000',
changeOrigin: true
}

Choose a reason for hiding this comment

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

P1 Badge Prefix proxy contexts with Vite base path

The dev server sets base: '/morphocluster/frontend/', so the browser will request config.js, static, and get_obj_image under /morphocluster/frontend/…. The proxy configuration still matches only /config.js, /static, and /get_obj_image, which means these requests no longer hit the backend in dev—they fall through to Vite and 404. In Vue CLI this worked because the webpack dev server stripped publicPath before applying proxies, but Vite does not. Either remove the base prefix from the requests (e.g. load /config.js in index.html) or update the proxy keys to include /morphocluster/frontend/… so that config and static assets load during development.

Useful? React with 👍 / 👎.

@johnwaalsh
Copy link
Member Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@johnwaalsh johnwaalsh merged commit 9e43160 into main Oct 30, 2025
2 checks passed
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.

2 participants