diff --git a/CLAUDE.md b/CLAUDE.md index 4d5412c..5603c80 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,9 +19,9 @@ For Flutter/Dart code: ## Project commands -- `sudo cargo run` from the `backend/` folder - Run the backend (you need sudo to enable the process to attach itself to the network channel) -- `flutter run -d web-server --web-port 3333` from the `frontend/` folder - Run the front-end for the web -- `run_tests.sh` - Run the backend tests +- `cd backend && run.sh` from the `backend/` folder - Run the backend +- `cd frontend && run.sh` from the `frontend/` folder - Run the front-end for the web +- `cd backend && run_tests.sh` - Run the backend tests - `cargo clippy` - Run the clippy linter for Rust code - `dart analyze` - Run the Dart linter diff --git a/TODO.md b/TODO.md index fa59f39..2f241cc 100644 --- a/TODO.md +++ b/TODO.md @@ -5,8 +5,10 @@ ## Backend - [x] Add Swagger and API docs (OpenAPI) -- [ ] Record an activity log in the database - - [ ] One event for each device appearance +- [x] Record an activity log in the database + - [x] One event for each device appearance +- [x] Add date filter to device event list method (from) +- [ ] Add a data set (json) to store maps from vendors -> device type; modify the device creation so that it uses it automatically ## Frontend @@ -18,7 +20,11 @@ - [x] Extract the device type as an enum (idem Notification) and with Icon getter too - [x] Extract the confirmForget and showRegisterDialog methods from both device pages - [x] In the devices list add filters by owner and device type -- [ ] View detailed log of device activity (based on event log in the backend) +- [x] View detailed log of device activity (based on event log in the backend) +- [x] Use date filter from backend API for device events list +- [x] Use favicon in web frontend +- [ ] Style app title like favicon (font Barlow Condensed in a pill format with "primary" background) +- [ ] Change the unkown device icon (maybe just a question mark) - [ ] Scan process monitor and summary page - [ ] Is the scan process running - [ ] Last run (when, how long did it take, how many devices did it found) diff --git a/backend/db.sh b/backend/db.sh new file mode 100755 index 0000000..7700975 --- /dev/null +++ b/backend/db.sh @@ -0,0 +1,2 @@ +#!/bin/sh +sudo sqlite3 oott.db diff --git a/frontend/run.sh b/frontend/run.sh new file mode 100755 index 0000000..06d143a --- /dev/null +++ b/frontend/run.sh @@ -0,0 +1,2 @@ +#!/bin/sh +flutter run -d web-server --web-port 3333