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

Multiuser support #60

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## Version 0.2.0

### Added

* Multi-user support with permissions system
* User management interface
* Support for multiple users tracking habits and wishlists
* Sharing habits and wishlist items with other users
* show both tasks and habits in dashboard (#58)
* show tasks in completion streak (#57)
* show badge for overdue tasks
* shortcut for selecting date for tasks
* context menu shortcut to move task to today

### Changed

- useHelpers hook should return user from atom not session
- sharing wishlist with other users
- disable permission edit if only has 1 user
- always show edit button in user switch modal
- move crypto utils to server-helpers
- use uuid package for client-compatible generator
- fix add button for tasks and habits in daily overview
- better error message for user creation via frontend validation
- allow empty password
- better layout for permission editor
- disable buttons when doesn't have permissions
- disable redeem if user has no more coins
- fix task completed in the past still show up as uncompleted if due today
- fix create user error when disable password
- fix permission switches spacing in mobile viewport


### BREAKING CHANGE

* Requires AUTH_SECRET environment variable for user authentication
* Generate a secure secret with: `openssl rand -base64 32`

## Version 0.1.30

### Fixed
Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Want to try HabitTrove before installing? Visit the public [demo instance](https
- 💰 Create a wishlist of rewards to redeem with earned coins
- 📊 View your habit completion streaks and statistics
- 📅 Calendar heatmap to visualize your progress (WIP)
- 🌙 Dark mode support (WIP)
- 📲 Progressive Web App (PWA) support (Planned)
- 🌙 Dark mode support
- 📲 Progressive Web App (PWA) support

## Usage

Expand Down Expand Up @@ -46,11 +46,22 @@ chown -R 1001:1001 data # Required for the nextjs user in container
2. Then run using either method:

```bash
# Generate a secure authentication secret
export AUTH_SECRET=$(openssl rand -base64 32)
echo $AUTH_SECRET

# Using docker-compose (recommended)
## update the AUTH_SECRET environment variable in docker-compose file
nano docker-compose.yaml
## start the container
docker compose up -d

# Or using docker run directly
docker run -d -p 3000:3000 -v ./data:/app/data dohsimpson/habittrove
docker run -d \
-p 3000:3000 \
-v ./data:/app/data \
-e AUTH_SECRET=$AUTH_SECRET \
dohsimpson/habittrove
```

Available image tags:
Expand Down
Loading