-
Notifications
You must be signed in to change notification settings - Fork 52
fix: various mentions bugs and inconsistencies between platforms #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hejsztynx
wants to merge
25
commits into
main
Choose a base branch
from
@ksienkiewicz/fix-mention-events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5c5c5cb
feat: mock users
hejsztynx 0f27040
fix: considering finalized mention in new mentions
hejsztynx e527a44
refactor: consistent mention event hook with other event hooks
hejsztynx a876871
fix(web): endMention event call when switching mentions
hejsztynx 43c2670
fix(ios): call end mention event when switching between mentions
hejsztynx 1dc29cd
fix(android): mention events emitting
hejsztynx cf482ac
fix(ios): mentions not remanaged when no onChangeText in props
hejsztynx 8c8503d
fix(ios): mention event emission dedup
hejsztynx e369d0c
feat: updated example apps with correct mention event emittion behavior
hejsztynx 4226044
fix(web): query changing on cursor travel inside candidate mention
hejsztynx 5a6ccad
feat(web): avoid double space when inserting a mention
hejsztynx fdc310f
feat(ios): avoid double space when inserting a mention
hejsztynx 71fbb85
refactor: testing code cleanup
hejsztynx e4b050d
fix(web): double space edge case
hejsztynx 59411bc
fix(ios): last emitted mention event comparison
hejsztynx c285576
test: e2e tests for switching between mentions
hejsztynx e631d40
Merge branch 'main' into @ksienkiewicz/fix-mention-events
kacperzolkiewski 21b9028
fix(web): move cursor when setMention before the indicator
hejsztynx ba2c9b9
fix(ios): updating _recentInputString only when the emitter is defined
hejsztynx ea20849
fix(ios): always move the selection after adding mention to the avail…
hejsztynx b5bb257
refactor(ios): text equality check
hejsztynx 21b7319
fix: Update build CI xcode version to latest stable
szydlovsky 4d5dbbc
refactor(ios): additional info about _recentInputString 'if' branches
hejsztynx 4c48aaf
Revert "fix: Update build CI xcode version to latest stable"
hejsztynx eb64438
fix: setMention on Android replacing surrounding text (#669)
hejsztynx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
.maestro/enrichedInput/flows/mention_popup_closing_on_cursor_travel.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| appId: swmansion.enriched.example | ||
| --- | ||
| # fix PR #637 - mention popups not closing when switching between mentions | ||
|
|
||
| - launchApp | ||
|
|
||
| - tapOn: | ||
| id: "toggle-screen-button" | ||
|
|
||
| - tapOn: | ||
| id: "editor-input" | ||
|
|
||
| - inputText: "mentions #gen @J" | ||
|
|
||
| # user popup visible | ||
| - runFlow: | ||
| file: "../subflows/capture_or_assert_fullscreen_screenshot.yaml" | ||
| env: | ||
| SCREENSHOT_NAME: "mention_popup_closing_on_cursor_travel_1" | ||
|
|
||
| - tapOn: | ||
| id: "focus-button" | ||
|
|
||
| - tapOn: | ||
| id: "editor-input" | ||
| point: "30%, 50%" | ||
|
|
||
| # channel popup visible | ||
| - runFlow: | ||
| file: "../subflows/capture_or_assert_fullscreen_screenshot.yaml" | ||
| env: | ||
| SCREENSHOT_NAME: "mention_popup_closing_on_cursor_travel_2" | ||
|
|
||
| - tapOn: | ||
| id: "focus-button" | ||
|
|
||
| - tapOn: | ||
| id: "editor-input" | ||
| point: "10%, 50%" | ||
|
|
||
| # no popup visible | ||
| - runFlow: | ||
| file: "../subflows/capture_or_assert_fullscreen_screenshot.yaml" | ||
| env: | ||
| SCREENSHOT_NAME: "mention_popup_closing_on_cursor_travel_3" |
Binary file added
BIN
+75.3 KB
.../enrichedInput/screenshots/android/mention_popup_closing_on_cursor_travel_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.8 KB
.../enrichedInput/screenshots/android/mention_popup_closing_on_cursor_travel_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63.9 KB
.../enrichedInput/screenshots/android/mention_popup_closing_on_cursor_travel_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+89.9 KB
...stro/enrichedInput/screenshots/ios/mention_popup_closing_on_cursor_travel_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+82.1 KB
...stro/enrichedInput/screenshots/ios/mention_popup_closing_on_cursor_travel_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.3 KB
...stro/enrichedInput/screenshots/ios/mention_popup_closing_on_cursor_travel_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
.maestro/enrichedInput/subflows/capture_or_assert_fullscreen_screenshot.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| appId: swmansion.enriched.example | ||
| --- | ||
| - tapOn: | ||
| id: 'blur-button' | ||
|
|
||
| - runFlow: | ||
| file: '../../subflows/capture_or_assert_screenshot.yaml' | ||
| env: | ||
| ELEMENT_ID: 'full-screen' | ||
| SCREENSHOT_PREFIX: 'enrichedInput' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.