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

🚀 Add awesomebar-like UX to launch button #528

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Feb 4, 2025

This PR closes #507 by changing the launch button UI to detect the target.

It is motivated by 2i2c-org/infrastructure#5348 in 2i2c's sprint planning.

This feature is intended to bring us closer to a time in which the distinction between JupyterHub and BinderHub becomes increasingly less relevant.

There are some nuances encoded in this UX; we assume that the JupyterHub uses nbgitpuller. In future, we (2i2c) would like to unify the features of nbgitpuller and mybinder so that the language for addressing contents can be drawn closer together.

2025-02-04.16-36-14.mp4

To Do

In future, this feature should probably use a reducer — the business logic already feels more complicated than I would like.

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: 2cf97f3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@myst-theme/frontmatter Patch
@myst-theme/providers Patch
@myst-theme/diagrams Patch
@myst-theme/jupyter Patch
@myst-theme/site Patch
@myst-theme/styles Patch
@myst-theme/common Patch
@myst-theme/icons Patch
@myst-theme/search Patch
@myst-theme/search-minisearch Patch
@myst-theme/book Patch
@myst-theme/article Patch
myst-to-react Patch
myst-demo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@agoose77 agoose77 marked this pull request as draft February 4, 2025 16:40
@agoose77 agoose77 requested a review from rowanc1 February 7, 2025 10:57
@choldgraf
Copy link
Contributor

That is so slick!

Comment on lines +38 to +45
const {
className,
defaultMessage,
copiedMessage,
invalidLinkFallback,
buildLink,
copiedMessageDuration,
} = props;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nothing functional (besides variable aliases) is changed here, just cleanups

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.

Detect Hub vs Binder in launch button
2 participants