Skip to content

refactor: move WebWrapper files from packages/platform to apps/web/modules - #9

Open
tomerqodo wants to merge 2 commits into
codex_full_base_refactor_move_webwrapper_files_from_packages_platform_to_apps_web_modules_pr9from
codex_full_head_refactor_move_webwrapper_files_from_packages_platform_to_apps_web_modules_pr9
Open

refactor: move WebWrapper files from packages/platform to apps/web/modules#9
tomerqodo wants to merge 2 commits into
codex_full_base_refactor_move_webwrapper_files_from_packages_platform_to_apps_web_modules_pr9from
codex_full_head_refactor_move_webwrapper_files_from_packages_platform_to_apps_web_modules_pr9

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#9

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

Copy link
Copy Markdown

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.

Reviewed commit: 5ee1dfafbf

ℹ️ 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 3 to +5
import { useSession } from "next-auth/react";
import { useSearchParams, usePathname, useRouter } from "next/navigation";
import { useMemo, useCallback, useEffect, useRef } from "react";
import { useSearchParams, usePathname } from "next/navigation";
import { useMemo, useCallback, useEffect } from "react";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore router hook for BookerWebWrapper

The refactor drops the useRouter import/initialization, but this component still calls router.push in multiple handlers (e.g., overlay toggle and navigation actions). That leaves router undefined at build time, producing a TypeScript compile error (“cannot find name 'router'”) or a runtime ReferenceError if it slips through. Reintroduce useRouter() (or replace those calls with a valid navigation API) so the handlers have a defined router instance.

Useful? React with 👍 / 👎.

Comment on lines +51 to +54
if (isRRWeightsEnabled) {
if (weightA === weightB) {
return priorityA - priorityB;
} else {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep priority sort descending when weights tie

Moving sortHosts into hostGroupUtils changed the tie‑breaker to priorityA - priorityB, which flips the priority order when weights are equal. The UI and other code paths expect higher numeric priority (e.g., 4 = “highest”) to sort first, so this change reverses that behavior and will reorder hosts incorrectly for round‑robin with equal weights. Use the original descending comparison (priorityB - priorityA) to preserve the intended priority ordering.

Useful? React with 👍 / 👎.

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