Skip to content

fix(pwa): N22 — custom feeds keep the user's name prefix; edits never rename - #188

Merged
satishbagali merged 1 commit into
mainfrom
fix/custom-feed-name-prefix
Dec 4, 2026
Merged

satishbagali merged 1 commit into
mainfrom
fix/custom-feed-name-prefix

Conversation

@Aiyappa-DigitalGreen

Copy link
Copy Markdown
Collaborator

Fixes N22 (Custom Feed name prefix). PWA only, backend unchanged.

Before

  • The Custom Feed sheet showed "Demo-" in front of the name box but saved the name without it.
  • The first edit of the user's own feed renamed it: "Demo protein cake" became "Demo-Demo protein cake", and "Maize - local" became "Maize -local".

After

  • Create saves userFeedNamePrefix(user.name) + name (src/lib/feed-name.ts). This is the same helper the sheet uses to display the prefix.
  • Edit of an own feed (action: "update") shows the stored name whole and disabled, and sends it back unchanged.
  • Pencil on a library feed (action: "insert") still saves a copy under the prefix.

Tests

  • useCustomFeed.test: a create sends "Demo-Protein cake".
  • FeedRow.test: own-feed edits keep "Aiyappa-Protein cake", "John-MyFeed-Extra", "PlainName" and "Maize - local".
  • FeedRow.test: a library copy is saved as "Aiyappa-Wheat - Bran".
  • feed-name.test: unit tests for the helper.
  • Gate on Node 20: lint, lint:promises, typecheck, format:check, i18n:check and test:coverage all pass.

Notes

  • This deliberately differs from Android's first-"-" split. That split is what caused the renames.
  • Feeds already saved without a prefix keep their names; nothing is migrated.
  • After deploy, the "Custom Feeds" help video (Bump requests from 2.32.5 to 2.33.0 #5) can be re-recorded.

🤖 Generated with Claude Code

… rename

- Custom Feed sheet saves "<first name>-<name>", the prefix it shows
  (shared userFeedNamePrefix in lib/feed-name.ts).
- Editing the user's own feed sends the stored name unchanged: no first-"-"
  split, no re-prefix ("Protein cake" no longer becomes "Demo-Protein cake",
  "Maize - local" no longer becomes "Maize -local").
- Copy of a library feed still saves under the prefix.
- Tests: create, own-feed edits (with/without "-", " - "), library copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@satishbagali
satishbagali merged commit f44fe85 into main Dec 4, 2026
7 checks passed
@satishbagali
satishbagali deleted the fix/custom-feed-name-prefix branch December 4, 2026 04:57
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.

2 participants