Repository navigation
Conversation
davidsanfal
left a comment
There was a problem hiding this comment.
A few non-blocking comments.
| display: grid; | ||
| grid-template-columns: 75% 25%; | ||
| grid-template-rows: 50px auto; | ||
| grid-template-columns: minmax(0, 1fr) 340px; |
There was a problem hiding this comment.
Suggest extracting the sidebar width into a variable so #fit doesn't depend on a hardcoded value:
| grid-template-columns: minmax(0, 1fr) 340px; | |
| --sidebar-width: 340px; | |
| grid-template-columns: minmax(0, 1fr) var(--sidebar-width); |
| .chip { padding: 1px 8px; border: 1.5px solid #64748b; border-radius: 4px; background: white; | ||
| font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; } | ||
| .legend-sep { width: 1px; height: 18px; margin: 0 6px; background: #dbe1e8; } | ||
| #fit { position: fixed; right: 356px; bottom: 16px; padding: 6px 12px; font-size: 13px; } |
There was a problem hiding this comment.
right: 356px is coupled to the sidebar width (340px + 16px). If the width changes, the button gets misplaced. With the variable above:
| #fit { position: fixed; right: 356px; bottom: 16px; padding: 6px 12px; font-size: 13px; } | |
| #fit { position: fixed; right: calc(var(--sidebar-width) + 16px); bottom: 16px; padding: 6px 12px; font-size: 13px; } |
There was a problem hiding this comment.
Leftover from the old palette:
| highlight: {background: "black", border: "#6366f1"}}, |
| copy.onclick = () => navigator.clipboard.writeText(raw.textContent).then(() => { | ||
| copy.textContent = "Copied!"; | ||
| setTimeout(() => copy.textContent = "Copy", 1500); | ||
| }); |
There was a problem hiding this comment.
navigator.clipboard.writeText can reject (non-secure context, permission denied), and right now it fails silently. Suggest adding a .catch():
| copy.onclick = () => navigator.clipboard.writeText(raw.textContent).then(() => { | |
| copy.textContent = "Copied!"; | |
| setTimeout(() => copy.textContent = "Copy", 1500); | |
| }); | |
| copy.onclick = () => navigator.clipboard.writeText(raw.textContent).then( | |
| () => copy.textContent = "Copied!", | |
| () => copy.textContent = "Copy failed" | |
| ).finally(() => setTimeout(() => copy.textContent = "Copy", 1500)); |
franramirez688
left a comment
There was a problem hiding this comment.
Looking great @perseoGI ! I like a lot the new style 👏
Just one comment before moving forward. I just tried one example with conflicts, and I'm not sure about the information that it's shown on the top of the screen:
Even expanding all the information, I do not think that it's useful. Let's review that flow.
UPDATE: the scroll button levelSeparation when expanding the Extra graph controls is not working as expected, but it's not because of your changes. If you can have a look too... 🙏
- Readable error messages with a button to locate the node in the graph - Fix levelSeparation slider with DU direction - Fit vis configuration panel in the sidebar - Handle clipboard errors, use a variable for the sidebar width
|
Thank you for your review @davidsanfal @franramirez688 |
Changelog: Feature: Improve the look and feel of the
conan graph info --format=htmloutput.Docs: Omit
Refresh of the html graph page, it looked quite dated. No new external dependencies, still vis-network only.
settings,options,cpp_info,dependencies...) instead of a raw JSON dump. Dependencies are shown by their ref instead of node id.Example graph with all the binary status types (same graph,
libcurlselected):Before
After
developbranch, documenting this one.