Skip to content

Support saved snippets #1391

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
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Support saved snippets #1391

wants to merge 16 commits into from

Conversation

PIG208
Copy link
Member

@PIG208 PIG208 commented Mar 8, 2025

  • Viewing and inserting saved snippets
  • Adding new saved snippets
  • Handle saved snippet events

CZO discussion

Stacked on top of #1498.

screenshots
light dark
light-select dark-select
compose-light compose-dark
button error
butotn error

Fixes: #863

@PIG208 PIG208 force-pushed the pr-saved branch 4 times, most recently from 118311e to 18dae84 Compare March 14, 2025 23:05
@PIG208 PIG208 marked this pull request as ready for review May 7, 2025 22:07
@PIG208 PIG208 force-pushed the pr-saved branch 5 times, most recently from 2989a73 to 6647a7f Compare May 8, 2025 02:14
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label May 8, 2025
@PIG208 PIG208 force-pushed the pr-saved branch 2 times, most recently from e365852 to e816364 Compare May 14, 2025 19:20
@chrisbobbe
Copy link
Collaborator

This has a failing test, could you take a look please?

PIG208 added 3 commits May 16, 2025 19:07
This will disable autocomplete on the input, since narrow is required
for MentionAutocomplete… classes to function.

In the future, a better solution can make these autocomplete classes
support null narrow, by perhaps disabling wildcard mentions autocomplete,
while still allowing other types of autocompletion that make sense in a
saved snippet's compose box.
We sort the saved snippets by title to be consistent with the web
implementation.

A subtle nuance of having a compose box in a modal bottom sheet is that
the message list page behind will shift when the keyboard is expanded,
even though its compose box is not visible anyway.

An UX improvement would be preserving the inputs on the saved snippet
compose box after the user has navigated away.

Fixes: zulip#863
@PIG208
Copy link
Member Author

PIG208 commented May 16, 2025

Oh right. Thanks! Pushed an update. I realized that I didn't make this clear — let's get #1511 reviewed first, since that's the prerequisite of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add saved snippets
3 participants