Skip to content

feat: improve format painter ux to match ms word#3266

Open
VladaHarbour wants to merge 2 commits into
mainfrom
sd-3068_format-painter-ux
Open

feat: improve format painter ux to match ms word#3266
VladaHarbour wants to merge 2 commits into
mainfrom
sd-3068_format-painter-ux

Conversation

@VladaHarbour
Copy link
Copy Markdown
Contributor

No description provided.

@linear
Copy link
Copy Markdown

linear Bot commented May 13, 2026

SD-3068

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e36a99669

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

result = result[cmd.command](cmd.argument);
});

if (!shouldStayActive) clearFormatPainterStorage(storage);
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.

Double-clear bug in applyStoredFormat

clearFormatPainterStorage is called both inside the try block and unconditionally in finally. The try-body calls are dead code — finally always fires on return. This means the event listener is removed twice (a minor waste) and the logic is confusing to read.

// try block:
if (!shouldStayActive) clearFormatPainterStorage(storage); // ← redundant
return result;
// finally block:
if (!shouldStayActive) clearFormatPainterStorage(storage); // ← the only one needed

Fix: remove the clearFormatPainterStorage calls from inside the try body and keep only the finally.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed redundant line

Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour left a comment

Choose a reason for hiding this comment

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

Added my comments.

@VladaHarbour VladaHarbour force-pushed the sd-3068_format-painter-ux branch from 3e36a99 to 272998b Compare May 14, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants