Skip to content

Conversation

@cameroncooke
Copy link
Contributor

@cameroncooke cameroncooke commented Dec 18, 2025

This commit introduces new functionality to render a "Base Build" row based on the presence of base build information, enhancing the clarity and usability of the build details display. New utility functions for formatting build names and generating base build URLs have also been added. Additionally replaced the title "Git details" with "Build Metadata" in the build details sidebar and related tests.

No Base Build

Screenshot 2025-12-18 at 10 33 22

No Base Artefact

Screenshot 2025-12-17 at 14 50 55

With Base Artefact

Screenshot 2025-12-18 at 09 59 05

Testing

Manual tested and updated and also added integration tests for all three states.

Merging

Requires #105145 to be merged first then this branch will be rebased onto master which will remove the API changes shown in this PR. For review please just review the frontend changes, backend changes should be reviewed as part of the above linked PR.

@linear
Copy link

linear bot commented Dec 18, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 18, 2025
Copy link
Contributor Author

@cameroncooke cameroncooke marked this pull request as ready for review December 18, 2025 16:45
@cameroncooke cameroncooke requested a review from a team as a code owner December 18, 2025 16:45
@cameroncooke
Copy link
Contributor Author

This might win the award for longest branch name 🤣

@cameroncooke cameroncooke force-pushed the cameroncooke/12-18-refactor_preprod_update_build_details_to_use_build_metadata_instead_of_git_details_and_add_base_build_row_logic_eme-679_ branch from 253d89c to 604bc8b Compare December 18, 2025 17:16
@cameroncooke cameroncooke force-pushed the cameroncooke/12-18-refactor_preprod_update_build_details_to_use_build_metadata_instead_of_git_details_and_add_base_build_row_logic_eme-679_ branch from 604bc8b to fca93b5 Compare December 18, 2025 17:54
Copy link
Member

@trevor-e trevor-e left a comment

Choose a reason for hiding this comment

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

Pre-stamped with a suggestion

version: string | number | null | undefined,
buildNumber: string | number | null | undefined
): string {
return `v${version ?? 'Unknown'} (${buildNumber ?? 'Unknown'})`;
Copy link
Member

Choose a reason for hiding this comment

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

I think we want to move away from showing "Unknown" when the build is still processing, I recommend returning null here so we simply don't display anything. Alternatively we could show some kind of loading state for the base build but I think that's overkill since this is a rare case.

Basically we have a very slight race condition with build processing where the base build could process longer/after the the head build.

…ad of "Git details" and add base build row logic (EME-679)

This commit changes the label from "Git details" to "Build Metadata" in the build details sidebar and updates the corresponding tests. Additionally, it introduces logic to render a "Base Build" row based on the presence of `base_sha` and `base_build_info`, enhancing the build details display. New utility functions for formatting build names and generating base build URLs have also been added.
@cameroncooke cameroncooke force-pushed the cameroncooke/12-18-refactor_preprod_update_build_details_to_use_build_metadata_instead_of_git_details_and_add_base_build_row_logic_eme-679_ branch from fca93b5 to fc98b33 Compare December 19, 2025 09:31
@cameroncooke cameroncooke merged commit 58eb156 into master Dec 19, 2025
49 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/12-18-refactor_preprod_update_build_details_to_use_build_metadata_instead_of_git_details_and_add_base_build_row_logic_eme-679_ branch December 19, 2025 09:50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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