Track vote input method (hotkey vs mouse) in user_info.json - #74
Merged
Conversation
Co-authored-by: IvoLeist <28399610+IvoLeist@users.noreply.github.com>
Co-authored-by: IvoLeist <28399610+IvoLeist@users.noreply.github.com>
Co-authored-by: IvoLeist <28399610+IvoLeist@users.noreply.github.com>
…king Co-authored-by: IvoLeist <28399610+IvoLeist@users.noreply.github.com>
…mment capitalization Co-authored-by: IvoLeist <28399610+IvoLeist@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Log usage of hotkeys and mouse clicks per user
Track vote input method (hotkey vs mouse) in user_info.json
Feb 11, 2026
IvoLeist
marked this pull request as ready for review
February 23, 2026 15:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Median vote times range 2-15 seconds across users. This adds tracking to determine if hotkey usage explains the variance.
Implementation
JavaScript (hotkeys.js)
input$last_input_methodto Shiny server viasetInputValue()R Server
main_server.R: Initializesvote_input_methodsstructure in user_info.json on loginmod_voting.R: Increments counters (hotkey/mouse/unknown) on each new vote castData Structure
{ "user_id": "User1", "voting_institute": "InstituteA", "images_randomisation_seed": 12345, "vote_input_methods": { "hotkey_count": 45, "mouse_count": 15, "unknown_count": 0 } }Notes:
unknown_count > 0indicates tracking issues requiring investigationAnalysis: Correlate hotkey usage percentage with
time_till_vote_casted_in_secondsfrom user_annotations.tsv to quantify speed impact.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.