Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

feat: certificate banner stylistic changes on new course dashboard #1727

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

saeedbashir
Copy link
Contributor

@saeedbashir saeedbashir commented Feb 15, 2023

Description

LEARNER-9213

image

Comment on lines 93 to 95
let enrollment = environment.interface?.enrollmentForCourse(withID: course.course_id),
let certificateUrl = enrollment.certificateUrl,
let certificateImage = UIImage(named: "courseCertificate") else { return }
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let enrollment = environment.interface?.enrollmentForCourse(withID: course.course_id),
let certificateUrl = enrollment.certificateUrl,
let certificateImage = UIImage(named: "courseCertificate") else { return }
let enrollment = environment.interface?.enrollmentForCourse(withID: course.course_id),
let certificateUrl = enrollment.certificateUrl,
let certificateImage = UIImage(named: "courseCertificate") else { return }

let certificateUrl = enrollment.certificateUrl,
let certificateImage = UIImage(named: "courseCertificate") else { return }

let certificateItem = CourseCertificateIem(certificateImage: certificateImage, certificateUrl: certificateUrl, action: { [weak self] in
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let certificateItem = CourseCertificateIem(certificateImage: certificateImage, certificateUrl: certificateUrl, action: { [weak self] in
let certificateItem = CourseCertificateIem(certificateImage: certificateImage, certificateUrl: certificateUrl, action: { [weak self] in

Comment on lines +162 to +166
titleStyle.weight = .bold
titleStyle.size = .xxLarge
titleStyle.color = OEXStyles.shared().neutralBlack()
subtitleStyle.color = OEXStyles.shared().neutralXDark()
title = title.capitalized
Copy link
Contributor

Choose a reason for hiding this comment

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

how about declaring a variable and inside if condition, we define OEXTextStyle using the initializer, instead of chaning values of the titleStyle and subtitleStyle

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In that case we also have to set the title in if else condition. This way we are only setting it once. OEXMutableTextStyle was created to change on the run for cases like this.

@saeedbashir saeedbashir merged commit 364b140 into app_nav Feb 17, 2023
@saeedbashir saeedbashir deleted the saeed/LEARNER-9213 branch February 17, 2023 12:12
saeedbashir pushed a commit that referenced this pull request Sep 19, 2023
*chore: revert app nav changes (#1685)

* chore: add indicator on tab bar (#1687)

* chore: update learn tab icon (#1698)

* chore: add empty state to my courses (#1697)

* chore: add dashboard header view (#1705)

* chore: Course Dashboard Error Screen for Non-Upgradable Courses (#1708)

* chore: course tab bar flow changes in course dashboard (#1707)

* chore: add error view on enrolled courses screen (#1718)

* chore: course dashboard error screen for no access but upgradable courses (#1716)

* chore: scrolling behaviour on course dashboard header (#1723)

* feat: add new error screen for outdated version (#1725)

* feat: certificate banner stylistic changes on new course dashboard (#1727)

* chore: add scrolling behaviour to redesigned Learn tab (#1729)

* chore: add collapsible section headers (#1726)

* chore: resume course button implementation for new design #1737 (#1738)

* chore: fix deeplinks with new dashboard (#1742)

* fix: fix broken tests

* chore: discussions deep link and push notifications support for new course dashboard (#1752)

* chore: update status bar color to match course dashboard header color (#1754)

* feat: show shift dates banner on new course dashboard (#1753)

* feat: show shift dates banner on new course dashboard
* refactor: improve value prop logic in case of embedded value prop on course dashboard
fix: fix fetching of course price

* fix: fix course share button on iPad (#1757)

* fix: fix blank screen on fresh enrollment with app nav work (#1759)

* fix: view showing behind collapsible headers (#1758)

* chore: unit and component navigation (#1748)

* chore: handle user interaction when user swipes quickly in page view controller (#1766)

* chore: incorporate changes of course price and currency code for execute api in app_nav (#1768)

* refactor: celebratory modal layout improvements (#1767)

* chore: handle landscape for new dashboard and component navigation (#1769)

* chore: address app nav feedback (#1772)

* chore: fix title label constraint (#1775)

* fix:  revert of fix title label constraint (#1775)" (#1778)

* fix: fix unable to dismiss an error message from course list screen (#1777)

* fix: fix for subsection unwanted collapse (#1776)

* fix: fix crash on new enrollment on course dashboard (#1781)

* chore: expand next section after a section is marked as completed (#1782)

* chore: update the edit screen title to Personal information (#1785)

* chore: update shift dates banner on component screen (#1786)

* chore: improve scrolling experience on discover title bar (#1788)

* chore: handle header view in video block (#1798)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants