archethic-foundation / archethic-foundation/archethic-cli
Textarea: slow pasting and lag during navigation with arrow keys
- Dominant language
- Go
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the problem you discovered
There are 2 issues with the textarea (for content and for smartcontract).
- Pasting a long text can be very slow, so a "Paste" button has been added in the interface
- Navigation through a long text with arrow keys becomes laggy (>60 lines)
The workaround provided in [this PR](https://github.com/archethic-foundation/archethic-cli/pull/46) somehow fixes the problem for the pasting.
But the source of both problems seems to come from a bug in the bubbletea lib, see
https://github.com/charmbracelet/bubbletea/discussions/794
### Describe the solution you'd like
Follow up on the 2 issues mentioned in the discussion and update the bubbletea dependency when the PR are merged
### Epic
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing PR #46 and the linked Bubble Tea discussion, then inspect the repository's dependency declaration to see which Bubble Tea version is used. Follow the two upstream fixes and update the dependency once their PRs are merged; done means long pastes and arrow-key navigation in both textarea contexts no longer lag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100