Skip to content

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

Open
github-actions[bot] wants to merge 4 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 4 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, stripping protocol/www, and removing trailing slashes, then validating the cleaned domain. Fixes false “invalid URL” states and ensures consistent display and saving (CS-398).

  • Bug Fixes
    • Added cleanDomainInput to trim and remove protocol, www, and trailing slashes; used for display, change handlers, and touched-invalid checks.
    • Exported isValidDomain that defensively cleans input; allows empty, rejects paths/spaces, requires a dot; accepts inputs with protocol/www/slash by cleaning first.
    • On save, prefixes https:// to cleaned values; added unit tests for trimming, protocol/www, trailing slashes, and valid/invalid cases.

Written for commit 62b79a4. 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 28, 2026 7:49pm
comp-framework-editor Ready Ready Preview, Comment Jul 28, 2026 7:49pm
portal Ready Ready Preview, Comment Jul 28, 2026 7:49pm

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.

2 participants