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

feat(graph): add project details view #20466

Merged
merged 11 commits into from Dec 4, 2023
Merged

feat(graph): add project details view #20466

merged 11 commits into from Dec 4, 2023

Conversation

MaxKless
Copy link
Collaborator

@MaxKless MaxKless commented Nov 29, 2023

This adds a very rudimentary Project Details view to the graph app, available under /project-details/:projectName.
You can open this view by calling nx show project project1 --web.

By hovering over individual properties, the source map will be used to display which plugin & file resulted in this property being set.

Disclaimer: the view is ugly and will be improved in the future. More interactivity with the rest of the graph app will also be added.

Copy link

vercel bot commented Nov 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 1, 2023 3:48pm

Copy link
Collaborator

@philipjfulcher philipjfulcher left a comment

Choose a reason for hiding this comment

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

One small nitpick, one suggestion. Otherwise, it's a good starting point.

graph/project-details/src/lib/nx-welcome.tsx Outdated Show resolved Hide resolved
graph/client/src/app/routes.tsx Show resolved Hide resolved
@@ -749,6 +785,10 @@ async function createExpandedTaskInputResponse(
return response;
}

function createSourceMapsResponse() {
return readSourceMaps();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This reads it from the file? Can we make a new function which will build a graph and return the source map?

@FrozenPandaz FrozenPandaz merged commit 75cc561 into master Dec 4, 2023
6 checks passed
@FrozenPandaz FrozenPandaz deleted the project-details branch December 4, 2023 14:53
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants