Skip to content

Conversation

kvld
Copy link
Contributor

@kvld kvld commented Jun 12, 2018

Задача: #APPS-1893

Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Добавили достижения

Описание:
Достижения в профиле.

screen shot 2018-06-13 at 02 17 17

TODO

  • Экран со списком
  • Локализация

@kvld kvld added the main label Jun 12, 2018
@kvld kvld added this to the 1.61 milestone Jun 12, 2018
@kvld kvld self-assigned this Jun 12, 2018
@kvld kvld requested a review from Ostrenkiy June 12, 2018 23:20
Copy link
Contributor

@Ostrenkiy Ostrenkiy left a comment

Choose a reason for hiding this comment

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

Надо чуть поправить

import Foundation

enum AchievementKind: String {
// Cases should be declared in correct order
Copy link
Contributor

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 {
Copy link
Contributor

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),
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

думаешь, для планшетов надо больше показывать?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

скорее меньше для 5s.

AchievementsStepsSolvedStreakKindTitle = "Сапёр";
AchievementsActiveDaysStreakKindTitle = "Постоянный пользователь";
AchievementsLockedTitle = "Вау, что это?";
AchievementsLockedDescription = "Решайте больше заданий, чтобы открыть";
Copy link
Contributor

Choose a reason for hiding this comment

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

Российских локализаций больше, чем английских.
Не хватает английских описаний для ачивок.

Copy link
Contributor Author

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())
Copy link
Contributor

Choose a reason for hiding this comment

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

ну, лучше не очень ясно как сделать :(

@Ostrenkiy Ostrenkiy modified the milestones: 1.61, 1.62 Jun 22, 2018
@kvld kvld merged commit 34693c4 into dev Jun 27, 2018
@kvld kvld mentioned this pull request Jun 28, 2018
@kvld kvld deleted the feature/achievements branch January 29, 2019 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants