All notable changes to this project will be documented in this file.
-
UI Enhancement: Now, when hovering over the commit dot or commit info block, transparent grey block is displayed. Additionally, long commit messages now have tooltips for improved readability. Moreover, the commit link's text color changes to blue when hovered.
-
Add dependency: The project now includes the react-tooltip dependency.
-- Fixed: Resolved the width issue of the transparent block that appeared when hovering over a commit dot.
-- Fixed: Fixed console errors.
-- Fixed: Enforce types.
-- Fixed: Fixed crashes on dolt hosted pages caused by mouseOver and mouseLeave.
-- Fixed: Fixed commit message tooltip gets cut off.
-- Fixed: Fixed tooltip width.
-- UI Enhancement: Show all the branches on the same commit.
-- UI Enhancement: Add branch number next to the label.
-- UI Fix Fix branch name exceeds border.
-- Bump dependencies.
-- UI Enhancement: Right align the branches list.
-- UI Enhancement: Add support for RGB color.
-- Bump Dependencies
-- Bump Dependencies
- Prop Types Modification: The prop types have been modified to align with the GitHub commit and branch object schema. This change affects all components that utilize commit and branch prop types.
- Added support for infinite scroll, allowing for the dynamic loading of new commits as scrolling down.
- A GitHub log graph example in Storybook, demonstrating the new features and how to implement them in your projects.
If you are upgrading from a version prior to 2.0.0, please note the changes to prop types:
- Ensure that your commit and branch data structures conform to the new schema expected by the updated components.
-
**Migration example:
// Old commit format { hash: 'commitHash', ownerName: 'owner', repoName: 'repo', committer: { username: 'committerUsername', displayName: 'Committer Name', emailAddress: '[email protected]' }, message: 'Commit message', parents: ['parentHash1', 'parentHash2'], committedAt: '2024-03-10', commitLink: 'https://example.com/commit/commitHash' } // New commit format { sha: 'commitHash', commit: { author: { name: 'Committer Name', date: '2024-03-10', // or Date object or number email: '[email protected]' }, message: 'Commit message', }, parents: [{ sha: 'parentHash1' }, { sha: 'parentHash2' }], html_url: 'https://example.com/commit/commitHash' } // Old branch format { branchName: 'main', headCommitHash: 'latestCommitHash', branchLink: 'https://example.com/branch/main' } // New branch format { name: 'main', commit: { sha: 'latestCommitHash' }, link: 'https://example.com/branch/main' }
-- Fixed: Fixed console unique key
warning.
-- Add dateFormatFn
prop.
-- Fixed: Fixed the branches dropdown overlap issue. Fixed the branch label link not clickable issue.
-- Added: Added support for current branch, so it will always show up first.
-- Avoid auto focus on the first link in the branches dropdown.
-- Add option to display full sha of commits.
-- Bump dependencies, clean up unused dependencies, set sourcemap to be false.
-- Bump dependencies, name x and y positions correctly, refactor.
-- Token fix, storybook deploy.
-- Storybook, add custom repo graph.
-- Graph style fix, edit readme.
-- Add optional onCommitClick
function, click color block.
-- Added diff stats on commit click via the getDiff
function.
-- Add support for Dolt diff.
-- Diff section UI fixes.