Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coach questions preview: Fix background and selection colors + resolve linter errors #12427

Merged

Conversation

MisRob
Copy link
Member

@MisRob MisRob commented Jul 8, 2024

Summary

  • Fixes colors of list items in the question preview
  • Remove hardcoded colors in favor of theme tokens
  • Fixes linter errors (see commit messages)
  • Removes unused component

After (see the linked issue for 'before')

after

References

Closes #12425

Reviewer guidance

Preview a quiz with several questions as a coach in Plan.

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

MisRob added 2 commits July 8, 2024 20:30
and remove hardcoded colors
in favor of theme tokens.

Fixes learningequality#12425
This fixes vue/require-v-for-key 'Elements in iteration expect to have 'v-bind:key' directives.'
lint error and ensures efficient Vue updates.
@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Jul 8, 2024
@MisRob MisRob added the TODO: needs review Waiting for review label Jul 8, 2024
@MisRob MisRob requested review from nucleogenesis, AllanOXDi and pcenov and removed request for pcenov July 8, 2024 18:42
@MisRob MisRob changed the title Fix background and selection colors in questions preview Coach questions preview: Fix background and selection colors + resolve linter errors Jul 8, 2024
@nucleogenesis nucleogenesis requested a review from pcenov July 8, 2024 19:39
Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM - thanks Misha! I added @pcenov as a reviewer here to get his thoughts on the updates and if this sufficiently addresses the related issue

Comment on lines -428 to -435

&:hover {
background-color: white;
}

&.selected {
background-color: white;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this in a bit of a rush 😅 - thanks for the reminder on $computedClass 😃

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, can happen 🙂

Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MisRob - I confirm that #12425 is fixed.

@MisRob MisRob requested a review from nucleogenesis July 9, 2024 17:09
@nucleogenesis nucleogenesis merged commit 3af96e0 into learningequality:develop Jul 9, 2024
33 checks passed
@pcenov
Copy link
Member

pcenov commented Jul 15, 2024

Hi @nucleogenesis I noticed that this fix is not in https://github.com/learningequality/kolibri/releases/tag/v0.17.0-beta2 - could you check why? Thanks!
cc @radinamatic

@radinamatic
Copy link
Member

As far as I can see the fix is present in 0.17b3, so we should be good 🙂

2024-07-22_07-32-08

@pcenov
Copy link
Member

pcenov commented Aug 2, 2024

Hi @radinamatic and @nucleogenesis - the fix is still not present in 0.17.0-rc2:

2024-08-02_16-12-27.mp4

@pcenov
Copy link
Member

pcenov commented Nov 29, 2024

@MisRob and @nucleogenesis - for some reason this is still not merged even in https://github.com/learningequality/kolibri/releases/tag/v0.18.0-alpha0 - could you investigate why is this the case?

2024-11-29_15-16-11.mp4

@MisRob
Copy link
Member Author

MisRob commented Dec 2, 2024

@pcenov I wonder if it could be possibly caused a merge conflict, but I am not sure. I re-opened #12425.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EQM - Preview quiz - The selection effect is reversed
4 participants