Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H-3879: Add protocol dropdown to early access form URL input #6106

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

CiaranMn
Copy link
Member

🌟 What is the purpose of this PR?

We want to move property types which have URLs as their values to using the URL data type. This means values for them must pass URL validation, e.g. include a scheme at the start (https://) rather than just be e.g. example.com

But we also want users to be able to just type example.com into some inputs, e.g. in the early access form.

This PR adds a protocol dropdown to the early access form's website URL input so that we can pass a full URL to the database but users don't have to type it out properly themselves.

It also allows for having a path in the URL (e.g. example.com/my-page) which the early access form website URL input was previously not allowing.

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing

📜 Does this require a change to the docs?

The changes in this PR:

  • are internal and do not require a docs change

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

📹 Demo

Kapture.2025-01-10.at.12.09.24.mp4

@CiaranMn CiaranMn requested a review from vilkinsons January 10, 2025 12:12
@github-actions github-actions bot added area/apps > hash* Affects HASH (a `hash-*` app) type/eng > frontend Owned by the @frontend team area/apps labels Jan 10, 2025
Copy link
Member

@vilkinsons vilkinsons left a comment

Choose a reason for hiding this comment

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

@CiaranMn Thanks! Can we please remove the whitespace/gap between the protocol dropdown input and the adjoining text input, so that are one contiguous component?

@github-actions github-actions bot added the area/libs Relates to first-party libraries/crates/packages (area) label Jan 10, 2025
@CiaranMn
Copy link
Member Author

@vilkinsons like this?

Kapture.2025-01-10.at.12.28.34.mp4

vilkinsons
vilkinsons previously approved these changes Jan 10, 2025
@vilkinsons
Copy link
Member

Separate thread ongoing in Slack re: unsupported protocols here, and how we handle them across website URL inputs in HASH.

@CiaranMn CiaranMn added this pull request to the merge queue Jan 10, 2025
Merged via the queue into main with commit 6701a6d Jan 10, 2025
49 checks passed
@CiaranMn CiaranMn deleted the cm/protocol-in-url-inputs branch January 10, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apps > hash* Affects HASH (a `hash-*` app) area/apps area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team
Development

Successfully merging this pull request may close these issues.

2 participants