Giter Site home page Giter Site logo

xkesval / supapower Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 1.7 MB

Monorepo for all of SupaPower's sites which is a free workout tracking app.

Home Page: https://supapower.vercel.app

License: Apache License 2.0

JavaScript 2.68% HTML 0.25% Svelte 62.71% TypeScript 27.79% CSS 0.87% SCSS 5.71%
eslint free gym nutrition social-network svelte sveltejs sveltekit typescript workout workout-tracker

supapower's Introduction

Hi 👋 Profile Hits

⚡ Technologies

typescript svelte next.js firebase sass node.js tailwindcss git

🙈 Quick Stats

🏆 Trophies

📈 Weekly Code Time

Code Time

I'm an Early 🐤

🌞 Morning                673 commits         ⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   10.39 % 
🌆 Daytime                2660 commits        ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   41.06 % 
🌃 Evening                2892 commits        ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   44.64 % 
🌙 Night                  253 commits         ⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   03.91 % 

📅 I'm Most Productive on Friday

Monday                   695 commits         ⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   10.73 % 
Tuesday                  763 commits         ⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   11.78 % 
Wednesday                796 commits         ⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   12.29 % 
Thursday                 1061 commits        ⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   16.38 % 
Friday                   1110 commits        ⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   17.13 % 
Saturday                 1070 commits        ⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   16.52 % 
Sunday                   983 commits         ⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   15.17 % 

📊 This Week I Spent My Time On

💬 Programming Languages: 
TypeScript               18 hrs 52 mins      ⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   58.65 % 
Other                    7 hrs 52 mins       ⬛⬛⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   24.47 % 
JavaScript               2 hrs 51 mins       ⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   08.90 % 
CSS                      56 mins             ⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   02.90 % 
Markdown                 43 mins             ⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜   02.27 % 

supapower's People

Contributors

gbihry avatar github-actions[bot] avatar xkesval avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

supapower's Issues

Refactor formatter and linters using BiomeJS

This is not urgent, but, currently ESLint formatting is really slow. It takes us some valuable GitHub Actions time to check every single file in the project.

To get better performance, we can use BiomeJS, a better formatter and linter written in Rust.

Issues Templates

We need to create issues template to guide users and maintainers that want to create issues that follow our guidelines.

Create a social media-like profile page design

This is NOT a figma design request, we want code right here.

We need a profile page for the current user which should be able to see its profile as if it was a social media.
Take examples from instagram, twitter, or other well known social medias.

Since this is a design page, everything under there can be entered manually, no need to have direct accurate data from the profile since most of the features cited aren't implemented yet.

  • Profile picture (leave a grey round div for the moment ~ we'll implement images later)

  • Username

  • Workouts

  • Followers

  • Following

  • Description

  • Dashboard (little card-like buttons) :
    image

Something like that. But make them look better.

Create a frictionless sign in flow

Blocked by #12

Take example from other flows from other apps where they ask you things.

- [ ] Current state in localStorage

  • Main training goal (multiple ~ 3max)
    • Bodybuilding
    • Powerlifting
    • Powerbuilding
    • Calisthenics
    • Sculpting
  • Experience (0-3) (none, -1y, 1-3y, 3y+)
  • Days a week (2-6) (multiple ~ 3max)
  • Create account
    • Google account
    • Apple account
    • Credentials (username + email + password)

Create user profile schema & inferred types

Schemas are made using zod which you have to check out to understand how it works.
They are basically types, but programatically defined and usable at runtime, you should look at the docs and try to understand it.

If you don't, don't hesitate to send me a message I'll help you out.
If you can't figure out what inferred types are, don't spend too much time on it, I'll do it myself.

Create schemas in : /src/lib/db/users/profile/schemas.ts

Fields :

  • lang
  • biography
  • type (member, creator, admin)
  • units
    • measurements (cm, in)
    • distance (km, mi)
    • weight (kg, lbs)
  • username
  • workout
    • frequencies [2,3,4,5,6] (max 3) (min 1)
    • types [bodybuilding, powerlifting, powerbuilding, calisthenics, sculpting] (max 3) (min 1)

App Refactor - Game like workouts for free

tl;dr;

We are ditching firebase and rewriting the app using indexed db ~ we're searching for free solutions we can use for cloud storage.
We are changing the identity of the app to something more game-like with things such as achievements, etc.

The Database Refactor

This is a complete refactor of the app - We'll ditch firebase.

No authentication will be required, as no online profiles will exist anymore, only local data is going to exist. The plan is for us to have no cost and make the app open source and free forever.

Data Storage

Obviously, the data will only be stored on the used device which is kind of problematic if you lose the device or change devices. As a baseline, we're at least aiming for data exporting / importing and the dream would be to have free cloud synchronization between devices.

The Experience Refactor

So, it ocurred to me that if we don't have the experience of a social-media like app, we need to have something else catching on. We'll make it a game, altough I don't have an exact plan of how it will look like yet, I really like the idea.

We want something really playful while still good enough for people with high needs. Achievements, rankings... such things.

To Do

  • Find a wrapper around IndexedDB
  • Ditch firebase everywhere ~ replace with IndexedDB
  • Much more to do...

Design the workout logging page

In the App - Figma design, we need to design the workout logging page. This is where users will enter their workouts, and will be something like a data table (see this, but remix it to your own taste) so a table in which the user can enter data. Here's how it should look :

An « info bar » at the top that shows total time since workout was started, total volume and total sets completed.

Then, we need a data table for each exercise that the user has added to its workout.
Each exercise should contain :

  • The current set number (will be a clickable button, no need for interactive in figma but need to show by design that it's a button)
  • The current set weight (simple text input)
  • The current set reps (simple text input)
  • The current set status (a checkbox to say if it is done or not)

Create user measures schema & inferred types

See #20, #21

Create schemas in : /src/lib/db/users/measures/schemas.ts

Fields :

  • Body weight
  • Waist
  • Body fat
  • Chest
  • Left bicep
  • Right bicep
  • Left forearm
  • Right forearm
  • Abdomen
  • Hips
  • Left thigh
  • Right thigh
  • Left calf
  • Right calf

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.