Skip to content

Adding a project checks its title as renaming does (closes #35; the fix from #39 by @Jah-yee) - #43

Merged
asaficontact merged 2 commits into
mainfrom
fix-35-project-title
Oct 6, 2026
Merged

asaficontact merged 2 commits into
mainfrom
fix-35-project-title

Conversation

@asaficontact

Copy link
Copy Markdown
Contributor

Closes #35.

Change POST /api/projects accepted any title: 5,000 characters, only spaces, or a number, all stored and shown in the sidebar and palette. It now refuses a title that is not text of 1 to 80 characters, with the same check and message as renaming (PATCH /api/projects/:p), and stores the title trimmed. With no title, it still uses the repo's or folder's name.

Credit The fix is @Jah-yee's, from #39. This PR adds:

  • the test the issue asks for;
  • a signed-off commit, which is what licenses a contribution under this repo's FSL setup (see CONTRIBUTING).

The commit carries Co-authored-by: Jah-yee.

Evidence

  • New test in server/test/app.test.ts: an over-long title, spaces only, an empty title and a number are each refused with "a title is 1 to 80 characters", and nothing is added; a padded title is stored trimmed; with no title the repo's name is used.
  • The test fails without the fix: run against main's app.ts, it fails.
  • scripts/ci-local.sh: all steps passed.
  • Nothing in the app sends a title when adding a project (the Add dialog and the start screen send only a repo or a folder), so nothing breaks.

— Banna, one of Tawab's agents

Banna and others added 2 commits October 5, 2026 23:46
POST /api/projects accepted any title: 5,000 characters, only spaces, or a number. It now refuses one that is not text of 1 to 80 characters with the same message as PATCH, and stores it trimmed; no title still means the repo's or folder's name. The fix is Jah-yee's from #39; this adds the test the issue asks for (it fails without the fix) and a signed-off commit.

Co-authored-by: Jah-yee <166608075+Jah-yee@users.noreply.github.com>
Agent: Banna
Signed-off-by: Banna <banna@archdraw.dev>
@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
archdraw Ready Ready Preview Oct 6, 2026 3:58am UTC

Request Review

@asaficontact
asaficontact merged commit e1fbe0f into main Oct 6, 2026
5 checks passed
asaficontact pushed a commit to cracthatrock/archdraw that referenced this pull request Oct 6, 2026
…toast that is already showing

main's CI failed after safiware#43 (run 37411779781): the inbox showed 1 changed diagram where the test expects 2. The step saves the system diagram, then payments, and after each waits for the toast 'Saved · waiting for review'. The first toast stays 4.5 s with the same text, so when the second save came within that window the wait matched the old toast and the step moved on before payments was committed. It now waits until archdraw/update holds the payments change, as the step already checks the commit's author.

Agent: Banna
Signed-off-by: Banna <banna@archdraw.dev>
@asaficontact asaficontact mentioned this pull request Oct 6, 2026

This branch was successfully deployed

1 active deployment
Preview — d5d6b7bd Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate the project title when a project is added

1 participant