Git Product home page Git Product logo

peri's People

Contributors

imblowfish avatar irasoro avatar julit160 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

peri's Issues

Edit css-files

Change color: rgb(var(--ion-color-basic-rgb)); to color: var(--ion-color-basic); everywhere.
Delete comments in variable.css

Add `prettier` and `eslint` checks

Now our code combines various formatting rules and there are no additional checks for errors in the code, for this purpose it is worth adding formatting by prettier and checking the code through eslint

Optimize frontend code

Separate repeating parts into a separate component (TabDetails).
Separate repeating constants into a separate file.
Rewrite some functions.

Rewrite value of the pregnant change

Firstly: display only "low" and "hight || high" pregnancy chance.
Secondly: rewrite the calculation of the chance of getting pregnant. High chance - 4 days before ovulation, ovulation and 2 days after. All other days are low.

Restrict date selection

Now the user, when marking a date, can choose any.
Make it impossible to select a date between today and future.

Change information in the Info-page.

Now the information in the page very simple and basic.
You need to read more about the symptoms during the phases of the cycle and systematize this information on the page.

Added basic tests

Add possible cycles array options. Example,

  1. Array is empty
  2. Only one item
  3. Array is full
  4. 3-4 items

Move all calculation logic to a separate module

As it was written here #63 (comment), we run into the limitation that all necessary calculations are carried out to react hooks, due to which ordinary arithmetic unit tests turn into UI tests

This can be fixed by moving all the calculations to a separate module file, and leaving the hooks as a wrapper for react

Replace useEffect

Replace useEffect for a better hook (If that would be a good idea)

Buttons color

Now the "mark" button on the Home tab and the "ok" button on the Welcome modal are yellow (opposite color). Change them to this style (dark-basic color).
( all colors are here ./src/theme/variables.css)
image

Add tests

Implement unit tests for cycle's calculations logic, such as pregnancy chance, current day etc.

Include possibility to fake current date and remove all template functions in the storage module (emptyArray, singleArray etc.)

Edit a router

Now, when opening a demo, an empty menu, the Home-page does not open. Open the Home-page.

Edit the data entry on the Welcome modal

Now you have to separately enter the start date and the length of the period.
We need to combine them. The user should only mark the days of period on the calendar.

Mark modal closing error

If you click on an area outside of the Mark modal, then clicking on the Mark button will fail.

Display of the current cycle

Now the info about the current cycle looks like this.

Image

Rewrite "10 Days" to "Current cycle: 10 Days" and "current cycle" to "Start (start date)".

Change the array of cycles

Now an array can store an unlimited number of objects-cycle.
Make sure that no more than 6 objects are stored in the array.

Edit period mark

Now, when you press the "mark" button, you must separately enter the start date and length of the period.
You need to do this: after pressing the "mark" button, a calendar appears, showing the expected days of period. The user can accept or edit them.

Latest release breaks app

After installation of the latest version 2.0.2 app shows incorrect data (35 days of cycle, NaN in several fields etc.)

To fix it I cleared cache and all storage data and setup app again

Problem with closing by native button

If you close the app by native Android's 'back' button then app is not closing.
And work out all the "back button" (for example, swiping out of the modal is now an error).

Update README

Make the same screenshot size.
Add release version and link to it.

Make wrapper

Make wrapper around ionic components. It's will help us in case of migration from ionic to another components library and May be useful to split main app logic which now depends on specific ionic's components logic.
As example IonButton will be PeriButton with IonButton inside.

Implement import/export of user config

Now user config with all cycles are exists only in the app's storage and we can't move it between devices

There should be possibility to export and import config from one device to another

Config format should have version field which describes current storage data version

Replace "none" with text

Now, if the user has not entered his data, then none is displayed instead of the forecast.
Display clear text instead of "none".

Edit Welcome-page style

First, change the size and color of the font.
Secondly, the indentation of the upper text and the lower are different.
Thirdly, change the test itself. Make it shorter and understandable.

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.