-
Notifications
You must be signed in to change notification settings - Fork 68
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
Display name should be filled in with the domain name, without the TLD #992
Comments
I would like to work on this issue. Could you please assign it to me? |
@Khushal-Pabri sure, go for it. Please make a well formatted and descriptive PR when you're ready to go. Thanks for your interest in the project! |
@Khushal-Pabri checking here. Are you still interested in sending a PR for this issue? |
@shyna92 assigned to you, fyi. |
@gorkem-bwl Hello! I can work on this. Can you assign me this issue? |
Yes, please go ahead. Make sure you run the app and test it live, and then send a video showing how it works. |
@gorkem-bwl Hello! Just a question regarding this issue:
|
|
The #1 is doable. But we just need to make sure that the URL they are inputting is valid. I researched about valid domain names:
We need to take this into account. |
Actually, we don't need to check if the URL is valid. Just discovered that it shows an alert saying that the URL endpoint doesn't resolve. |
checkmate-issue-992-demo-1.mp4@gorkem-bwl Here's the live app test. Let me know if there are things we need to change. Thanks! |
Perfect. That is simple and to the point. Thanks for this! |
Cool! Should I proceed to create a PR for this? |
I was looking at PRs, I think this issue is already handled. Just waiting for it to be merged into develop and closed. PR link: feat: create monitor display name, resovles #992 #1221 |
Yes. Thanks for this. CC @ajhollid |
Hi @peterpardo , Yes there is an open PR for this one, but I am not especially attached to the solution, it's more of a proposal. If you have a better way in mind, especially with regards to the algorithm for parsing the domain from a string, I would love to have your contribution! |
Got it. I was looking at the PR you created, I think we can work around it. We just need to make sure that all edge cases when user types in a domain name is taken into account. |
checkmate-issue-992-demo-2.mp4Hello @ajhollid , I used the branch that you have right now for this issue because I think it's better with the one I have right now and it catches most of the edge cases when typing in the domain name. I just made some minor tweaks around the parseDomainName util you created. Let me know if this works for you. I attached the live test of the app here @gorkem-bwl. Thank you! |
When the URL has a subdomain, e.g. "api.test.com", I just joined the two strings: |
It looks great to me @peterpardo .
Yes, this is a good approach. Thanks. |
Awesome! Should I proceed to create a PR for this? |
@peterpardo sure that sounds like a good approach to me. If you want to build off my PR feel free to either branch off it and create a new PR or just push commits to this branch, either is fine 👌 |
Got it! Quick question, is this issue considered a |
I think a feature as it is adding new functionality |
Done! Created a PR for this, #1234, and is ready for review. Thanks! |
When adding a new monitor, and user adds "URL to monitor", the Display name should be filled in with the URL, without the TLD. The first letter should be capitalized.
Examples:
https://3dicons.co/ -> 3dicons
https://allaboutberlin.com -> Allaboutberlin
The text was updated successfully, but these errors were encountered: