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

FLW-1317 Analytics UI/UX improvements #408

Merged
merged 15 commits into from Oct 6, 2021
Merged

Conversation

ef1rspb
Copy link
Contributor

@ef1rspb ef1rspb commented Oct 5, 2021

  • remove pinch-to-zoom from Rewards tab
  • Analytics widget: KSM crosses month on OX (especially on small screen)
  • Validators: doesn't fit into circle diagram, if validator doesn't have display name
  • Validators: label"Staking was inactive" is smaller than "Staking was active”
  • Staking tab: fix chart drops
  • History: "Your rewards will appear hear" text is not relevant here, we need to change empty state to another text

@codecov-commenter
Copy link

Codecov Report

Merging #408 (447649e) into develop (7920849) will increase coverage by 2.88%.
The diff coverage is 41.09%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #408      +/-   ##
===========================================
+ Coverage    31.43%   34.31%   +2.88%     
===========================================
  Files          462      560      +98     
  Lines        19656    24953    +5297     
===========================================
+ Hits          6179     8563    +2384     
- Misses       13477    16390    +2913     
Impacted Files Coverage Δ
...on/DataProvider/Sources/CoingeckoPriceSource.swift 0.00% <0.00%> (ø)
...ataProvider/Sources/JsonSingleProviderSource.swift 0.00% <0.00%> (ø)
...Provider/Sources/Rewards/SubqueryStakeSource.swift 0.00% <0.00%> (ø)
...rovider/Sources/SubqueryEraStakersInfoSource.swift 0.00% <0.00%> (ø)
...DataProvider/Sources/WebSocketProviderSource.swift 0.00% <0.00%> (ø)
.../Subscription/SingleValueSubscriptionHandler.swift 0.00% <0.00%> (-11.12%) ⬇️
...ion/FearlessUtils/StorageKeyFactory+Implicit.swift 0.00% <0.00%> (ø)
...Common/Extension/Foundation/String+Substrate.swift 0.00% <0.00%> (ø)
...s/Common/Extension/Model/WalletAssetId+Chain.swift 0.00% <0.00%> (ø)
...peration/CompoundOperationWrapper+Dependency.swift 0.00% <0.00%> (ø)
... and 293 more

}
}()
let currentDate = calendar.date(byAdding: component, to: timestampInterval.0) ?? startDate
let stakeChangesForCurrentDate = groupedByDate.map { date, stakeChanges -> (Date, [SubqueryStakeChangeData])? in
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not directly apply compactMap instead of map.compactMap?

@ef1rspb ef1rspb merged commit 2e8f9d8 into develop Oct 6, 2021
@ef1rspb ef1rspb deleted the feature/FLW-1317-fix branch October 6, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants