Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make toast copy more consistent #2504

Merged
merged 22 commits into from
Oct 30, 2024
Merged

Make toast copy more consistent #2504

merged 22 commits into from
Oct 30, 2024

Conversation

charliepark
Copy link
Contributor

@charliepark charliepark commented Oct 14, 2024

This makes the toasts across the app more consistent, and adds highlighting to the resource name (when available) for each of the toasts.
Screenshot 2024-10-17 at 6 19 58 AM
Screenshot 2024-10-17 at 6 30 41 AM

Closes #2499

Copy link

vercel bot commented Oct 14, 2024

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Oct 30, 2024 2:26am

@david-crespo
Copy link
Collaborator

Love the direction, thanks for doing this tedious stuff.

@charliepark
Copy link
Contributor Author

The latest, with highlighting, and removing the Success text:
Screenshot 2024-10-15 at 5 42 38 PM

@david-crespo
Copy link
Collaborator

Prettier is killing me. This sent me on an odyssey to see if biome or dprint could give me

addToast({ content: <>IP <HLs>{ephemeralIp.ip}</HLs> attached</> })

but neither one can. Reconsidering my choice of career.

@david-crespo
Copy link
Collaborator

The highlighting might make the secondary color text look too dim.

Here's what it looks like with both in text-accent. Also kinda meh because the highlight doesn't stand out. @benjaminleonard help

group-[.text-accent-secondary]:text-accent
group-[.text-error-secondary]:text-error
group-[.text-info-secondary]:text-info
`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mad scientist stuff. This is the CSS selector it generates.

.group.text-accent-secondary .group-\[\.text-accent-secondary\]\:text-accent {
  // ...
}

@david-crespo
Copy link
Collaborator

oh wild. I just got the error locally, so maybe it's not the runner!

image

@david-crespo
Copy link
Collaborator

ok lmao. in a3d736b, I did a giant find-replace of HLs to HL and this hit a few hashes in the lockfile. Good prank, universe.

image

Copy link
Collaborator

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing all the fiddly work @charliepark. The toasts have been bothering me forever!

@david-crespo david-crespo enabled auto-merge (squash) October 30, 2024 02:30
@david-crespo david-crespo merged commit eb7f856 into main Oct 30, 2024
8 checks passed
@david-crespo david-crespo deleted the align_toast_copy branch October 30, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate copy and approach to toast copy
3 participants