Skip to content

Replace post-create DOM polling with ref-driven scrolling #55

Description

@coderabbitai

Summary

Remove the document.querySelector retry loop after task creation. Use React-owned state and refs to scroll the created card into view.

Required changes

  • Track the created task identifier.
  • Scroll the matching task card into view with a ref-driven approach.
  • If timers remain, cancel them when the component unmounts.

Affected areas

  • CreateTaskModal.tsx
  • Task card component

Acceptance criteria

  • The new task card scrolls into view after creation.
  • No timer continues after the modal unmounts.
  • The implementation does not poll the DOM for the task card.

Source

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions