daytona icon indicating copy to clipboard operation
daytona copied to clipboard

Add a progress indicator to JebBrains IDE download

Open Tpuljak opened this issue 11 months ago • 20 comments

Is your feature request related to a problem? Please describe.

Currently, while a JetBrains IDE is being downloaded into a project, the user just sees a static message that it's downloading.

Describe the solution you'd like

We should implement a progress indicator that would inform the user of the progress of the download. This would make for a much better UX.

Additional context

To test this, run daytona ide and select any JetBrains IDE. After that, either create a workspace or use daytona code to enter an existing one.

Tpuljak avatar Mar 15 '24 10:03 Tpuljak

/bounty $40

Tpuljak avatar Mar 15 '24 10:03 Tpuljak

💎 $40 bounty created by daytonaio 🙋 If you start working on this, comment /attempt #219 along with your implementation plan 👉 To claim this bounty, submit a pull request that includes the text /claim #219 somewhere in its body 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to daytonaio/daytona!

👉 Add a bountyShare on socials

If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.

Attempt Started (GMT+0) Solution
🔴 @35C4n0r Mar 15, 2024, 10:10:38 AM WIP
🟢 @Bhavyajain21 Mar 15, 2024, 10:10:56 AM WIP
🔴 @harkiratsm Mar 15, 2024, 10:52:30 AM #247
🔴 @ezhil56x Mar 15, 2024, 10:53:30 AM WIP

algora-pbc[bot] avatar Mar 15 '24 10:03 algora-pbc[bot]

Can I be assigned?

Bhavyajain21 avatar Mar 15 '24 10:03 Bhavyajain21

/attempt

Algora profile Completed bounties Tech Active attempts Options
@35C4n0r    1 daytonaio bounty
+ 10 bounties from 3 projects
Python, JavaScript,
HTML & more
Cancel attempt

35C4n0r avatar Mar 15 '24 10:03 35C4n0r

/attempt #219

Algora profile Completed bounties Tech Active attempts Options
@Bhavyajain21 3 bounties from 2 projects
JavaScript
Cancel attempt

Bhavyajain21 avatar Mar 15 '24 10:03 Bhavyajain21

I will be assigning this issue to someone.

To get assigned, please present an implementation plan that outlines how you would approach the issue.

The person assigned will be one with the most clear implementation plan and best understanding of the underlying problem.

Tpuljak avatar Mar 15 '24 10:03 Tpuljak

We can utilize schollz/progressbar to display the download progress.This keeps the user informed about the downloading process.

download-unknown

harkiratsm avatar Mar 15 '24 10:03 harkiratsm

/attempt #219

Algora profile Completed bounties Tech Active attempts Options
@harkiratsm 2 daytonaio bounties
Go, JavaScript,
HTML & more
Cancel attempt

harkiratsm avatar Mar 15 '24 10:03 harkiratsm

@Tpuljak

I would like to work on this. How about using this? Already we are using charm so this would be a better option to go with.

/attempt #219

Algora profile Completed bounties Tech Active attempts Options
@ezhil56x    2 daytonaio bounties
+ 13 bounties from 8 projects
JavaScript, TypeScript,
Java & more
Cancel attempt

ezhil56x avatar Mar 15 '24 10:03 ezhil56x

@ezhil56x @harkiratsm I'm more interested in how you plan to get the progress indication from the IDE download. Implementing the progress bar in the CLI is trivial.

Tpuljak avatar Mar 15 '24 10:03 Tpuljak

@Tpuljak When URL is passed, it fetches the content length and sets the progress bar accordingly

ezhil56x avatar Mar 15 '24 10:03 ezhil56x

The progress bar tracks bytes written during I/O operations.

harkiratsm avatar Mar 15 '24 11:03 harkiratsm

That's right. What about getting updates from the ssh connection that's running to download the IDE? That's the most important part.

Tpuljak avatar Mar 15 '24 11:03 Tpuljak

That's right. What about getting updates from the ssh connection that's running to download the IDE? That's the most important part.

Need to figure out. We need some way to pipe it for updates

ezhil56x avatar Mar 15 '24 11:03 ezhil56x

Need to figure out. We need some way to pipe it for updates

@ezhil56x right. I'll assign it to you. Good luck!

Tpuljak avatar Mar 15 '24 11:03 Tpuljak

@Tpuljak I couldn't complete this. Please assign to someone

ezhil56x avatar Mar 18 '24 15:03 ezhil56x

@ezhil56x do you have some progress I can take a look at? I might be able to help out.

Tpuljak avatar Mar 18 '24 15:03 Tpuljak

I am unable to add a progress indicator without getting update from ssh connection. Not a significant progress though to look at.

ezhil56x avatar Mar 18 '24 15:03 ezhil56x

@harkiratsm do you want to try?

Tpuljak avatar Mar 18 '24 15:03 Tpuljak

yes

harkiratsm avatar Mar 18 '24 16:03 harkiratsm

💡 @harkiratsm submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Mar 19 '24 12:03 algora-pbc[bot]

🎉🎈 @harkiratsm has been awarded $40! 🎈🎊

algora-pbc[bot] avatar Mar 25 '24 09:03 algora-pbc[bot]