-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Shuffle examples #1906
base: main
Are you sure you want to change the base?
Shuffle examples #1906
Conversation
Possible Approaches for Improved Question Listing@pamelafox - I am considering different approaches to enhance the question listing feature. The table below outlines a few of these approaches, including the currently implemented method and some proposed alternatives. I'd love to hear any other ideas you might have.
|
I like the idea of a shuffle and multi-language support would help as well! Great stuff. Our Application owners favor adding custom questions over User/AI generated ones |
Interesting feature! Thanks @mrmueller for chiming in. Love to hear other developer's thoughts about what they/customeres want. I'm concerned this might make the local developer experience difficult as I'm fairly accustomed to always clicking the same question to check something. On the other hand, it'd be good if I tested with more than those same 3 questions. What do you all think about the impact on local developer experience? |
"What is the expected trend for the S&P 500 index over the next five years? Compare it to the past S&P 500 performance", | ||
"Can you identify any correlation between oil prices and stock market trends?" | ||
]; | ||
import { setInterval as workerSetInterval, clearInterval as workerClearInterval } from "worker-timers"; |
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.
Is it necessary to use worker-timers versus standard setInterval/clearInterval? I would think even that shuffling upon display would be fairly effective.
I'm trying to avoid adding more to package.json when possible.
Purpose
This PR aims to enhance the ExampleList.tsx component by allowing it to display
threerandomly selected questions every 7 seconds from a list of questions. This improves the user experience by periodically refreshing the examples displayed.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.ShuffleExamples.mp4