Skip to content

teams: smoother survey rating scaling (fixes #13498)#13499

Merged
dogi merged 3 commits into
masterfrom
13498-surveys-ui-improvements
May 21, 2026
Merged

teams: smoother survey rating scaling (fixes #13498)#13499
dogi merged 3 commits into
masterfrom
13498-surveys-ui-improvements

Conversation

@Okuro3499
Copy link
Copy Markdown
Collaborator

Add support for configurable rating scales and replace static 1-9 buttons with dynamically generated buttons. RealmExamQuestion: introduce scaleMax (default 9) and parse it from JSON (fallback to 9 when invalid). ExamTakingFragment: generate rating buttons at runtime based on question.scaleMax, create styled StateListDrawable backgrounds (with optional gradient for 9-step scale), handle selection, maintain dynamicRatingButtons list, and clean up on destroy. Layout: change ll_rating_scale to wrap_content and remove hardcoded rating buttons so the fragment builds them dynamically. Overall: enable variable-length rating scales and improve styling/responsiveness.
@qltysh
Copy link
Copy Markdown

qltysh Bot commented May 15, 2026

❌ 1 blocking issue (1 total)

Tool Category Rule Count
qlty Structure Function with high complexity (count = 20): insertExamQuestions 1

@dogi dogi changed the title survey: make rating scale dynamic and configurable (fixes #13498) teams: smoother survey rating scaling (fixes #13498) May 21, 2026
@dogi dogi added priority and removed on hold labels May 21, 2026
@dogi dogi merged commit f9d7ecc into master May 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

surveys UI improvements

2 participants