Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit 97d8e9dd

97d8e9ddaa9dMerged

Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท ~1 modified

Description

[attractor-baz] Create projects.rs with Leptos server functions for project management

Implements 5 server functions:

  • list_open_projects: List all open projects sorted by last_used
  • open_project: Validate folder path and upsert into DB with canonicalization
  • close_project: Mark project as closed without deleting data
  • get_cached_documents: Fetch PRD/Spec docs from DB, return as CachedDocs struct
  • list_directory: Browse server filesystem safely for folder picker

All functions extract SqlitePool from Leptos context, validate inputs, and handle errors. list_directory filters hidden dirs and only returns directories for safe browsing.

Defines CachedDocs and DirEntry structs for serialization to frontend. Re-exports Project and CachedDoc types from db module.

Details

Commit
97d8e9ddaa9d
Parent
2fb753185e8f

crates/attractor-web/src/server/projects.rsmodifiedView file

No text changes