Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@keegangeorge
Copy link
Member

🔍 Overview

Previously, when clicking add footnote on an explain suggestion it would replace the selected word by finding the first occurrence of the word. This results in issues when there are more than one occurrences of a word in a post. This is not trivial to solve, so this PR instead prevents incorrect text replacements by only allowing the replacement if it's unique. We use the same logic here that we use to determine if something can be fast edited.

In this PR we also update tests for post helper explain suggestions. For a while, we haven't had tests here due to streaming/timing issues, we've been skipping our system specs. In this PR, we add acceptance tests to handle this which gives us improved ability to publish message bus updates in the testing environment so that it can be better tested without issues.

📸 Screenshots

Screenshot 2024-12-04 at 11 21 52
IMG_B3491540022C-1

Hold results in copy/paste menu covering the tooltip, while hover lets the tooltip show on a single tap.
@keegangeorge keegangeorge merged commit d6beac4 into main Dec 4, 2024
6 checks passed
@keegangeorge keegangeorge deleted the footnotes-n-tests branch December 4, 2024 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants