-
Notifications
You must be signed in to change notification settings - Fork 122
Fix Appearance (Light/Dark Mode) Issues of Course Smart Search #3016
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
Conversation
refs: MBL-18169 affects: Student release note: Fixed appearance (light/dark mode) issues for Course Smart Search
Release Note:Fixed appearance (light/dark mode) issues for Course Smart Search Affected Apps: Student❌ XCTest failed: CoreTests/AssignmentCellViewModelTests/testSubmissionStatusAndIconAndColor
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA+1 on functionality. I left a comment about the color lookup helpers that I would change.
Core/Core/Contexts/Context.swift
Outdated
var color: UIColor? { contextColor?.color } | ||
|
||
var contextColor: ContextColor? { | ||
contextColor(in: AppEnvironment.shared.database.viewContext) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove these helpers to make it explicit that these properties are not part of the Context
object and fast to access because in the background they do a CoreData fetch that could have negative effect on performance if used frequently for example during SwiftUI rendering. The functions below are clearer for me that they work with CoreData to produce the result and might be slow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA + 1
refs: MBL-18169
affects: Student
release note: Fixed appearance (light/dark mode) issues for Course Smart Search
Test Plan
See ticket description.
Checklist