taipy
taipy copied to clipboard
Add progress bar/circle visual element
What would that feature address Add progress bar/circle visual element to Taipy: example
Parent issue: #436 Linked to: #551
Acceptance Criteria
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%
- [ ] Create related issue in taipy-doc for documentation and Release Notes
- [ ] Check if a new demo could be provided based on this, or if legacy demos could be benefit from it
- [ ] Ensure any change is well documented
Really looking forward to this feature. I've a UI that pulls data, which may have a few seconds to a min. Need to provide some feedback to the user while they are waiting.
For the meantime, you can use the notify function to create a notification saying that the user has to wait.
Another user on Discord asked for it again. I am moving this to High as a result.
Hi, I would like to contribute to this issue. Could you please assign it to me?
That is great news Chiara! You are going to need Python, Typescript, React, and MUI, but that should be fun!
We would like a new control called 'progress', using the referenced MUI component. We'll improve on the requirements when something is usable on the front-end.
Welcome to Taipy!
Do not hesitate to ask questions here 😎
Great, thank you! Will do :)
Hello, I have started to work on the React components, however, I want to make sure I'm taking all the steps required. I have made a .tsx and .spec.tsx and from what I understand I now need to update factory.py and then tests to both tests/gui/builder/control and tests/gui/control. What exactly is the difference between these last two? Also, maybe a dumb question, but how can I locally visually test out the generation of the new component?
test/gui/builder/control uses the Builder API while test/gui/control uses Markdown/HTML Don't forget to update the viselements.json file (used in the doc for for API generation)
Once you've built the front-end bundle To test, you can create a demo python file at the root of the repo and it will use the current version of Taipy without installing it
I built the frontend bundle and created a demo file, but it tells me that the new component is not registered. How am I supposed to register it?
There's an export.ts file I think
Unfortunately that doesn't seem to fix it
What would that feature address Add progress bar/circle visual element to Taipy: example
Parent issue: #436 Linked to: #551
Acceptance Criteria
- [ ] Ensure new code is unit tested, and check code coverage is at least 90%
- [ ] Create related issue in taipy-doc for documentation and Release Notes
- [ ] Check if a new demo could be provided based on this, or if legacy demos could be benefit from it
- [ ] Ensure any change is well documented
Hey @FlorianJacta, actually I was reading about this issue, but I was not able to understand this completely, could you please guide that where this visual element has to be added, like in what sense? And @chialiotta since you've previously worked on this issue, could you also please guide me regarding this, maybe we can work on this together?
Unfortunately that doesn't seem to fix it
Sorry, you need to add your component in the list in index.ts
@yaten2302 Taipy relies on visual elements to bring interactivity to the GUI. These visual elements come from different Javascript libraries (MUI, for example). The goal is to incorporate another visual element into Taipy natively.
You can read about the extension API here. This API enables you to extend Taipy with a new object. However, we would want to add Taipy directly here. Maybe, @FredLL-Avaiga or @FabienLelaquais could help you with that
Hey @FlorianJacta, if I've understood this correctly, what exactly we've to do is that, we've to create 2 new files in this dir named - Circle.tsx
and Circle.spec.tsx
(for testing).
We're basically incorporating a new visual element in Taipy, right?
I think @chialiotta is working on this issue. Are you still working on it? Please let me know if you need any help.
If you are not, we could maybe assign you @yaten2302 and provide you with more explanation to keep things organized.
Sure @FlorianJacta , if no one is working on this, I'll definitely work on this issue👍
Hey, I was working on this, but I don’t have time right now to finish it, so if you want to take over @yanten2302 you are welcome to
From: Yaten Dhingra @.> Sent: Wednesday, May 15, 2024 3:59:54 PM To: Avaiga/taipy @.> Cc: Liotta, Chiara @.>; Mention @.> Subject: Re: [Avaiga/taipy] Add progress bar/circle visual element (Issue #692)
Sure @FlorianJactahttps://github.com/FlorianJacta , if no one is working on this, I'll definitely work on this issue👍
— Reply to this email directly, view it on GitHubhttps://github.com/Avaiga/taipy/issues/692#issuecomment-2112628186, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANKTFWULKGHSLJQ43Z5K2JDZCNS5VAVCNFSM6AAAAABB4QMMI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGYZDQMJYGY. You are receiving this because you were mentioned.Message ID: @.***>
Hey @FlorianJacta, could you please assign this issue to me, I want to work on it.
Welcome @yaten2302
do not hesitate to ask questions here.
Thank you so much @FredLL-Avaiga for your help.
Sure, I'll definitely ask if I encounter any problem or doubt.
Currently I'm trying to understand the Button.tsx
and Button.spec.tsx
file in frontend dir. Then I'll start with the new element i.e. the progress bar 👍🏼
For your information, Once, your happy with the tsx component, you need to declare it in
-
taipy\gui\_renderers\factory.py
andfrontend\taipy-gui\src\components\Taipy\index.ts
Hey @FredLL-Avaiga, to get started by developing the front-end part, I've to install both of these right? - Taipy Front-end and Taipy GUI Front-end
fine, but you don't need Taipy front-end as it concerns core visual elements (scenario_selector ...)
Hey @FredLL-Avaiga, actually I've a doubt, could you clarify this? Like, for the progress bar, by default(if there are no params entered by the user) the element rendered will be this(the circular indeterminate one), right?
And if the user enters the params like - color, show_progress, then the element rendered will be like this:
You're right I'm not sure we want a color property but I'm sure we want a circular and another linear with the same element name
Got it 👍🏼 I'll leave the color property for now and will add the circular and the linear progress bars👍🏼
Hey @FredLL-Avaiga, actually I was having a doubt, if I want to run only a specific file let's say - Button.tsx
, then how can I do that? I'm asking this because I want to check the new element (it's not complete right now, but I just wanted to do a dry run kind of thing).
For your information, Once, your happy with the tsx component, you need to declare it in
taipy\gui\_renderers\factory.py
andfrontend\taipy-gui\src\components\Taipy\index.ts
You declare your component in those files And then you add it to a really page in python