jackschedel / KoalaClient

The best LLM API Playground Interface (for me)
https://client.koaladev.io/
Creative Commons Zero v1.0 Universal
30 stars 9 forks source link

auto-focus new textareas #81

Closed cheeseonamonkey closed 1 year ago

jackschedel commented 1 year ago

@cheeseonamonkey in the future please make sure to use a dedicated branch rather than main so your new commits don't accidentally come into the PR unintentionally.

Cherry picking your auto-focus new textareas commit with the added tweak of making the cursor automatically go to the end of the text when editing in #83

Also, please either set up Deno LSP formatting or try to make sure your git diffs only have the relevant lines changed. I don't mind running the autoformat for the commits myself but it makes it a lot easier to review, plus autoformat makes pasting in code from LLM's alot easier ; )

jackschedel commented 1 year ago

Re-opening this bc fixing the auto-scrolling when changing doing focus and changing cursor position was far more involved than expected I spent about 3 hours messing with it with no success, so this likely needs to be implemented in another way, maybe when the edit button is pressed (or generation is done) so it only runs once. useEffect on textarearef winds up calling it 3 times.

I'll accept the PR if you can change it so that:

cheeseonamonkey commented 1 year ago

Ohh, yes I'll be mindful of that

On Mon, Aug 21, 2023, 10:37 PM Jack Schedel @.***> wrote:

@cheeseonamonkey https://github.com/cheeseonamonkey in the future please make sure to use a dedicated branch rather than main so your new commits don't accidentally come into the PR unintentionally.

Cherry picking your extracted ModelSelect component commit with the added tweak of making the cursor automatically go to the end of the text when editing in #82 https://github.com/jackschedel/KoalaClient/pull/82

— Reply to this email directly, view it on GitHub https://github.com/jackschedel/KoalaClient/pull/81#issuecomment-1687404922, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAHG3B5L5QQ6FWQ3UATTUTXWQZR5ANCNFSM6AAAAAA3YJJVTI . You are receiving this because you were mentioned.Message ID: @.***>