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

HMS-5268: Template detail page - minor ux changes #411

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ConditionalTooltip from 'components/ConditionalTooltip/ConditionalTooltip';
import EmptyTableState from 'components/EmptyTableState/EmptyTableState';
import Hide from 'components/Hide/Hide';
import { formatDateDDMMMYYYY } from 'helpers';
import { formatDateUTC } from 'helpers';
import useDeepCompareEffect from 'Hooks/useDeepCompareEffect';
import useRootPath from 'Hooks/useRootPath';
import { isEmpty } from 'lodash';
Expand Down Expand Up @@ -74,7 +74,7 @@ export default function TemplateRepositoriesTable({
}, [snapshotList.length]);

const columnHeaders = [
{ name: 'Repository Name' },
{ name: 'Name' },
{ name: 'Snapshot Date', width: 20 },
Copy link
Member

@swadeley swadeley Jan 16, 2025

Choose a reason for hiding this comment

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

Suggested change
{ name: 'Snapshot Date', width: 20 },
{ name: 'Snapshot date', width: 20 },

In associated Jira, red is used to highlight what is wanted.
EDIT: Maybe it was just sentence case that was asked for, i.e. 'Snapshot date'. I'll ask in Jira for confirmation.

{ name: 'Change', width: 15 },
{ name: 'Packages', width: 15 },
Expand All @@ -98,7 +98,7 @@ export default function TemplateRepositoriesTable({
<Thead>
<Tr>
{columnHeaders.map(({ name, width }, index) =>
name === 'Repository Name' || name === 'Snapshot Date' ? (
name === 'Name' || name === 'Snapshot Date' ? (
<Th
width={width as BaseCellProps['width']}
key={index + name + '_header'}
Expand Down Expand Up @@ -162,7 +162,7 @@ export default function TemplateRepositoriesTable({
</Hide>
</Flex>
</Td>
<Td>{formatDateDDMMMYYYY(created_at, true)}</Td>
<Td>{formatDateUTC(created_at)}</Td>
<Td>
<ChangedArrows
addedCount={added_counts?.['rpm.package'] || 0}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SharedTables/PackagesTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function PackagesTable({
setPrev(packagesList.length || 10);
}, [packagesList.length]);

const columnHeaders = ['Name', 'Version', 'Release', 'Arch'];
const columnHeaders = ['Name', 'Version', 'Release', 'Architecture'];

return (
<>
Expand Down
Loading