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

Fix: tree list page #56

Merged
merged 4 commits into from
Jul 4, 2024
Merged

Fix: tree list page #56

merged 4 commits into from
Jul 4, 2024

Conversation

mari1912
Copy link
Collaborator

@mari1912 mari1912 commented Jul 4, 2024

Description

Do some small changes, like:

  • change commit/tag column name
  • order the table by each tree name or branch
  • change the way test status is shown
  • make lateral bar labels in plural

@mari1912 mari1912 self-assigned this Jul 4, 2024
@@ -71,31 +71,35 @@ const TreeListingPage = (): JSX.Element => {
const { data } = useTreeTable();

const listItems: TreeTableBody[] = useMemo(() => {

Choose a reason for hiding this comment

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

nit: Add an early if !data before to make it easier to read

buildStatus: `${tree.build_status.valid} / ${tree.build_status.total}`,
testStatus: `${tree.test_status.fail} / ${tree.test_status.total}`,
})
}).sort((a, b) => a.name.localeCompare(b.name, undefined, {numeric: true}) || a.branch.localeCompare(b.branch, undefined, {numeric: true})) : [];
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: break into more lines

@mari1912 mari1912 force-pushed the fix/tree-list-page branch from 4d129d8 to 649af63 Compare July 4, 2024 20:33
@mari1912 mari1912 merged commit 42d5a45 into main Jul 4, 2024
4 checks passed
@mari1912 mari1912 deleted the fix/tree-list-page branch July 4, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants