Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
with:
node-version: 22
cache: 'npm'

- run: npm install
- run: npm run build-storybook --workspace=@tomplum/react-git-log-demo

Expand All @@ -39,6 +38,19 @@ jobs:
- run: npm install
- run: npm run lint

docs:
runs-on: ubuntu-latest
needs: [build-library, lint]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm install
- run: npm run docs --workspace=@tomplum/react-git-log
working-directory: packages/library

unit-tests-library:
runs-on: ubuntu-latest
needs: [build-library, lint]
Expand Down Expand Up @@ -118,4 +130,4 @@ jobs:
with:
command: 'test'
json: true
args: --severity-threshold=high --all-projects
args: --severity-threshold=high --all-projects
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ jobs:
- run: npm install
- run: npm run lint

docs:
runs-on: ubuntu-latest
needs: [build-library, lint]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- run: npm install
- run: npm run docs --workspace=@tomplum/react-git-log
working-directory: packages/library

unit-tests-library:
runs-on: ubuntu-latest
needs: [build-library, lint]
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ packages/library/tomplum-react-git-log-*

*storybook.log
packages/demo/storybook-static

packages/library/coverage
packages/library/coverage
packages/library/docs
12 changes: 12 additions & 0 deletions .run/library _ docs.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="library &gt; docs" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/packages/library/package.json" />
<command value="run" />
<scripts>
<script value="docs" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>
30 changes: 18 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ A flexible and interactive React component for visualising Git commit history. D
* [Development](#development)
* [References](#references)
* [Roadmap](#roadmap)
* [Known Bugs](#known-bugs)
<!-- TOC -->

# Features
Expand Down Expand Up @@ -474,21 +475,26 @@ The following properties are injected into the functions `props` argument:
- And Iain Ballard for his experimental GUI [SnivellingGit](https://github.com/i-e-b/SnivellingGit/tree/master)

# Roadmap

Storybook Demo
- Show code in stories
- Expose custom theme object off the Theme type
- Can Zustand help us here to reduce re-renders with GitContext Provider?
- Expose component override props for things like CommitNode, CommitMessage etc.
- Straight line prop to turn curves into right angles?
- Line curve radius prop?
- Fix React docgen in Storybook controls as its not showing the JSDoc from the interface props
- Mobile responsiveness for the demo site
- Fix React docgen in Storybook controls as it's not showing the JSDoc from the interface props
- Mobile responsiveness

Graphs
- Straight line prop to turn curves into right angles
- Line curve radius prop
- Tags should be independent. Add a new optional field to the log entry / commit objects.
- Branch / Tags column is fixed. Dynamically floor it to match the max tag size currently being rendered?
- Support filtering so that the graph skips nodes

Canvas2D
- Fade out of line at bottom
- Tooltips?
- Custom prop for BG colour because of how canvas alpha channel works
- Tooltip support
- Row spacing support
- First col background cut off by canvas
- Branch/tag lines to lining up with nodes.
- Selected node BG colour still isn't right.

# Known Bugs
- The `GraphCanvas2D` component has the preview/select background cut off by canvases left-edge.
- The `GraphCanvas2D` component does not set the correct selected node BG colour, it's slightly off from the table row.
- The `GraphHTMLGrid` component renders the node-edge gradient to last node, but should be solid.
- The `GraphHTMLGrid` component is missing node edges from some commit nodes that are present in the canvas variant.
Loading