taipy icon indicating copy to clipboard operation
taipy copied to clipboard

Add scenario tags in the scenario selector

Open rohan011001 opened this issue 1 year ago • 14 comments

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 image 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

rohan011001 avatar Apr 25 '24 16:04 rohan011001

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

FlorianJacta avatar Apr 26 '24 07:04 FlorianJacta

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 avatar Apr 26 '24 12:04 jrobinAV

@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?

rohan011001 avatar Apr 29 '24 14:04 rohan011001

filter is coming in the next version and will be documented then Would you like to close this issue @rohan011001 ?

FredLL-Avaiga avatar Jun 10 '24 16:06 FredLL-Avaiga

We believe the use case makes sense. We have to discuss the possible solutions.

jrobinAV avatar Jun 28 '24 12:06 jrobinAV

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.

mohammed-anwar404 avatar Oct 02 '24 11:10 mohammed-anwar404

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!

FlorianJacta avatar Oct 02 '24 13:10 FlorianJacta

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.

mohammed-anwar404 avatar Oct 03 '24 16:10 mohammed-anwar404

New Quest! image 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.

quest-bot[bot] avatar Oct 07 '24 11:10 quest-bot[bot]

So are u saying that we need to add the colour to the scenarios tags?

Harish-2003 avatar Oct 08 '24 18:10 Harish-2003

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

FlorianJacta avatar Oct 09 '24 12:10 FlorianJacta