-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Refactor settings into a single component across Chat/Ask #2111
Refactor settings into a single component across Chat/Ask #2111
Conversation
@bnodir - Nice work! Would it be worth exploring a single menu in the top-right main navigation (black header) for options like "Clear Chat," "Manage Uploads," and "Dev Settings"? These menu items could appear only when their respective settings are activated. |
Is this a WIP as you're still testing it? You could add playwright tests to click each of the settings and check that the subsequent /chat or /ask network request had the expected options. Am not sure how much that'd slow the tests down to test each of them - you could do just one test that touched all the options, so it'd be one for chat and one for ask. |
@pamelafox - The issue I was referring to is specifically with the “menu items” — options like “clear chat” or “upload file” quickly disappear as your chat progresses on both mobile and desktop. Having these items on a sticky navigation would allow users to start a new chat more easily. I understand the menu could get crowded on mobile, but we could use icons only on mobile and icons with text on desktop. Yes, I totally agree it should be a different PR as it will be fairly straightforward to rollout. Cheers |
I have manually tested the changes, not with Playwright, and they were working as expected. Therefore, I removed WIP from the title. Regarding document updates, at least |
Check Broken PathsWe have automatically detected the following broken relative paths in your files. Check the file paths and associated broken paths inside them. For more details, check our Contributing Guide.
|
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them. For more details, check our Contributing Guide.
|
Check Broken PathsWe have automatically detected the following broken relative paths in your files. Check the file paths and associated broken paths inside them. For more details, check our Contributing Guide.
|
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them. For more details, check our Contributing Guide.
|
The techcommunity link breakage is expected due to an ongoing upgrade of that site. |
Check Broken PathsWe have automatically detected the following broken relative paths in your files. Check the file paths and associated broken paths inside them. For more details, check our Contributing Guide.
|
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them. For more details, check our Contributing Guide.
|
Check Broken PathsWe have automatically detected the following broken relative paths in your files. Check the file paths and associated broken paths inside them. For more details, check our Contributing Guide.
|
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them. For more details, check our Contributing Guide.
|
I believe all the broken links are either due to techcommunity blog outage or due to Settings.tsx not being in main branch yet, so I'll merge this. Thanks @bnodir! |
Purpose
We had a refactoring conversation below. In this PR, I tried that.
Does this introduce a breaking change?
When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.
Does this require changes to learn.microsoft.com docs?
This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.
Type of change
Code quality checklist
See CONTRIBUTING.md for more details.
python -m pytest
).python -m pytest --cov
to verify 100% coverage of added linespython -m mypy
to check for type errorsruff
andblack
manually on my code.