taipy
taipy copied to clipboard
Add scenario tags in the scenario selector
Description
having scenario tags displayed in the scenaro slector help spotting a specific scenario. Can be hard.
Each tag value must have one color. Like github labels
In particular when they are defined as authorized_tags as specified in the documentaion.
A similar improvement also for generic labels and not only tags. If scenario has label key in the property dictionary with a set of strings as value, the selector will display.
For tags we should provide a noolean to activate the property
import taipy.gui.builder as tgb
tgb.scenario_selector("{scenario}", tags=True)
For generic labels we should provide the dict key
import taipy.gui.builder as tgb
tgb.scenario_selector("{scenario}", label=label)
I can help on python only. Please.
Acceptance Criteria
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%
- [ ] Propagate any change on the demos and run all of them to ensure there is no breaking change
- [ ] Ensure any change is well documented
I like this idea. It makes the scenario selector a lot more practical and with a better UX. We should find a way to design it
Hello @rohan011001
Thank you for your proposal.
Can you have a look to the issue #1075. This is somehow related to improve user experience and to make it easier to select one scenario in a long list. Do you believe it can solve your issue as well?
@jrobinAV Yes I think filter and sort is better than display tags. Not exclusive. If I have filter, I don't need tags.
But can you show me the documentation? I can't find it. How can I use filters and sort?
filter is coming in the next version and will be documented then Would you like to close this issue @rohan011001 ?
We believe the use case makes sense. We have to discuss the possible solutions.
hey there, I would like to pick this as my first issue to contribute to Hacktoberfest. I am completely new to open source contributions. Please guide me along the way.
Great, let me assign this to you @mohammed-anwar404. You can ask @jrobinAV and @FredLL-Avaiga for more information.
Here is documentation on contributing to Taipy.
Thank you for your contribution!
Thanks, @FlorianJacta for assigning me this issue. I am looking forward to learn and to contribute. If I get stuck I will reach out to the Taipy team for help.
New Quest!
A new Quest has been launched in @Avaiga’s repo. Merge a PR that solves this issue to loot the Quest and earn your reward.
Some loot has been stashed in this issue to reward the solver!
🗡 Comment @quest-bot embark to check-in for this Quest and start solving the issue. Other solvers will be notified!
⚔️ When you submit a PR, comment @quest-bot loot #1235 to link your PR to this Quest.
Questions? Check out the docs.
So are u saying that we need to add the colour to the scenarios tags?
To add these tags inside the scenario selector like GitHub does for labels. For example, in this app, we have a scenario selector and it does not contain the tags that scenarios have. https://supply-chain.taipy.cloud/scenario