-
Notifications
You must be signed in to change notification settings - Fork 198
Add support wizard topics and fix space-to-dash conversion #2618
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
Conversation
Console (appwrite/console)Project ID: Tip Preview deployments create instant URLs for every branch and commit |
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Comment |
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
| ($supportData.category ? topicsByCategory[$supportData.category] || [] : []).map( | ||
| (topic) => ({ | ||
| value: topic.toLowerCase(), | ||
| value: topic.toLowerCase().replace(/ /g, '-'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about this? value = topic.toLowerCase().trim().replace(/\s+/g, '-');
cc @ItzNotABug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HarshMN2345 there shouldn't be any extra whitespace but we could try this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 76d38d8. The improved regex with .trim() and /\s+/g now handles leading/trailing whitespace and multiple consecutive spaces more robustly.
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|

Plan for Support Wizard Topic Updates
Changes Made
Updated
/src/routes/(console)/supportWizard.svelte:topicOptionsto use.trim().replace(/\s+/g, '-')for more robust handling of:Verification
All checks pass:
Example Output
The improved regex handles edge cases better:
"Payment methods"→"payment-methods"" Payment methods "→"payment-methods"(trims whitespace)"Blocked project"→"blocked-project"(handles multiple spaces)When a user selects "Payment methods" from the billing category:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.