Skip to content

fix(app): strip trailing slash from custom vendor website URLs (CS-398)#3500

Open
github-actions[bot] wants to merge 3 commits into
mainfrom
chas/custom-vendor-url-format
Open

fix(app): strip trailing slash from custom vendor website URLs (CS-398)#3500
github-actions[bot] wants to merge 3 commits into
mainfrom
chas/custom-vendor-url-format

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to merge chas/custom-vendor-url-format into dev.
It was created by the [Auto Pull Request] action.


Summary by cubic

Standardizes custom vendor website input by trimming and cleaning domains (strip protocol, www, and trailing slashes) and validating the cleaned value. Fixes false “invalid URL” states and ensures consistent display and saving. Addresses CS-398.

  • Bug Fixes
    • Added cleanDomainInput that trims and removes protocol, www, and trailing slashes; used for display, change handlers, and touched-invalid checks.
    • Exported isValidDomain to validate the cleaned value; allows empty, rejects paths/spaces, requires a dot; accepts inputs with protocol/www/slash by cleaning first.
    • On save, re-adds https:// to cleaned values for storage; added unit tests covering trimming, protocols, www, trailing slashes, and valid/invalid cases.

Written for commit 77d6177. Summary will update on new commits.

Review in cubic

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Jul 27, 2026 1:53pm
comp-framework-editor Ready Ready Preview, Comment Jul 27, 2026 1:53pm
portal Ready Ready Preview, Comment Jul 27, 2026 1:53pm

Request Review

@chasprowebdev chasprowebdev changed the title [dev] [chasprowebdev] chas/custom-vendor-url-format fix(app): strip trailing slash from custom vendor website URLs Jul 24, 2026
@chasprowebdev chasprowebdev changed the title fix(app): strip trailing slash from custom vendor website URLs fix(app): strip trailing slash from custom vendor website URLs (CS-398) Jul 24, 2026
@linear

linear Bot commented Jul 24, 2026

Copy link
Copy Markdown

CS-398

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/app/src/app/(app)/setup/components/OnboardingStepInput.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant