Skip to content

refactor: volume based routing ui#4971

Open
Muditbhatia12 wants to merge 11 commits into
mainfrom
volume-routing-revamp
Open

refactor: volume based routing ui#4971
Muditbhatia12 wants to merge 11 commits into
mainfrom
volume-routing-revamp

Conversation

@Muditbhatia12

@Muditbhatia12 Muditbhatia12 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Screen.Recording.2026-06-10.at.7.07.36.PM.mov
image image

Motivation and Context

How did you test it?

Where to test it?

  • INTEG
  • SANDBOX
  • PROD

Backend Dependency

  • Yes
  • No

Backend PR URL:

Feature Flag

  • New feature flag added
  • Existing feature flag updated
  • No feature flag changes

Feature flag name(s):

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@Muditbhatia12 Muditbhatia12 self-assigned this Jun 10, 2026
@Muditbhatia12 Muditbhatia12 requested a review from a team as a code owner June 10, 2026 11:33
@semanticdiff-com

semanticdiff-com Bot commented Jun 10, 2026

Copy link
Copy Markdown

@XyneSpaces XyneSpaces left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated Review Summary

PR: refactor: volume based routing ui
Reviewer: XyneSpaces Automation


Findings Overview

💡 Minor suggestions — 2 formatting/style observations.


Findings

1. Consistent code formatting in JSX

File: src/IntelligentRouting/IntelligentRoutingScreens/IntelligentRoutingHome.res

The multi-line formatting change for className and child elements improves readability. Continue applying this pattern consistently across the refactored components.

Verified: Formatting changes follow the existing pattern used elsewhere in the codebase.


2. PR checklist completion

The PR body indicates this is a refactoring change but the type of change checkbox is not marked. Consider updating the PR body to check [x] Refactoring for clarity.


Verdict:Clean refactoring — Formatting improvements are consistent. No functional changes detected.

@XyneSpaces XyneSpaces left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated Review Summary

PR: refactor: volume based routing UI
Reviewer: XyneSpaces Automation


Findings Overview

No blocking issues found. This is a UI refactor PR that modernizes the volume-based routing interface with the new design system.


Verification Passed

Design system adoption — Consistent use of nd_gray color palette and new Typography helpers across all modified components

Empty state pattern — New RoutingHelper.NoProcessorFound component follows established empty-state conventions with appropriate CTA

Component compositionVolumeSplitRouting properly wraps conditional rendering with the new NoProcessorFound fallback

Tailwind configuration — New min-80-vh utility follows the project's naming convention

Profile selector integrationDefaultRouting correctly integrates BusinessProfileInp for profile-scoped connector selection


Suggestions

💡 Naming consistency — The new file RoutingHelper.res exports a NoProcessorFound module. Consider whether other routing-related helper components might belong here in future refactors, or if a more specific name like RoutingEmptyStates.res would be clearer if this is intended only for empty states.


Verdict:Approve — Clean UI refactor with consistent design system adoption.

Comment thread src/components/priority-logics/AddPLGateway.res Outdated
Comment thread src/components/priority-logics/AddPLGateway.res Outdated
Comment thread src/screens/Routing/VolumeSplitRouting/VolumeSplitRouting.res Outdated
customButtonStyle="bg-nd_gray-0 !w-full"
input
options={gatewayOptions}
fixedDropDownDirection=SelectBox.TopRight

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think direct TopRight can be used.

).connector_label->React.string}
<div
key
className="flex items-center h-10 bg-nd_gray-0 border border-nd_gray-300 rounded-[10px] overflow-hidden">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

rounded-[10px] add in tailwind config.

{ruleGateway.gateway_name->getGatewayName->React.string}
{if ruleGateway.distribution !== 100 {
<span className="text-jp-gray-700 dark:text-jp-gray-600 ml-1">
className="flex items-center gap-2 h-10 px-3 bg-nd_gray-0 border border-nd_gray-300 rounded-[10px]">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

tailwind config.

Comment thread src/screens/Routing/VolumeSplitRouting/VolumeSplitRoutingPreviewer.res Outdated
Comment thread src/screens/Routing/VolumeSplitRouting/VolumeSplitRoutingPreviewer.res Outdated
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.

4 participants