Skip to content

Conversation

@charliepark
Copy link
Contributor

@charliepark charliepark commented Apr 24, 2024

Fixes #2114
Fixes #2210

This PR introduces new page-specific links to the Oxide Docs.

Here you can see the trigger for the popover in the upper-right corner …
Screenshot 2024-04-26 at 10 17 14 AM
Screenshot 2024-04-26 at 10 15 41 AM

And the popover when it shows up:
Screenshot 2024-04-26 at 10 17 23 AM
Screenshot 2024-04-26 at 10 15 52 AM

@vercel
Copy link

vercel bot commented Apr 24, 2024

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 30, 2024 9:55pm

@charliepark
Copy link
Contributor Author

Current iteration: Screenshot 2024-04-25 at 10 42 33 AM

@paryhin
Copy link

paryhin commented Apr 25, 2024

@charliepark the icon next to a document name is slightly misplaced, it should be pushed down a pixel or two :)

@charliepark
Copy link
Contributor Author

Latest:
Screenshot 2024-04-25 at 5 25 21 PM

@charliepark
Copy link
Contributor Author

Screenshot 2024-04-25 at 5 40 36 PM

Just noticed this slightly different background color for the different buttons; will want to chat about best approach.

@charliepark charliepark changed the title Add contextual modal with link to docs Add DocsPopover with page-specific links to docs Apr 26, 2024
@charliepark
Copy link
Contributor Author

I noticed that the popover scrolls with the page, rather than staying locked to the trigger. You can see this in action here: http://localhost:4000/projects/mock-project/disks

I'll need to look into this tomorrow morning; I suspect there's an option we can adjust in the floating-ui configs.

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.

THINK WE GOT IT

@david-crespo
Copy link
Collaborator

Animation works!

2024-04-30-docs-popover-anim.mp4

@charliepark charliepark enabled auto-merge (squash) April 30, 2024 21:59
@charliepark charliepark merged commit 31d1884 into main Apr 30, 2024
@charliepark charliepark deleted the contextual-learn-modal branch April 30, 2024 22:04
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Apr 30, 2024
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request May 1, 2024
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.

Animate DocsPopover Change docs link icon to ? or "docs" or "help"

5 participants