-
Notifications
You must be signed in to change notification settings - Fork 3
Visualisation: web component + tooltip and table improvement + table row highlight #83
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
Conversation
This isn't polished yet, but @SamGriffithsMO, this might be of use to you 🤷 It's been clear that when collapsing over properties, that listing all relevant node data in the tooltip is not terrible useful or readable. The approach taken here is a stronger reliance on the lookup table. I will likely make this configurable using a callback on polishing this up. |
|
4a2cbf7
to
dc41c36
Compare
dc41c36
to
d073d1a
Compare
4f85d68
to
80520b2
Compare
# set web component path to relative local file when running pytest | ||
if os.environ.get("PYTEST_VERSION") is not None: | ||
WEBCOMPONENT_PATH = "../../../visual/mermaid-table-standard.js" | ||
else: | ||
WEBCOMPONENT_PATH = "https://cdn.jsdelivr.net/gh/MetOffice/dagrunner@vvisual_tooltip_table/visual/mermaid-table-standard.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the web component path is relative when running pytest (this means the tests use the web component
from its own checkout).
Otherwise, the web component path is going via free CDN (jsdeliver), pointing to our repository.
Right now, this is pointing to this development branch. After merge, I'll tag a release and update this path, pointing to that new tag.
The condition on running as pytest or not is as per https://docs.pytest.org/en/stable/example/simple.html#detect-if-running-from-within-a-pytest-run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Issues
Sources
TODO (future PR):
<br>
(right now it's;
). To do this we would want this new line to be toggleable i.e.<br>
<-->; <!--<br>-->