Skip to content

Commit be1edd5

Browse files
committed
completed survey implementation with some minor bug fixes. ready to merge to main
1 parent a531665 commit be1edd5

23 files changed

Lines changed: 1267 additions & 13425 deletions

File tree

task-tracker-plugin/src/main/kotlin/org/jetbrains/research/ml/tasktracker/ui/panes/SurveyPane.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,15 @@ class SurveyController(project: Project, scale: Double, fxPanel: JFXPanel, id: I
142142
private fun makeTranslatable() {
143143
subscribe(LanguageNotifier.LANGUAGE_TOPIC, object : LanguageNotifier {
144144
override fun accept(newLanguageIndex: Int) {
145-
val newLanguage = LanguagePaneUiData.language.dataList[newLanguageIndex]
146-
val surveyPaneText = translations?.get(newLanguage)
147-
surveyPaneText?.let {
148-
pinLabel.text = it.pin
149-
startWorkingText.text = it.startSession
145+
if (LanguagePaneUiData.language.dataList.isNotEmpty()) {
146+
val newLanguage = LanguagePaneUiData.language.dataList[newLanguageIndex]
147+
val surveyPaneText = translations?.get(newLanguage)
148+
surveyPaneText?.let {
149+
pinLabel.text = it.pin
150+
startWorkingText.text = it.startSession
151+
}
152+
} else {
153+
logger.warn("Language data list is empty.")
150154
}
151155
}
152156
})

task-tracker-plugin/src/main/kotlin/org/jetbrains/research/ml/tasktracker/ui/panes/TaskChoosingPane.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,16 @@ class TaskChoosingController(project: Project, scale: Double, fxPanel: JFXPanel,
9898
}
9999

100100
private fun initChoseTaskComboBox() {
101-
choseTaskObservableList = FXCollections.observableList(paneUiData.chosenTask.dataList.map {
101+
val dataList = paneUiData.chosenTask.dataList
102+
if (dataList.isEmpty()) {
103+
logger.warn("No tasks available to populate ComboBox.")
104+
choseTaskObservableList = FXCollections.observableArrayList("No tasks available")
105+
choseTaskComboBox.isDisable = true
106+
startSolvingButton.isDisable = true
107+
return
108+
}
109+
110+
choseTaskObservableList = FXCollections.observableList(dataList.map {
102111
it.infoTranslation[LanguagePaneUiData.language.currentValue]?.name
103112
})
104113
choseTaskComboBox.items = choseTaskObservableList

task-tracker-server/logs/logs.log

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3675,3 +3675,153 @@ Thu Jan 23 2025 16:51:52 GMT-0500 (Eastern Standard Time): 3 genders were receiv
36753675
Thu Jan 23 2025 16:51:52 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
36763676
Thu Jan 23 2025 16:51:52 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
36773677
Thu Jan 23 2025 16:51:52 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3678+
Thu Jan 23 2025 17:26:18 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3679+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time):Settings was created successfully
3680+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Task pies was created successfully
3681+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Task max_3 was created successfully
3682+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Task is_zero was created successfully
3683+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Task max_digit was created successfully
3684+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Task voting was created successfully
3685+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Task brackets was created successfully
3686+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was created successfully
3687+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Dialog text successful_submit was created successfully
3688+
Thu Jan 23 2025 17:26:22 GMT-0500 (Eastern Standard Time): Dialog text task_submit_error was created successfully
3689+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): Settings was received successfully
3690+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3691+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3692+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3693+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3694+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3695+
Thu Jan 23 2025 17:39:03 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3696+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): Settings was received successfully
3697+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3698+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3699+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3700+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3701+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3702+
Thu Jan 23 2025 17:54:43 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3703+
Thu Jan 23 2025 18:00:48 GMT-0500 (Eastern Standard Time): Settings was received successfully
3704+
Thu Jan 23 2025 18:00:49 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3705+
Thu Jan 23 2025 18:00:49 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3706+
Thu Jan 23 2025 18:00:49 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3707+
Thu Jan 23 2025 18:00:49 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3708+
Thu Jan 23 2025 18:00:49 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3709+
Thu Jan 23 2025 18:00:49 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3710+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): Settings was received successfully
3711+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3712+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3713+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3714+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3715+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3716+
Thu Jan 23 2025 18:02:57 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3717+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): Settings was received successfully
3718+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3719+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3720+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3721+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3722+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3723+
Thu Jan 23 2025 18:08:36 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3724+
Thu Jan 23 2025 18:08:47 GMT-0500 (Eastern Standard Time): User was created successfully
3725+
Thu Jan 23 2025 18:09:39 GMT-0500 (Eastern Standard Time): Activity tracker item was created successfully
3726+
Thu Jan 23 2025 18:09:39 GMT-0500 (Eastern Standard Time): Data item was created successfully
3727+
Thu Jan 23 2025 18:09:39 GMT-0500 (Eastern Standard Time): User with id 1 was received successfully
3728+
Thu Jan 23 2025 18:09:39 GMT-0500 (Eastern Standard Time): Data item with id 1 was received successfully
3729+
Thu Jan 23 2025 18:09:39 GMT-0500 (Eastern Standard Time): Activity tracker item with id 1 was received successfully
3730+
Thu Jan 23 2025 18:09:39 GMT-0500 (Eastern Standard Time): user 1 was updates successfully. Added data: di 1, ati 1
3731+
Thu Jan 23 2025 18:11:22 GMT-0500 (Eastern Standard Time): Settings was received successfully
3732+
Thu Jan 23 2025 18:11:22 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3733+
Thu Jan 23 2025 18:11:22 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3734+
Thu Jan 23 2025 18:11:22 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3735+
Thu Jan 23 2025 18:11:23 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3736+
Thu Jan 23 2025 18:11:23 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3737+
Thu Jan 23 2025 18:11:23 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3738+
Thu Jan 23 2025 18:11:41 GMT-0500 (Eastern Standard Time): Activity tracker item was created successfully
3739+
Thu Jan 23 2025 18:11:41 GMT-0500 (Eastern Standard Time): Data item was created successfully
3740+
Thu Jan 23 2025 18:11:41 GMT-0500 (Eastern Standard Time): User with id 1 was received successfully
3741+
Thu Jan 23 2025 18:11:41 GMT-0500 (Eastern Standard Time): Data item with id 2 was received successfully
3742+
Thu Jan 23 2025 18:11:41 GMT-0500 (Eastern Standard Time): Activity tracker item with id 2 was received successfully
3743+
Thu Jan 23 2025 18:11:41 GMT-0500 (Eastern Standard Time): user 1 was updates successfully. Added data: di 2, ati 2
3744+
Thu Jan 23 2025 18:13:34 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3745+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): Settings was received successfully
3746+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3747+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3748+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3749+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3750+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3751+
Thu Jan 23 2025 18:13:37 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3752+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): Settings was received successfully
3753+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3754+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3755+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3756+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3757+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3758+
Thu Jan 23 2025 18:13:54 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3759+
Thu Jan 23 2025 18:14:14 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3760+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time):Settings was created successfully
3761+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Task pies was created successfully
3762+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Task max_3 was created successfully
3763+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Task is_zero was created successfully
3764+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Task max_digit was created successfully
3765+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Task voting was created successfully
3766+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Task brackets was created successfully
3767+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was created successfully
3768+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Dialog text successful_submit was created successfully
3769+
Thu Jan 23 2025 18:14:21 GMT-0500 (Eastern Standard Time): Dialog text task_submit_error was created successfully
3770+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): Settings was received successfully
3771+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3772+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3773+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3774+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3775+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3776+
Thu Jan 23 2025 18:15:40 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3777+
Thu Jan 23 2025 18:16:47 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3778+
Thu Jan 23 2025 18:17:01 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3779+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time):Settings was created successfully
3780+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Task pies was created successfully
3781+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Task max_3 was created successfully
3782+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Task is_zero was created successfully
3783+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Task max_digit was created successfully
3784+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Task voting was created successfully
3785+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Task brackets was created successfully
3786+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was created successfully
3787+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Dialog text successful_submit was created successfully
3788+
Thu Jan 23 2025 18:17:07 GMT-0500 (Eastern Standard Time): Dialog text task_submit_error was created successfully
3789+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): Settings was received successfully
3790+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3791+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3792+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3793+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3794+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3795+
Thu Jan 23 2025 18:17:53 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3796+
Thu Jan 23 2025 18:29:37 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3797+
Thu Jan 23 2025 18:31:51 GMT-0500 (Eastern Standard Time): Settings was received successfully
3798+
Thu Jan 23 2025 18:31:51 GMT-0500 (Eastern Standard Time): 1 languages were received successfully
3799+
Thu Jan 23 2025 18:31:51 GMT-0500 (Eastern Standard Time): 6 tasks were received successfully
3800+
Thu Jan 23 2025 18:31:51 GMT-0500 (Eastern Standard Time): 3 genders were received successfully
3801+
Thu Jan 23 2025 18:31:51 GMT-0500 (Eastern Standard Time): 1 countries were received successfully
3802+
Thu Jan 23 2025 18:31:52 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was received successfully
3803+
Thu Jan 23 2025 18:31:52 GMT-0500 (Eastern Standard Time): 1 programming languages were received successfully
3804+
Thu Jan 23 2025 18:32:33 GMT-0500 (Eastern Standard Time): User was created successfully
3805+
Thu Jan 23 2025 18:33:01 GMT-0500 (Eastern Standard Time): Activity tracker item was created successfully
3806+
Thu Jan 23 2025 18:33:01 GMT-0500 (Eastern Standard Time): Data item was created successfully
3807+
Thu Jan 23 2025 18:33:01 GMT-0500 (Eastern Standard Time): User with id 1 was received successfully
3808+
Thu Jan 23 2025 18:33:01 GMT-0500 (Eastern Standard Time): Data item with id 1 was received successfully
3809+
Thu Jan 23 2025 18:33:01 GMT-0500 (Eastern Standard Time): Activity tracker item with id 1 was received successfully
3810+
Thu Jan 23 2025 18:33:01 GMT-0500 (Eastern Standard Time): user 1 was updates successfully. Added data: di 1, ati 1
3811+
Thu Jan 23 2025 18:34:50 GMT-0500 (Eastern Standard Time): Activity tracker item was created successfully
3812+
Thu Jan 23 2025 18:34:50 GMT-0500 (Eastern Standard Time): Data item was created successfully
3813+
Thu Jan 23 2025 18:34:50 GMT-0500 (Eastern Standard Time): User with id 1 was received successfully
3814+
Thu Jan 23 2025 18:34:50 GMT-0500 (Eastern Standard Time): Data item with id 2 was received successfully
3815+
Thu Jan 23 2025 18:34:50 GMT-0500 (Eastern Standard Time): Activity tracker item with id 2 was received successfully
3816+
Thu Jan 23 2025 18:34:50 GMT-0500 (Eastern Standard Time): user 1 was updates successfully. Added data: di 2, ati 2
3817+
Thu Jan 23 2025 18:36:01 GMT-0500 (Eastern Standard Time): Server is listening on port 3000
3818+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time):Settings was created successfully
3819+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Task pies was created successfully
3820+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Task max_3 was created successfully
3821+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Task is_zero was created successfully
3822+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Task max_digit was created successfully
3823+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Task voting was created successfully
3824+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Task brackets was created successfully
3825+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Dialog text task_solving_error was created successfully
3826+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Dialog text successful_submit was created successfully
3827+
Thu Jan 23 2025 18:36:10 GMT-0500 (Eastern Standard Time): Dialog text task_submit_error was created successfully

0 commit comments

Comments
 (0)