Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

New composer: support forcing auto complete on name by hitting tab #3349

Merged
merged 14 commits into from
Aug 28, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Aug 27, 2019

that's not what the slate impl does and it's not an improvement
so one can await if needed
and also for multiple transformations at once. This removes
the need to call the update callback from `replaceRange()` as well
by replacing word before caret with pill-candidate and
forcing auto complete
not ideal, but for now this prevents a crash at startup
when a user-pill is persisted in local storage
before the insertPartsAt method would call the update callback
on its own, but now we have the concept of a transformation session,
so lets bring the API in line
as this is now called from the `transform` method, unused in this test
@bwindels bwindels marked this pull request as ready for review August 28, 2019 14:05
@bwindels bwindels requested a review from a team August 28, 2019 14:05
@dbkr dbkr requested review from dbkr and removed request for a team August 28, 2019 14:46
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

otherwise lgtm!

@@ -27,6 +27,15 @@ limitations under the License.
white-space: nowrap;
}

@keyframes visualbell {
from { background-color: #faa; }
Copy link
Member

Choose a reason for hiding this comment

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

should this be defined in the theme?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

visualbelldarkmode

&.mx_BasicMessageComposer_input_error {
animation: 0.2s visualbell;
}

Copy link
Member

Choose a reason for hiding this comment

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

also may want Nad to weigh in on the visual flash as it currently highlight the bit where the text box actually is which is normally not visible so looks a bit odd. Not sure what the best way would be to make it look better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, not sure. The intention was to have it exactly the same as before:

oldtabname

// if (this.state.query === query) {
// return Promise.resolve();
// } else {
// }
Copy link
Member

Choose a reason for hiding this comment

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

unintentionally left in?

@bwindels
Copy link
Contributor Author

the visualbell css animation is duplicated, which will be cleaned up when the slate editor is removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants