Skip to content

fix(cms): give a Webflow item sent again a date when it has none - #1677

Merged
gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:fix/webflow-fill-empty-date
Oct 28, 2026
Merged

gkhngyk merged 4 commits into
ansvisor:mainfrom
cihan-gyk:fix/webflow-fill-empty-date

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Follow-up from #1600 (item 1): a Webflow item that's sent again gets a date when it has none.

Only a new item was given the day it's sent; an item sent again kept its date. So if a brand mapped an optional date later, or made its date required in Webflow, every item sent before kept an empty date, and sending it again left it empty.

Cost: when a date field is mapped, each send of an existing item makes one extra Composio read. Bulk sends already go one page at a time, with a pause between them.

Related issue

Follow-up from #1600's review.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

cd server && npx vitest run src/lib/cms/webflow-delivery.test.js src/lib/cms/webflow.test.js

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Full checks were run in one tree with this batch's ten follow-up branches merged, and again after the review fixes:

  • server format, lint and npm test: 246 files, 3,343 tests passed;
  • web format, lint (0 errors; 7 warnings already on main), typecheck and build: all pass;
  • web vitest: 447 files, 4,352 tests passed (after the review fixes).

A pre-push review was run on all ten branches.

🤖 Generated with Claude Code

cihan-gyk and others added 2 commits October 28, 2026 05:37
Follow-up from ansvisor#1600 (item 1). Only a new item was given the day it's
sent; an item sent again kept its date. So a brand that maps an optional
date later, or makes its date required in Webflow, kept an empty date on
every item sent before, and a send again left it empty.

When the field map gives a date, sendToWebflow now reads the item before
updating it (getItem, which says which fields hold a value) and, when its
date is empty, sends today's with the update. An item that can't be read
is updated without a date, as before; without a date field nothing is
read.

The Send to CMS guide's field table lists the Date field (ansvisor#1507's
follow-up) and says an item sent again keeps its date, or gets one.

fieldDataFor (webflow-items.js) is unchanged, so this doesn't meet the
Framer PRs' edit at its end (ansvisor#1576, ansvisor#1579).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review follow-up. The comment above createItem still said only a new item
is given the day it's sent, but an item sent again with an empty date now
gets it too. It names both now. Comment only; webflow-items.js untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 5910846.

Approve preview

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with 48bc9e3: an item counts as undated only when the read saw its fields (its slug among them), so an unexpected answer never writes a date over the one it has; with a test. Main merged in (5910846).

@gkhngyk
gkhngyk merged commit 5550049 into ansvisor:main Oct 28, 2026
6 checks passed
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