Skip to content

chore(webapp): scope intentional draft synchronization - #4725

Open
carderne wants to merge 1 commit into
fix/react-compiler-preserve-memofrom
fix/react-compiler-derived-state
Open

chore(webapp): scope intentional draft synchronization#4725
carderne wants to merge 1 commit into
fix/react-compiler-preserve-memofrom
fix/react-compiler-derived-state

Conversation

@carderne

@carderne carderne commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Scopes state synchronization that intentionally resets editable drafts from authoritative server values, deployment state, or programmatic filter changes. These values cannot be derived during render without removing user control between resets.

@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: df6af6c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7c0b8359-8daf-43e9-89c3-ae32311cdad3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot 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.

Devin Review found 2 potential issues.

Open in Devin Review


// On first render
useEffect(() => {
// oxlint-disable-next-line react/react-compiler -- A changed date intentionally resets the timer-backed relative text.

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.

🔍 Suppression comments sit inside the effect callback, not on the useEffect call

Each added directive is placed as the first statement inside the effect callback so it suppresses the setX(...) line. If the react-compiler diagnostic is instead reported at the useEffect( call expression (which is where compiler-related bail-outs are usually attributed), these oxlint-disable-next-line comments would not suppress anything and lint would still fail. Note also that react/react-compiler is not listed in .oxlintrc.json rules or plugins (only typescript, import, react, jsx-a11y plugins with the correctness category), and oxlint is not installed in the workspace here, so I could not verify locally that these directives take effect (or that they are even needed). Worth confirming with pnpm run lint in CI that each directive actually suppresses a reported diagnostic and none is a no-op.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +613 to 614
// oxlint-disable-next-line react/react-compiler -- Deployment status changes intentionally reset the user-controlled collapse state.
setCollapsed(initialCollapsed);

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.

🔍 Comment describes behavior that may itself be undesirable

The justification claims deployment status changes "intentionally reset the user-controlled collapse state". Because initialCollapsed is derived from the deployment's live status, a user who manually expands/collapses the log panel will have that choice overwritten whenever the streamed status changes. The suppression documents this as intentional, but the underlying UX behavior (losing the user's manual toggle mid-deployment) looks accidental and may be worth revisiting rather than blessing.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant