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

Add details panel for graph selection info #22

Merged
merged 9 commits into from
Feb 9, 2024
Merged

Conversation

jonlamb-gh
Copy link
Contributor

Based on #21

@jonlamb-gh jonlamb-gh requested a review from mullr February 7, 2024 17:05
@@ -320,6 +320,34 @@
break;
}
});
cy.on("cxttap", function (evt) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

cxttap? 🙄


const templateUri = vscode.Uri.joinPath(this.extensionUri, "templates", "detailsPanel.html");
const templateText = fs.readFileSync(templateUri.fsPath, "utf8");
const template = handlebars.compile(templateText);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably load/compile the template in a less granular scope, like maybe the panel constructor.

}

function constructEvents(events) {
eventsHeader.innerHTML = "Events";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since the whole element is being hidden, we can probably put the content for these headers in the template itself, and not worry about having to set innerHTML

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried this, but they still show up on initialization when the panel loads. Not sure why, but I assume it's something to do with the flex box display/styling.

Copy link
Collaborator

@mullr mullr left a comment

Choose a reason for hiding this comment

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

Very small style notes

@jonlamb-gh jonlamb-gh merged commit 8f4a2dc into main Feb 9, 2024
1 check passed
@jonlamb-gh jonlamb-gh deleted the details-panel branch February 9, 2024 11:25
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.

2 participants