@@ -4,18 +4,17 @@ import { tracked } from '@glimmer/tracking';
4
4
import type AuthenticatorService from 'codecrafters-frontend/services/authenticator' ;
5
5
import type CoursePageStateService from 'codecrafters-frontend/services/course-page-state' ;
6
6
import type CourseStageModel from 'codecrafters-frontend/models/course-stage' ;
7
- import type FeatureFlagsService from 'codecrafters-frontend/services/feature-flags' ;
8
7
import type RepositoryModel from 'codecrafters-frontend/models/repository' ;
9
8
import type CourseStageStep from 'codecrafters-frontend/utils/course-page-step-list/course-stage-step' ;
10
9
import { action } from '@ember/object' ;
11
10
import type RouterService from '@ember/routing/router-service' ;
12
11
import { next } from '@ember/runloop' ;
13
12
import { task } from 'ember-concurrency' ;
14
13
import type Store from '@ember-data/store' ;
14
+
15
15
export default class CourseStageInstructionsController extends Controller {
16
16
@service declare authenticator : AuthenticatorService ;
17
17
@service declare coursePageState : CoursePageStateService ;
18
- @service declare featureFlags : FeatureFlagsService ;
19
18
@service declare router : RouterService ;
20
19
@service declare store : Store ;
21
20
@@ -48,10 +47,6 @@ export default class CourseStageInstructionsController extends Controller {
48
47
return this . model . courseStage . prerequisiteInstructionsMarkdownFor ( this . model . activeRepository ) ;
49
48
}
50
49
51
- get shouldHideTestRunnerCardBeforeStage1Submission ( ) {
52
- return this . featureFlags . cannotSeeTestRunnerCardBeforeStage1Submission ;
53
- }
54
-
55
50
get shouldShowFeedbackPrompt ( ) {
56
51
return ! this . currentStep . courseStage . isFirst && this . currentStep . status === 'complete' ;
57
52
}
@@ -61,21 +56,7 @@ export default class CourseStageInstructionsController extends Controller {
61
56
}
62
57
63
58
get shouldShowTestRunnerCard ( ) {
64
- if ( ! this . isCurrentStage ) {
65
- return false ;
66
- }
67
-
68
- if ( this . currentStep . status === 'complete' ) {
69
- return false ;
70
- }
71
-
72
- if ( this . model . courseStage . isFirst ) {
73
- // For stage 1, we hide the test runner card until the user's submission.
74
- return ! ( this . model . activeRepository . submissionsCount <= 1 && this . shouldHideTestRunnerCardBeforeStage1Submission ) ;
75
- } else {
76
- // For other stages, we always show the test runner card
77
- return true ;
78
- }
59
+ return this . isCurrentStage && this . currentStep . status !== 'complete' ;
79
60
}
80
61
81
62
get shouldShowUpgradePrompt ( ) {
0 commit comments