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

Populating dynamic block-level documentation as UI tooltips #719

Merged
merged 12 commits into from
May 15, 2024

Conversation

BenjaminCharmes
Copy link
Member

@BenjaminCharmes BenjaminCharmes commented Apr 27, 2024

Related to #705 & #667

Add information for each block with popper.js on hover in the “Add a block” dropdown inside the EditPage.
The names in the dropdown are slightly different, as we now use those fetched directly from the models and not those in @resource.js (can be change if needed).

The design of the popper.js window is customizable, so don't hesitate to give me feedback.

Screenshot 2024-04-27 at 13 13 42

Copy link

codecov bot commented Apr 27, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 66.91%. Comparing base (aba7b09) to head (63dabcd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #719      +/-   ##
==========================================
- Coverage   66.92%   66.91%   -0.01%     
==========================================
  Files          62       62              
  Lines        3713     3712       -1     
==========================================
- Hits         2485     2484       -1     
  Misses       1228     1228              
Files Coverage Δ
pydatalab/pydatalab/apps/chat/blocks.py 20.32% <100.00%> (-0.65%) ⬇️
pydatalab/pydatalab/apps/eis/__init__.py 48.64% <100.00%> (ø)
pydatalab/pydatalab/apps/tga/blocks.py 38.77% <100.00%> (ø)
pydatalab/pydatalab/blocks/base.py 33.33% <100.00%> (ø)
pydatalab/pydatalab/apps/nmr/blocks.py 29.41% <33.33%> (ø)

Copy link

cypress bot commented Apr 27, 2024

Passing run #1742 ↗︎

0 40 0 0 Flakiness 0

Details:

Merge 63dabcd into aba7b09...
Project: datalab Commit: df13a31d88 ℹ️
Status: Passed Duration: 01:59 💡
Started: May 15, 2024 3:19 PM Ended: May 15, 2024 3:21 PM

Review all test suite changes for PR #719 ↗︎

webapp/src/components/StyledAnchor.vue Outdated Show resolved Hide resolved
webapp/src/views/EditPage.vue Outdated Show resolved Hide resolved
@BenjaminCharmes
Copy link
Member Author

pre-commit.ci autofix

@BenjaminCharmes BenjaminCharmes changed the title [WIP] Populating block-level documentation in the app Populating block-level documentation in the app May 13, 2024
@BenjaminCharmes BenjaminCharmes marked this pull request as ready for review May 13, 2024 12:53
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Looking good, I'm going to test this out locally and push the tweaks mentioned and if all works, will go ahead and merge.

Thanks @BenjaminCharmes

pydatalab/pydatalab/apps/nmr/blocks.py Show resolved Hide resolved
webapp/src/store/index.js Outdated Show resolved Hide resolved
ml-evs
ml-evs previously approved these changes May 15, 2024
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

LGTM now @BenjaminCharmes! I'll have a follow up PR that uses some of this stuff to make at tooltip inside the block title too

@ml-evs ml-evs changed the title Populating block-level documentation in the app Populating dynamic block-level documentation as UI tooltips May 15, 2024
@ml-evs ml-evs merged commit ae1e3ae into main May 15, 2024
11 checks passed
@ml-evs ml-evs deleted the bc/ui-documentation branch May 15, 2024 15:40
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.

None yet

2 participants