Coder Social home page Coder Social logo

chessheatmap's People

Contributors

boek avatar maxdemaio avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

maxdemaio

chessheatmap's Issues

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:

image

Then, on our profile cards we could show the rolling dates like GitHub does here:

image

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.