Skip to content

Commit 0352649

Browse files
authored
fix(blueprint): showing blueprint failure reason in detail page (#55)
## Description <!-- Provide a brief description of your changes --> **Note:** PR titles should follow [Conventional Commits](https://www.conventionalcommits.org/) format (e.g., `feat(devbox): add support for custom env vars` or `fix(snapshot): resolve pagination issue`) as they are used for automatic release notes generation. ## Type of Change <!-- Mark the relevant option with an 'x' --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Test updates ## Related Issues <!-- Link to related issues using #issue-number --> Closes # ## Changes Made <!-- Describe the changes in detail --> ## Testing <!-- Describe how you tested your changes --> - [ ] I have tested locally - [ ] I have added/updated tests - [ ] All existing tests pass ## Checklist - [ ] My code follows the code style of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published ## Screenshots (if applicable) <!-- Add screenshots to help explain your changes --> ## Additional Notes <!-- Any additional information that reviewers should know -->
1 parent f1d39be commit 0352649

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/screens/BlueprintDetailScreen.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,22 @@ export function BlueprintDetailScreen({
240240
}
241241
}
242242

243+
// Error section - show failure reason if present
244+
if (blueprint.failure_reason) {
245+
detailSections.push({
246+
title: "Error",
247+
icon: figures.cross,
248+
color: colors.error,
249+
fields: [
250+
{
251+
label: "Failure Reason",
252+
value: blueprint.failure_reason,
253+
color: colors.error,
254+
},
255+
],
256+
});
257+
}
258+
243259
// Operations available for blueprints
244260
const operations: ResourceOperation[] = [
245261
{
@@ -358,6 +374,14 @@ export function BlueprintDetailScreen({
358374
Status: {bp.status}
359375
</Text>,
360376
);
377+
if (bp.failure_reason) {
378+
lines.push(
379+
<Text key="core-failure" color={colors.error}>
380+
{" "}
381+
Failure Reason: {bp.failure_reason}
382+
</Text>,
383+
);
384+
}
361385
if (bp.create_time_ms) {
362386
lines.push(
363387
<Text key="core-created" dimColor>

0 commit comments

Comments
 (0)