48 Commits

Author SHA1 Message Date
Robin Olsen
1cfd23f1b0 Enhance command structure and user feedback in task management
- Added SprintCmd to issues command group
- taskLoop hide survey related commands when in repl
- Updated coding task instructions for clarity
- Removed redundant SprintCmd registration
- Improved REPL command handling for better user experience avoiding a chash if users type pm
- Enhanced task UI to display additional information
2026-04-03 11:19:57 +02:00
Robin Olsen
f755e9f01e Update participant guide and interface instructions for clarity and consistency 2026-04-01 13:28:51 +02:00
Robin Olsen
9b06557455 separete into fucntion and use charm dependency instead 2026-03-24 21:04:05 +01:00
Robin Olsen
6808ed3bbe collect submit source 2026-03-24 12:32:57 +01:00
Robin Olsen
fc10321430 refine statistics collection 2026-03-24 12:31:15 +01:00
Robin Olsen
cdb3d1dcd9 might fix repl bugs 2026-03-22 17:12:22 +01:00
Robin Olsen
ca0b00292b refine task ui alignment 2026-03-22 15:15:36 +01:00
Robin Olsen
5519b9d2eb make it even more clear and add a line describing how to submit 2026-03-19 12:41:48 +01:00
Ine Maria Nilssen Aanonsen
a7fd271928 INTERFACES SKIP TASK implemented more intuitive 'skip task' in each interface 2026-03-19 11:49:08 +01:00
Robin Olsen
2510429a7f upgrade mongodb driver dep 2026-03-18 15:20:16 +01:00
Robin Olsen
3e9a903506 works now 2026-03-18 11:58:31 +01:00
Robin Olsen
40d25cc716 start with upgdrade (broken right now) 2026-03-18 11:23:10 +01:00
Robin Olsen
ba6d97550e make sure to set task as completed 2026-03-16 14:19:54 +01:00
Robin Olsen
5919333fd3 add a interface descripton to each task 2026-03-11 19:39:03 +01:00
Robin Olsen
f2413b68f5 make sure taks are in order and interfaces random 2026-03-11 12:18:17 +01:00
Robin Olsen
839ce95c37 wait for interface to close 2026-03-11 11:24:34 +01:00
Robin Olsen
72a2e8acf5 Metrics and logs - MongoDB Submission (#43)
Adds MongoDB-backed submission for survey statistics/metrics and introduces MongoDB ObjectID-based participant/task identifiers to support upserts and linking metrics to a participant.

It introduces breaking changes to the exsisting json stat and metric files. Delete the old ones

Changes:

Add internal/storage/MongoStorage and wire pm survey submit / pm start to submit local .pm/*.json files to MongoDB.
Extend stats/metrics models to include MongoDB _id / participant_id fields and add participant ID propagation into task metrics.
Update app initialization to generate ObjectIDs for new participants and expose GetParticipantID() via StatsService.
2026-03-10 14:09:31 +01:00
Robin Olsen
3d183d7fcd change validation to be submission callback based 2026-03-04 22:43:28 +01:00
Robin Olsen
6e1c46948a expand width of task text box 2026-03-04 17:49:32 +01:00
Robin Olsen
6b1bdde561 Merge branch 'main' into Metrics-and-Logs 2026-03-04 14:32:54 +01:00
Robin Olsen
2fcd312072 Update pkg/task/metrics_store.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-04 14:02:48 +01:00
Robin Olsen
77b38692c6 align task with description
add a complete with message in case we need that
2026-03-04 14:00:35 +01:00
Robin Olsen
0b5d94b2ee fix typo 2026-03-03 14:07:03 +01:00
Robin Olsen
4a6b40509c dont need whitespace here 2026-03-03 13:39:20 +01:00
Robin Olsen
eafba71887 make more readable 2026-03-03 13:39:09 +01:00
Robin Olsen
763f079063 refactor for separation of concern for better readabiliy and maintainability 2026-03-03 11:41:07 +01:00
Robin Olsen
5ebe95b62f add metrics to tasks 2026-03-02 23:09:49 +01:00
Robin Olsen
fb9e8ab419 define metrics logger 2026-03-02 23:08:40 +01:00
Robin Olsen
ba4d3df669 refactor names and minimize dependencies 2026-02-28 22:17:55 +01:00
Robin Olsen
ba0115d1bc lots of changes and reducing dependency imports 2026-02-28 16:39:50 +01:00
Robin Olsen
8decd74952 make tasks use map instead of slice 2026-02-23 13:13:34 +01:00
Robin Olsen
235b07f7ce use registry for interfaces also
add list interfaces command
2026-02-22 22:58:04 +01:00
Robin Olsen
33c8c05ae3 refactor to decouple commands form entrypoint for reusability and centralizing commands.
Increase reusability and composition
2026-02-22 19:46:55 +01:00
Robin Olsen
118e67dbf4 refactor services to use Interface and change name to app 2026-02-22 16:16:09 +01:00
Robin Olsen
0f41f76679 add builders and chaining methods for various types and variables for better reusability and readability 2026-02-19 17:26:16 +01:00
Robin Olsen
4d6b70fb6a add some helpers to simplify task creation 2026-02-18 19:32:17 +01:00
Robin Olsen
2583ca13c3 sentralize userquiterror 2026-02-18 14:32:08 +01:00
Robin Olsen
b32e5a5946 Update pkg/task/runner.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-18 13:37:23 +01:00
Robin Olsen
23747fb799 refactor to use Tasker interface instead of Task
add tasker register for registering tasks for extiensibility
2026-02-18 13:07:23 +01:00
Robin Olsen
09725f4e5e refien task view styles and look 2026-02-17 22:04:23 +01:00
Robin Olsen
86c8bc3143 refactor for better reusability and maintainability 2026-02-17 15:17:49 +01:00
Robin Olsen
b75d55db90 check submit questonare 2026-02-17 13:35:11 +01:00
Robin Olsen
68af436a3f add so interfaces can see task feedback 2026-02-17 13:04:03 +01:00
Robin Olsen
279adb157e refactor for better maintainability and readabilty 2026-02-17 11:11:54 +01:00
Robin Olsen
a38e32aa78 use cobra for cli
delete pkg/runner and put funcs in task
add start command
2026-02-17 10:24:15 +01:00
Robin Olsen
b3b45e67be add exit mechanicm to each stage
remove types and moved struct to appropriate files
2026-02-16 13:08:45 +01:00
Robin Olsen
400a989454 fix typo 2026-02-13 10:16:43 +01:00
Robin Olsen
e994c890f4 refactor survery cmd
move package files to pkg
2026-02-13 10:13:41 +01:00