Skip to content

Commit d531b3c

Browse files
committed
fix: update test results bar UI and rename autofix tab
Rename "AI Hints" tab to "Custom Hints" to improve clarity and better reflect its purpose. Remove unnecessary gap between panes when expanded to create a cleaner layout. Add left padding to the right pane when visible to improve spacing and visual balance. These changes enhance usability and visual consistency of the test results bar component.
1 parent 7435827 commit d531b3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/components/course-page/test-results-bar/index.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
>
2525
{{#if this.isExpanded}}
2626
{{! min-h-0 ensures div doesn't outgrow container !}}
27-
<div class="flex gap-6 grow border-b border-gray-800 px-6 min-h-0">
27+
<div class="flex grow border-b border-gray-800 px-6 min-h-0">
2828
<CoursePage::TestResultsBar::Pane
2929
@activeTabSlug={{this.activeTabSlugForLeftPane}}
3030
@onActiveTabSlugChange={{fn (mut this.activeTabSlugForLeftPane)}}
@@ -50,7 +50,7 @@
5050
@activeTabSlug={{this.activeTabSlugForRightPane}}
5151
@onActiveTabSlugChange={{fn (mut this.activeTabSlugForRightPane)}}
5252
@availableTabSlugs={{this.availableTabSlugsForRightPane}}
53-
class="transition-[width,opacity] duration-200 ease-out {{if this.shouldShowRightPane 'w-1/2 opacity-100' 'w-[0] opacity-0'}} grow"
53+
class="transition-[width,opacity] duration-200 ease-out {{if this.shouldShowRightPane 'w-1/2 pl-6 opacity-100' 'w-[0] opacity-0'}} grow"
5454
>
5555
{{! Extra if convinces glint that autofixRequest is not null }}
5656
{{#if this.autofixRequestForActiveStep}}

app/components/course-page/test-results-bar/pane.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class Pane extends Component<Signature> {
2525
},
2626
{
2727
slug: 'autofix',
28-
title: 'AI Hints',
28+
title: 'Custom Hints',
2929
icon: 'sparkles',
3030
},
3131
];

0 commit comments

Comments
 (0)