Skip to content

Conversation

@H1ghBre4k3r
Copy link
Contributor

@H1ghBre4k3r H1ghBre4k3r commented Mar 8, 2025

🧢 Changes

Move the toast handling (and, therefore, the error handling as well) of copying text to the clipboard into the writeClipboard function.

☕️ Reasoning

Previously, we managed the error handling (i.e., the display of a toast) individually for each call to writeClipboard. To unify this, the handling is moved into the function.

🎫 Affected issues

Fixes: #7490

@vercel
Copy link

vercel bot commented Mar 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2025 4:46pm

@vercel
Copy link

vercel bot commented Mar 8, 2025

@H1ghBre4k3r is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

@H1ghBre4k3r
Copy link
Contributor Author

@estib-vega I guess, you're the right one to review this (since you already reviewed the ButlerReview). :D

@estib-vega
Copy link
Contributor

Let’s merge it :)

@estib-vega estib-vega merged commit ae0c528 into gitbutlerapp:master Mar 9, 2025
18 of 19 checks passed
PavelLaptev pushed a commit that referenced this pull request Mar 11, 2025
…eClipboard

feat(clipboard): move the toast-handling into writeClipboard function
PavelLaptev added a commit that referenced this pull request Mar 11, 2025
* Merge pull request #7552 from gitbutlerapp/e-branch-134

Profile settings: Receive reply notification emails

* Merge pull request #7553 from gitbutlerapp/e-branch-135

unclog toilet mode

* Merge pull request #7555 from vidluther/master

Use Claude Sonnet 3.7 and Node 22.14.0

* Merge pull request #7557 from gitbutlerapp/e-branch-136

more toilet mode fixes

* Merge pull request #7551 from H1ghBre4k3r/move-error-handling-to-writeClipboard

feat(clipboard): move the toast-handling into writeClipboard function

* Remove inner div from scrollable containers

- not strictly needed
- enables `sticky` items in the scroll view

* Merge pull request #7562 from gitbutlerapp/sc-server-features-login

if user is not logged in, show login prompt

* Fix for push button being visible all the time

* Merge pull request #7563 from gitbutlerapp/popup-pirate

Fix the project popup

* nest generic classes, don't display stack size if null

* add dividers between files

* remove scroll animation (it was buggy)

* sticky file headers

* Merge branch 'master' into ui-fixes-15

* fix diff selection z-index

* add diff selection buttons tooltips

* return `opacity` on hover

* update header height when it's changing

---------

Co-authored-by: Esteban Vega <35891811+estib-vega@users.noreply.github.com>
Co-authored-by: Mattias Granlund <mtsgrd@gmail.com>
Co-authored-by: Scott Chacon <schacon@gmail.com>
Co-authored-by: Caleb Owens <hello@calebowens.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error on right click => copy path on a file in a commit

2 participants