{[1, 2, 3, 4, 5].map((value) => (
@@ -137,7 +184,7 @@ export default function ReviewForm({ albumId, review, onChanged }: Props) {
id="review-comment"
value={comment}
onChange={(event) => setComment(event.target.value)}
- disabled={busy}
+ disabled={busy || Boolean(refreshError)}
maxLength={MAX_COMMENT_LENGTH}
rows={4}
aria-describedby="review-comment-counter"
@@ -147,6 +194,21 @@ export default function ReviewForm({ albumId, review, onChanged }: Props) {
{MAX_COMMENT_LENGTH.toLocaleString('en-US')} characters
{error &&
{error}
}
+ {refreshError && (
+
+
{refreshError}
+
+
+ )}
{status && (
{status}
@@ -156,7 +218,7 @@ export default function ReviewForm({ albumId, review, onChanged }: Props) {
@@ -165,7 +227,7 @@ export default function ReviewForm({ albumId, review, onChanged }: Props) {
type="button"
className="secondary-button"
onClick={() => void remove()}
- aria-disabled={busy}
+ aria-disabled={busy || Boolean(refreshError)}
>
Delete review
diff --git a/docs/AI-USAGE.md b/docs/AI-USAGE.md
index 93db65c..2aa9180 100644
--- a/docs/AI-USAGE.md
+++ b/docs/AI-USAGE.md
@@ -113,6 +113,7 @@ the part that matters most.
| 2026-11-22 | erikhfj | Antigravity | #107, documented the team's AI task delegation, verification, and review workflow in `docs/AI-USAGE.md`, reflecting actual practices across all four contributors and complementing #97's prompt-context section. Verified with `pnpm format:check && pnpm lint && pnpm typecheck && pnpm test`. |
| 2026-11-23 | robertky | Codex (ChatGPT) | #94: Added an accessible character count for review comments, linked it to the textarea without live announcements on every keystroke, and added component tests. Verified with `pnpm format:check`, `pnpm lint`, `pnpm typecheck`, `pnpm test`, and `pnpm build`. |
| 2026-11-23 | robertky | Codex (ChatGPT) | #121: Preserved the visible search page count and scroll position when opening an album, then restored the saved result pages on return. Added state and pagination regression tests. |
+| 2026-11-23 | robertky | Codex (ChatGPT) | #122: Split review mutation failures from album refresh failures, added a refresh-only retry, and tested publish, update, and delete behavior. |
| 2026-11-23 | robertky | Codex (ChatGPT) | #104 review follow-up: combined the side drawer with the merged country preview, added backdrop dismissal and a keyboard focus loop, corrected the results-status test matcher and component documentation, and expanded the Playwright filter journey. Verified with `pnpm format:check`, `pnpm lint`, `pnpm typecheck`, `pnpm test`, `pnpm build`, and `pnpm test:e2e` against an isolated seeded PostgreSQL database. |
## Task delegation and verification workflow