feat: add reference viewer#180
Conversation
Codecov Report
@@ Coverage Diff @@
## main #180 +/- ##
==========================================
+ Coverage 63.25% 65.19% +1.94%
==========================================
Files 82 84 +2
Lines 4022 4132 +110
Branches 285 305 +20
==========================================
+ Hits 2544 2694 +150
+ Misses 1457 1417 -40
Partials 21 21
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Nice! This provides an early implementation of the "reference detail view" mentioned in #159. When we tackle the "references table view" mentioned in that issue we may want to revisit the click target to be an icon or button rather than the whole reference row, but that's a small detail we can target later. Ultimately we'll want this reference detail view to support editing the metadata as well of course, and we may want to allow the authors to be clicked to search for references by that author, etc. |
|
Yes, you're right! This PR is the first step in having other things than files in the editor area. |
Fixes #174
This updates the atoms schema to enable opening anything with a name and an id (as opposed to only actual files with a filepath)
Clicking on a reference now opens it in the editor (in the right pane by default, like PDFs)
For now, the ReferenceViewer is a read-only table with reference data: citation key, title and authors list.
Screen.Recording.2023-06-22.at.10.02.28.mov