-
Notifications
You must be signed in to change notification settings - Fork 35
Achievements #303
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
Achievements #303
Conversation
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.
Надо чуть поправить
Stepic/AchievementDescription.swift
Outdated
import Foundation | ||
|
||
enum AchievementKind: String { | ||
// Cases should be declared in correct order |
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.
А что от этого зависит сейчас?
import PromiseKit | ||
import Alamofire | ||
|
||
enum ApiOrder { |
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.
Если планируется это использовать еще где-то, то можно вынести наверное куда-нибудь в отдельное место
|
||
override func viewWillAppear(_ animated: Bool) { | ||
super.viewWillAppear(animated) | ||
view.showAnimatedGradientSkeleton(usingGradient: SkeletonGradient(baseColor: UIColor.mainLight), |
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.
возможно ли это делать по viewDidLoad?
сейчас если легонько свайпнуть влево экран (на предыдущий), а потом вернуться на экран с ачивками, все зависает на скелетоне.
private var achievementsStackView: UIStackView? | ||
private var isSet = false | ||
|
||
// FIXME: check screen resolution |
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.
думаешь, для планшетов надо больше показывать?
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.
скорее меньше для 5s.
Stepic/ru.lproj/Localizable.strings
Outdated
AchievementsStepsSolvedStreakKindTitle = "Сапёр"; | ||
AchievementsActiveDaysStreakKindTitle = "Постоянный пользователь"; | ||
AchievementsLockedTitle = "Вау, что это?"; | ||
AchievementsLockedDescription = "Решайте больше заданий, чтобы открыть"; |
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.
Российских локализаций больше, чем английских.
Не хватает английских описаний для ачивок.
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.
+, пропустил
if let userId = self?.otherUserId ?? AuthInfo.shared.userId, | ||
let vc = ControllerHelper.instantiateViewController(identifier: "AchievementsListViewController", storyboardName: "Profile") as? AchievementsListViewController { | ||
// FIXME: API injection :(( | ||
let retriever = AchievementsRetriever(userId: userId, achievementsAPI: AchievementsAPI(), achievementProgressesAPI: AchievementProgressesAPI()) |
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.
ну, лучше не очень ясно как сделать :(
…tepik-ios into feature/achievements
Задача: #APPS-1893
Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Добавили достижения
Описание:
Достижения в профиле.
TODO