Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set breathe in hold duration #2

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

MattChubb
Copy link

@MattChubb MattChubb commented Nov 12, 2023

I wanted the ability to configure the breathe in hold to something other than 15sec, so I added it as a configurable setting with room to add others there later.
Not sure about the layout but it's workable.

@MattChubb MattChubb marked this pull request as ready for review November 12, 2023 10:07
{duration: 30, breatheInHold: 15},
{duration: 60, breatheInHold: 15},
{duration: 90, breatheInHold: 15}],
schemeLevel: 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The schemeLevel should be bumped and a migration should be done in getSettings

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a migrateSettings function to migrate from v1 to v2 automatically, but not sure this is the cleanest way to do it?

onClick={() => this.removeRound(round)}
/>
</div>
<Card variant="outlined" style={{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice the retention time is now duplicated, makes sense to move it to round?

Screenshot 2023-11-12 at 21 31 09

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea - done.

@MattChubb
Copy link
Author

I also noticed the CICD is failing. I think I need to set something up for gh-pages to work properly?

@Koenkk
Copy link
Owner

Koenkk commented Nov 18, 2023

Screenshot 2023-11-18 at 21 14 11

2 remarks:

  • I think the settings migration is not working correctly (NAN values)
  • There are no labels for the input boxes, now it's unclear what the value is for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants