Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Code] Commit component rework (elastic#46097)
* Remove unnecessary whitespace * Split CommitHistory into multiple files There were already >5 components in this file; this splits them into smaller, distinct components/files and an index. * Extract props to interfaces Rather than keeping them inline. * Add basic implementation of new commit actions This is embedded within the Commit component, for now. Obviates CommitLink for now, but we'll address that in the PR. * Update the remainder of the Commit layout * Parses and displays the commit title/description * Parses and displays the author and date * Adds new translations * Update translation keys to match naming standards See https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/GUIDELINE.md for details. * Extract commit message parsing to helper util * Move CommitLink to commit folder * Fix font-sizes of commit text I was reading the wrong field in figma. Whoops! * Add RepoLink component controlled by a boolean If we're already viewing the commit in the context of the repo, the link here isn't as helpful. For our first use, the commit history, that is the case. * Simpler construction of app paths We should build a helper for this, but these are strewn about the codebase. * Update snapshots following text size changes * Truncate summary text * Fix type error on test component * Make date-dependent test timezone-agnostic Uses Date.UTC to get a non-relative date/time.
- Loading branch information