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

feat: implement habit creation with icons and settings #146

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

owengretzinger
Copy link
Collaborator

@owengretzinger owengretzinger commented Dec 22, 2024

TL;DR

Added habit creation functionality with customizable icons, colors, and settings.

I also made it so that instead of explicitly setting a goal for how many times you want to complete the habit a day, there's just a setting for allowing multiple completions per day vs only allowing one. (See previous PR #145.) I implemented this functionality in this PR.

Screen.Recording.2024-12-22.at.1.48.29.PM.mov

What changed?

  • Created a new habit creation form with fields for title, description, icon selection, and color
  • Added a modal for selecting from 100+ habit icons
  • Implemented toggle for allowing multiple completions per day
  • Updated habit schemas to support new icon system and multiple completions setting
  • Replaced text emoji icons with Lucide icons throughout the app
  • Reorganized habit color definitions and added color picker UI
  • Added the checkbox.tsx component from the Obytes template which includes a switch that I used for toggling multiple completions per day

How to test?

  1. Navigate to the habits screen
  2. Tap the "+" button to create a new habit
  3. Fill out the habit creation form:
    • Select an icon from the icon picker
    • Enter a title and optional description
    • Choose a color from the color grid
    • Toggle "Allow multiple completions per day" setting
  4. Create the habit and verify it appears in the habits list
  5. Test the multiple completions setting by attempting to complete the habit multiple times in one day

@owengretzinger owengretzinger changed the title create habit feat: implement habit creation with icons and settings Dec 22, 2024
@owengretzinger owengretzinger marked this pull request as ready for review December 22, 2024 19:03
Copy link

graphite-app bot commented Dec 22, 2024

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (12/22/24)

1 reviewer was added to this PR based on Owen Gretzinger's automation.

Base automatically changed from 12-19-entry_modification_modal_with_ability_to_attach_notes_images to main December 25, 2024 10:04
AnkushSarkar10
AnkushSarkar10 previously approved these changes Dec 25, 2024
@AnkushSarkar10 AnkushSarkar10 merged commit 361343e into main Dec 29, 2024
2 checks passed
@AnkushSarkar10 AnkushSarkar10 deleted the 12-21-create_habit branch December 29, 2024 00:59
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.

2 participants