Skip to content

Commit

Permalink
feat(graph): hover to see source & more UI updates (nrwl#21182)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Hsu <[email protected]>
  • Loading branch information
mandarini and jaysoo authored Jan 18, 2024
1 parent 8f6eed1 commit 6692953
Show file tree
Hide file tree
Showing 29 changed files with 1,065 additions and 535 deletions.
11 changes: 11 additions & 0 deletions graph/project-details/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable */
export default {
testEnvironment: 'jsdom',
displayName: 'graph-project-details',
preset: '../../jest.preset.js',
transform: {
'^.+\\.[tj]sx?$': 'babel-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/graph/project-details',
};
7 changes: 7 additions & 0 deletions graph/project-details/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "graph/project-details/jest.config.ts"
}
}
}
}
16 changes: 0 additions & 16 deletions graph/project-details/src/lib/get-source-information.ts

This file was deleted.

4 changes: 2 additions & 2 deletions graph/project-details/src/lib/project-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
useEnvironmentConfig,
useRouteConstructor,
} from '@nx/graph/shared';
import Target from './target';
import { TargetConfigurationDetails } from './target/target-configuration-details';

export interface ProjectDetailsProps {
project: ProjectGraphProjectNode;
Expand Down Expand Up @@ -89,7 +89,7 @@ export function ProjectDetails({
};
return (
<li className="mb-4">
<Target {...props} />
<TargetConfigurationDetails {...props} />
</li>
);
}
Expand Down
125 changes: 0 additions & 125 deletions graph/project-details/src/lib/property-renderer.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions graph/project-details/src/lib/target.spec.tsx

This file was deleted.

Loading

0 comments on commit 6692953

Please sign in to comment.