Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ LOG_LEVEL=info

# Separate random secret: openssl rand -hex 32. Preserve with backups.
APP_ENCRYPTION_KEY=

# Raise the reverse proxy body limit too if increasing this value.
ATTACHMENT_MAX_BYTES=50000000
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pdf binary
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ A self-hosted household task manager: simple daily use, powerful planning when n
English/Swedish, mobile and desktop, and portable Docker deployment. Licensed under
[AGPL-3.0-or-later](LICENSE).

**Development status:** Stage 3 task capture and planning foundation. This is not yet the Milestone 1 Viable
Product. Accounts, shared entities, task capture, six columns and guarded autosave are implemented; hierarchy, filters and the remaining workflows follow in the approved stages. M1 retains the complete approved
scope; automatic GPS and notifications follow in M2, and integrated cloud backup in M4.
**Development status:** Stages 1–3, 7 and 5 are implemented. Rich text,
comments/mentions, files/photos, search and live household synchronization are locally
tested. Shared filters/views and Board interactions are locally tested.
**Stage 4 (hierarchy/inheritance/dependencies) is next**, followed by **6 → 8**. This is not
yet the complete Milestone 1 Viable Product. Stages 7 and 5 are prioritized for
meaningful household use and evaluation; the full M1 scope remains unchanged.
Automatic GPS and notifications follow in M2, integrated cloud backup in M4.

## Start here

- [Developer setup](docs/development.md)
- [Deployment and operations](docs/operations.md)
- [Approved delivery stages and acceptance mapping](docs/implementation/delivery-stages.md)
- [Stage 7 review](docs/implementation/stage-7-review.md)
- [Stage 5 review](docs/implementation/stage-5-review.md)
- [Stage 3 review](docs/implementation/stage-3-review.md)
- [Stage 2 review](docs/implementation/stage-2-review.md)
- [Stage 1 review](docs/implementation/stage-1-review.md)
Expand Down
7 changes: 7 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ Runtime/development packages retain their upstream license files in dependency p
Review the generated dependency inventory under docs/dependencies.json before release.
The inventory records declared SPDX metadata, not a substitute for checking licenses
when adding dependencies. Container base images also carry upstream notices.

Stage 7 adds Tiptap/ProseMirror editor packages (MIT), sharp (Apache-2.0),
heic-convert/heic-decode (ISC) and libheif-js (LGPL-3.0), together with their
transitive dependencies. The unmodified libheif-js package supplies the HEIC decoder;
its upstream source and license references are retained in the distributed dependency
package. Image fixtures under tests/fixtures were generated for Tendly; they do not
contain third-party photographs.
33 changes: 33 additions & 0 deletions apps/api/drizzle/0004_eager_ulik.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
CREATE TABLE "attachments" (
"id" uuid PRIMARY KEY NOT NULL,
"household_id" uuid NOT NULL,
"task_id" uuid NOT NULL,
"name" text NOT NULL,
"mime" text NOT NULL,
"size" integer NOT NULL,
"preview" boolean DEFAULT false NOT NULL,
"version" integer DEFAULT 1 NOT NULL,
"deleted" boolean DEFAULT false NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE TABLE "task_comments" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"task_id" uuid NOT NULL,
"author_id" uuid,
"body" jsonb NOT NULL,
"version" integer DEFAULT 1 NOT NULL,
"deleted" boolean DEFAULT false NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "tasks" ALTER COLUMN "description" DROP DEFAULT;--> statement-breakpoint
ALTER TABLE "tasks" ALTER COLUMN "description" SET DATA TYPE jsonb USING to_jsonb("description");--> statement-breakpoint
ALTER TABLE "tasks" ALTER COLUMN "description" SET DEFAULT '""'::jsonb;--> statement-breakpoint
ALTER TABLE "attachments" ADD CONSTRAINT "attachments_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "attachments" ADD CONSTRAINT "attachments_task_id_tasks_id_fk" FOREIGN KEY ("task_id") REFERENCES "public"."tasks"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "task_comments" ADD CONSTRAINT "task_comments_task_id_tasks_id_fk" FOREIGN KEY ("task_id") REFERENCES "public"."tasks"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "task_comments" ADD CONSTRAINT "task_comments_author_id_users_id_fk" FOREIGN KEY ("author_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "attachment_task_idx" ON "attachments" USING btree ("task_id");--> statement-breakpoint
CREATE INDEX "comment_task_idx" ON "task_comments" USING btree ("task_id","created_at");
77 changes: 77 additions & 0 deletions apps/api/drizzle/0005_jazzy_blue_shield.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
CREATE TABLE "filter_versions" (
"filter_id" uuid NOT NULL,
"version" integer NOT NULL,
"author_id" uuid,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"snapshot" jsonb NOT NULL,
CONSTRAINT "filter_versions_filter_id_version_pk" PRIMARY KEY("filter_id","version")
);
--> statement-breakpoint
CREATE TABLE "saved_filters" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"household_id" uuid NOT NULL,
"creator_id" uuid,
"name" text NOT NULL,
"icon" text NOT NULL,
"color" text NOT NULL,
"builtin" text,
"version" integer DEFAULT 1 NOT NULL,
"deleted" boolean DEFAULT false NOT NULL,
"expression" jsonb NOT NULL
);
--> statement-breakpoint
CREATE TABLE "task_order_versions" (
"household_id" uuid PRIMARY KEY NOT NULL,
"version" integer DEFAULT 0 NOT NULL
);
--> statement-breakpoint
CREATE TABLE "user_view_contexts" (
"household_id" uuid NOT NULL,
"user_id" uuid NOT NULL,
"version" integer DEFAULT 1 NOT NULL,
"current_place_id" uuid,
CONSTRAINT "user_view_contexts_household_id_user_id_pk" PRIMARY KEY("household_id","user_id")
);
--> statement-breakpoint
CREATE TABLE "user_view_states" (
"view_id" uuid NOT NULL,
"user_id" uuid NOT NULL,
"version" integer DEFAULT 1 NOT NULL,
"favorite" boolean DEFAULT false NOT NULL,
"active_filters" jsonb DEFAULT '[]'::jsonb NOT NULL,
CONSTRAINT "user_view_states_view_id_user_id_pk" PRIMARY KEY("view_id","user_id")
);
--> statement-breakpoint
CREATE TABLE "saved_views" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"household_id" uuid NOT NULL,
"creator_id" uuid,
"name" text NOT NULL,
"icon" text NOT NULL,
"color" text NOT NULL,
"builtin" text,
"version" integer DEFAULT 1 NOT NULL,
"deleted" boolean DEFAULT false NOT NULL,
"presentation" text NOT NULL,
"expression" jsonb NOT NULL,
"quick_filters" jsonb DEFAULT '[]'::jsonb NOT NULL,
"sort" text DEFAULT 'manual' NOT NULL,
"epic_lanes" boolean DEFAULT false NOT NULL,
"show_empty_lanes" boolean DEFAULT false NOT NULL,
"card_properties" jsonb NOT NULL
);
--> statement-breakpoint
ALTER TABLE "filter_versions" ADD CONSTRAINT "filter_versions_filter_id_saved_filters_id_fk" FOREIGN KEY ("filter_id") REFERENCES "public"."saved_filters"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "filter_versions" ADD CONSTRAINT "filter_versions_author_id_users_id_fk" FOREIGN KEY ("author_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "saved_filters" ADD CONSTRAINT "saved_filters_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "saved_filters" ADD CONSTRAINT "saved_filters_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "task_order_versions" ADD CONSTRAINT "task_order_versions_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "user_view_contexts" ADD CONSTRAINT "user_view_contexts_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "user_view_contexts" ADD CONSTRAINT "user_view_contexts_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "user_view_contexts" ADD CONSTRAINT "user_view_contexts_current_place_id_planning_entities_id_fk" FOREIGN KEY ("current_place_id") REFERENCES "public"."planning_entities"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "user_view_states" ADD CONSTRAINT "user_view_states_view_id_saved_views_id_fk" FOREIGN KEY ("view_id") REFERENCES "public"."saved_views"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "user_view_states" ADD CONSTRAINT "user_view_states_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "saved_views" ADD CONSTRAINT "saved_views_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "saved_views" ADD CONSTRAINT "saved_views_creator_id_users_id_fk" FOREIGN KEY ("creator_id") REFERENCES "public"."users"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
CREATE UNIQUE INDEX "filter_builtin_idx" ON "saved_filters" USING btree ("household_id","builtin");--> statement-breakpoint
CREATE UNIQUE INDEX "view_builtin_idx" ON "saved_views" USING btree ("household_id","builtin");
Loading
Loading