Skip to content

Conversation

@runningcode
Copy link
Contributor

@runningcode runningcode commented Nov 28, 2025

Summary

Adds a second line of information showing version build number and date.
I also adjust the logic to only show the buildId if the build number is missing since it was confusing the difference between the buildId and buildNumber when presented visually.

Before:
image

After:
image

Also on comparison selection screen:
image

Also light mode:
image

Changes

  • Added two-line layout showing version, build number, and date
  • Increased text size from small to medium for better readability
  • Metadata line (version, build number, date) aligned with build info

Fixes EME-520

Add two-line layout for build comparison UI with enhanced metadata:
- Display version, build number, and date on second line
- Increase text size from sm to md for better readability
- Add proper padding (lg) for improved visual spacing
- Align metadata text with build information above
@runningcode runningcode requested a review from a team as a code owner November 28, 2025 09:30
@linear
Copy link

linear bot commented Nov 28, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 28, 2025
);
}

const StyledLinkButton = styled(LinkButton)`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to create this otherwise the LinkButton's height would be fixed and the elements would overflow.

);

// Build metadata parts for the second line
const metadataParts = [formattedDate];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the date isn't optional, everything else is.

Comment on lines +47 to +57
const dateToShow = dateBuilt || dateAdded;
const formattedDate = getFormattedDate(
dateToShow,
getFormat({timeZone: true, year: true}),
{
local: true,
}
);

// Build metadata parts for the second line
const metadataParts = [formattedDate];

This comment was marked as outdated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe we always have at least the date_added so this shouldn't happen.

}
if (buildNumber) {
metadataParts.unshift(`Build ${buildNumber}`);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Metadata order reversed from documented intent

The metadataParts array construction produces "Build number • Version • Date" but the PR description specifies "Version • Build number • Date". Using unshift adds each item to the beginning of the array, so adding version first then buildNumber results in buildNumber appearing first. To match the documented order, either reverse the order of the conditionals, or use push instead of unshift with the items already in the desired order.

Fix in Cursor Fix in Web

{
local: true,
}
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Missing date displays current date instead of fallback

When both dateBuilt and dateAdded are undefined or null, dateToShow becomes undefined. Passing undefined to getFormattedDate (which wraps moment.js) causes it to return the current date/time instead of handling the missing data case. This results in displaying today's date in the metadata line, which would mislead users about when the build was actually created.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe we always have at least the date_added so this shouldn't happen.

Only show the build ID (#xxx) when there's no build_number to avoid
redundant information in the UI.
@runningcode runningcode changed the title feat(preprod): Improve clarity on base build in comparison (EME-520) feat(preprod): Add second row with build number, version info and date to comparison screen (EME-520) Nov 28, 2025
Copy link
Contributor

@chromy chromy left a comment

Choose a reason for hiding this comment

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

lgtm!

@runningcode runningcode merged commit 754f82b into master Nov 28, 2025
50 checks passed
@runningcode runningcode deleted the no/eme-520-improve-clarity-on-base-build-in-comparison branch November 28, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants