Giter VIP home page Giter VIP logo

coshare's Introduction

Setup

  1. Install dependencies
npm install
  1. Start expo dev server in tunnel mode. Then connect over proxy URL, usefull for restrictive network conditions.
npx expo start --tunnel

coshare's People

Contributors

andreasalstrup avatar unluckybird avatar mikejensen0 avatar emilnormann avatar bisgaard01 avatar

Stargazers

 avatar

Watchers

 avatar

coshare's Issues

Move all custom types into ambient.d.ts

Custom types, such as Expense, should be moved into ambient.d.ts, such that they can be used globally, instead of having duplicate code.

Custom types outside ambient.d.ts:

  • Expense
  • Transaction

Allegedly, there are also some Gun types, which should be moved there.

Remove the topbar + title

image
Each page has a top bar with a title. This is not needed and needs to get removed. I am unsure how to remove it. It is related to the following code found in app\_layout.tsx:
image

Group tab

Should be possible to join/create a group.
Preferably via either bluetooth or just GunDB.

Navigation bar

Make the navigation bar for the CoShare application (see picture). This navigation bar has to be persistent between all pages. Allegedly, persistent context is created within the _layout.tsx file.

image

Ensure correctness for calculateExpenses for decimals

Ensure that no money gets lost, when splitting expenses, e.g., if someone paid 100, which should be split amongst 3 people, then they are to receive 33.33... from the two others, and this could be rounded as:

Person 1: 33.34
Person 2: 33.33
Person 3: 33.33

Which means one person gets scammed. Perhaps there could be kept track of who "overpays" such that over time, this would equalize.

Expense tab: Close the swiped list item when pressing "No"

This issue is an extension of issue #18

Currently, each item stays "open" after being swiped. They should be closed. This can be done using a ref on the Swipeable component and then using swipeableRef.current.close() in closeModal to close it. The problem is figuring out how to do this for each element, as it would otherwise only affect the last list item.

Note that this only needs to be implement for when pressing "No", as when pressing "Yes" it should be removed entirely.

image

Fix calculateBalance to accommodate variable number of users

Currently, calculateBalance calculates using number of users in the group, meaning an expense between two users will also be calculated between the rest of the group.

Example expense:
Alice paid 50,-
Bob paid 0,-
Charlie is not part of the expense

Expected balances:

Alice: +25
Bob: -25
Charlie: 0

Actual balances:

Alice: +25
Bob: -12.5
Charlie: -12.5

Meal plan tab: GunDB integration

When inputting text on the meal plan, it should be saved and shown to anyone in the group.

Example:

  1. Andreas writes "Martin" for 30-11-2023.
  2. Martin wants to see when he has to make food. He should be able to see "Martin" on 30-11-2023.

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.