Skip to Content
Texfolia Docs

Projects dashboard

The authenticated /projects page uses the app theme and an inset sidebar. Recent projects are the six accessible projects with the latest updatedAt. The account menu links to the same settings pages as /settings. Signing out requires confirmation.

New project opens three choices: Blank, Git repository, and Files or folder. The default shortcut is N, then P. The shortcut editor in Preferences can change this sequence. Sequences are ignored in inputs and editors.

The Blank choice creates a project with an empty main.tex.

Git imports use the existing GitHub and GitLab connection flow. Returning from account authorization restores the import dialog and its draft repository URL. Files and folder imports preserve relative paths, accept at most 400 files, and reuse the workspace limits: 10 MiB per file and 50 MiB per project. Uploads validate paths, case-insensitive collisions, and UTF-8 text before creating project metadata. Failed imports roll back the entire project. Unreferenced R2 objects follow the existing source cleanup lifecycle.

Tags belong to each user. tag has a unique (userId, name) key, and project_tag assigns those tags to projects. Only the current user's tags are returned in the project list. Anyone who can read a project can manage their own labels, including viewers. Changing labels does not change the project's updatedAt or another user's labels. Tag names are normalized to lowercase; a project accepts up to 12 labels, each at most 32 characters.

The TanStack Table filters the loaded set by name and private tag, and sorts by project name, collaborator count, tags, or update time in the browser. Collaborators include the personal owner and explicit collaborators, or the organization's members. Row menus provide Open, Rename, Your tags, Share, Download ZIP, Duplicate, Transfer ownership, and Move to trash. Rename uses existing write access, and sharing retains its existing owner rules. Transfer and trash are available to personal owners and organization owners or admins. Downloads and duplicates contain saved sources.

Trash in the sidebar opens /projects?view=trash, which lists the trashed projects the viewer can restore or permanently delete. The rules for trash, duplicates, and transfers are in Project controls.

Schema changes use local db:push during development. Deployment requirements are in Database deployment. The optional PDF cover preview is not part of this implementation.

Verification

Apply the schema to an isolated local database whose name includes test:

DATABASE_URL=postgres://user:password@127.0.0.1:5432/texfolia_test bun run db:push

Run the upload, permission, trash, duplication, and transfer regression checks:

INTEGRATION_DATABASE_URL=postgres://user:password@127.0.0.1:5432/texfolia_test bun run apps/web/test/projects.ts

Build the app and run the rendered dashboard and workspace suite:

bun run --cwd apps/web build
INTEGRATION_DATABASE_URL=postgres://user:password@127.0.0.1:5432/texfolia_test bun run apps/web/test/ui-overhaul.ts

On this page