Skip to content

Commit 4fd7791

Browse files
committed
feat: add PATCH endpoint for updating spec metadata; update API tests and README
1 parent 8022b5a commit 4fd7791

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/http-server/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The server reads configuration from `~/.lean-spec/config.json`:
7070
### Specs
7171
- `GET /api/specs` - List specs (with filters)
7272
- `GET /api/specs/:spec` - Get spec detail
73+
- `PATCH /api/specs/:spec/metadata` - Update spec metadata
7374
- `POST /api/search` - Search specs
7475
- `GET /api/stats` - Project statistics
7576
- `GET /api/deps/:spec` - Dependency graph

packages/ui-vite/src/lib/api.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ describe('API Client', () => {
143143
await api.updateSpec('spec-001', updates);
144144

145145
expect(mockFetch).toHaveBeenCalledWith(
146-
expect.stringContaining('/api/specs/spec-001'),
146+
expect.stringContaining('/api/specs/spec-001/metadata'),
147147
expect.objectContaining({
148148
method: 'PATCH',
149149
body: JSON.stringify(updates),

packages/ui-vite/src/lib/backend-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class HttpBackendAdapter implements BackendAdapter {
9999
name: string,
100100
updates: Partial<Pick<Spec, 'status' | 'priority' | 'tags'>>
101101
): Promise<void> {
102-
await this.fetchAPI(`/api/specs/${encodeURIComponent(name)}`, {
102+
await this.fetchAPI(`/api/specs/${encodeURIComponent(name)}/metadata`, {
103103
method: 'PATCH',
104104
body: JSON.stringify(updates),
105105
});

specs/198-ui-vite-remaining-issues/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ tags:
1010
depends_on:
1111
- 193-frontend-ui-parity
1212
created_at: 2025-12-26T06:32:10.135558Z
13-
updated_at: 2025-12-26T06:33:23.302928Z
13+
updated_at: 2026-01-06T14:59:35.350392Z
1414
transitions:
1515
- status: in-progress
1616
at: 2025-12-26T06:33:23.302928Z
1717
---
18-
1918
## Overview
2019

2120
After implementing initial UI parity between Next.js and Vite apps in spec 193, several critical issues remain that prevent full feature parity and usability. These issues affect navigation, routing, project management, and layout consistency.

0 commit comments

Comments
 (0)