chessheatmap's People
Forkers
maxdemaiochessheatmap's Issues
Store year view results in the database
From our design notes, we want to store previous queries in our database so we don't have to redundantly ping the chess.com public API. We will only store data for years that are less than the current year.
Make grid of 365 squares for the year requested and truncate current year
For the year view:
- Grid of 365 shown for full years
- Squares/days where no games were played are white
I think we mentioned we want white squares for days where the user didn't play. I'll put the work for this on this feature branch ๐๐ป One possible solution could be to modify the OrderedGames
object to include every date in the given year. Then we could modify the HeatmapView
to display empty squares for the dates that do not have any games.
On GitHub's current year view, they do show empty squares:
Then, on our profile cards we could show the rolling dates like GitHub does here:
Create compare stats view
Create settings view with theme changer
This can be tackled after #7 is merged in. We'll probably want to use state properties and bindings to tell the "Root View" and its children what the color should be. It'll be green by default ๐๐ป๐ข
Fix layout of "Compare Stats" view
We could optional size variable on the HeatmapView. This is so that the "Compare Stats" view can render a heatmap with smaller squares to fit the screen. If not passed a size, the heatmap squares will default to the standard length/width.
Something like this:
struct MyView: View {
let size: Int?
var body: some View {
Text("Size: \(size ?? 10)")
}
}
// Usage examples
MyView() // Displays "Size: 10"
MyView(size: 20) // Displays "Size: 20"
MyView(size: nil) // Displays "Size: 10"
Create view navigation
We'd like to make navigation between the views. The default will be the Profiles
view as shown in the Figma spec.
Some good resources for my reference later:
NavigationView
with SwiftUI (probably not since not as customizable) - https://www.youtube.com/watch?v=IopCl8sOyFA&t=20s- Custom Swift navigation using state properties and bindings (looking good!) - https://www.youtube.com/watch?v=R_KZwX-yP4o
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.