Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
fa1269e
new hrm graph
tituscmd May 4, 2026
7febcaf
change scrollable to switchable because of ios 16
tituscmd May 5, 2026
0abf19f
Revert local build dependency changes
tituscmd May 5, 2026
52849db
fix button behavior and ios 16 compatibility issues
tituscmd May 5, 2026
ddbd2f6
revert local files... again
tituscmd May 5, 2026
8f050d1
fix padding cropping out left and right most bar
tituscmd May 5, 2026
016305d
add native scrollable chart for iOS 17+ users, fallback to chevron st…
tituscmd May 6, 2026
e9aea7f
fix: correct heart chart Y scale and scroll position on appear and ne…
tituscmd May 8, 2026
74e86e8
feat: improve heart chart header to show date range with hour (rounde…
tituscmd May 8, 2026
7175691
missed one more tiny UX fix
tituscmd May 8, 2026
9b4eabf
chart now snaps to full days on bigger swipes
tituscmd May 11, 2026
882d22c
Update InfiniLink/Core/Components/Charts/Heart/HeartChartView.swift
tituscmd May 13, 2026
8724246
range bars are selectable and show detailed info in header
tituscmd May 12, 2026
8fd9068
feat: add tiny vibration on swiping through bars with slider
tituscmd May 13, 2026
b0ec58c
finalize slider for scrollable graph
tituscmd May 13, 2026
311d7f8
finalize slider to work on both charts and make it prettier
tituscmd May 13, 2026
74b1f5c
remove some redundant computations and banner above heart rate graph …
tituscmd May 13, 2026
d3379f8
remove now outdated line from readme
tituscmd May 13, 2026
f599c58
Clean up
liamcharger May 14, 2026
68d383c
Merge branch 'rebuild' into hrm_chart
tituscmd May 14, 2026
718ffb6
fix some stuff broken by cleanup commit
tituscmd May 14, 2026
81dcd93
apply review changes and tweak colors
tituscmd May 14, 2026
17302ce
First iteration of dynamic fetch
liamcharger May 14, 2026
4008158
Merge branch 'rebuild' into hrm_chart
tituscmd May 14, 2026
35b4cbd
Next iteration of improved data fetch
liamcharger May 15, 2026
4e43916
Fix INL-44 and INL-26
liamcharger May 15, 2026
7464ac8
bugfix: phone low battery notifs delivering more than once
liamcharger May 17, 2026
9c40e98
Fix occasional dropped dfu updates
liamcharger May 17, 2026
5ff5a86
Add force ancs toggle flag
liamcharger May 17, 2026
d5db991
Merge branch 'rebuild' into hrm_chart
tituscmd May 17, 2026
620db0c
Merge branch 'rebuild' into hrm_chart
liamcharger May 19, 2026
82de20a
Merge branch 'rebuild' into hrm_chart
liamcharger May 19, 2026
8a08201
Clean up
liamcharger May 19, 2026
a5a0a11
Improve hrm data fetch and add dev options
liamcharger May 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions InfiniLink/Core/Components/Charts/EmptyChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,9 @@ struct Line: Shape {
}

struct EmptyChartView: View {
@AppStorage("heartRateChartDataSelection") private var dataSelection = 0

let chartType: ChartType

private let backgroundColor = Color.primary.opacity(0.35)
private var detailString: String {
var base = "There isn't any \(chartType.rawValue) data to show "

switch dataSelection {
case 1:
base += "for today"
case 2:
base += "for the week"
case 3:
base += "for the month"
default:
base += "for the current hour"
}

return base
}

init(_ chartType: ChartType) {
self.chartType = chartType
Expand All @@ -64,7 +46,7 @@ struct EmptyChartView: View {
VStack {
Text("Nothing to see here")
.font(.title2.weight(.bold))
Text(detailString)
Text("There isn't any \(chartType.rawValue) data to show")
.foregroundStyle(.gray)
}
}
Expand Down
Loading