settings: Explain that Google blob emojis are deprecated.

Part of fixing #19371.
This commit is contained in:
evykassirer 2022-05-19 12:37:54 -07:00 committed by Tim Abbott
parent 5565a5055e
commit c321f57785
7 changed files with 18 additions and 11 deletions

View File

@ -6,10 +6,10 @@ document discusses a number of these issues.
Currently, Zulip supports these four display formats for emoji: Currently, Zulip supports these four display formats for emoji:
- Google modern - Google
- Google classic
- Twitter - Twitter
- Plain text - Plain text
- Google blob (deprecated)
## Emoji codes ## Emoji codes

View File

@ -961,7 +961,7 @@ input[type="checkbox"] {
} }
.emojiset_choices { .emojiset_choices {
width: 250px; width: 350px;
.emoji { .emoji {
height: 22px; height: 22px;

View File

@ -59,6 +59,10 @@
<img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f389.png" /> <img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f389.png" />
{{/if}} {{/if}}
</span> </span>
{{#if (eq this.key "google-blob")}}
<span>(<em>{{t "deprecated" }}</em>)</span>
{{> ../help_link_widget link="/help/emoji-and-emoticons#change-your-emoji-set" }}
{{/if}}
</label> </label>
{{/each}} {{/each}}
</div> </div>

View File

@ -32,6 +32,7 @@ IGNORED_PHRASES = [
r"PM", r"PM",
r"PMs", r"PMs",
r"Slack", r"Slack",
r"Google",
r"Terms of Service", r"Terms of Service",
r"Tuesday", r"Tuesday",
r"URL", r"URL",
@ -74,6 +75,8 @@ IGNORED_PHRASES = [
# SPECIAL CASES # SPECIAL CASES
# Because topics usually are lower-case, this would look weird if it were capitalized # Because topics usually are lower-case, this would look weird if it were capitalized
r"more topics", r"more topics",
# Used alone in a parenthetical where capitalized looks worse.
r"^deprecated$",
# Capital 'i' looks weird in reminders popover # Capital 'i' looks weird in reminders popover
r"in 1 hour", r"in 1 hour",
r"in 20 minutes", r"in 20 minutes",

View File

@ -15,10 +15,10 @@ class Migration(migrations.Migration):
name="emojiset", name="emojiset",
field=models.CharField( field=models.CharField(
choices=[ choices=[
("google", "Google modern"), ("google", "Google"),
("google-blob", "Google classic"),
("twitter", "Twitter"), ("twitter", "Twitter"),
("text", "Plain text"), ("text", "Plain text"),
("google-blob", "Google blobs"),
], ],
default="google", default="google",
max_length=20, max_length=20,
@ -29,10 +29,10 @@ class Migration(migrations.Migration):
name="emojiset", name="emojiset",
field=models.CharField( field=models.CharField(
choices=[ choices=[
("google", "Google modern"), ("google", "Google"),
("google-blob", "Google classic"),
("twitter", "Twitter"), ("twitter", "Twitter"),
("text", "Plain text"), ("text", "Plain text"),
("google-blob", "Google blobs"),
], ],
default="google", default="google",
max_length=20, max_length=20,

View File

@ -1547,10 +1547,10 @@ class UserBaseSettings(models.Model):
TEXT_EMOJISET = "text" TEXT_EMOJISET = "text"
TWITTER_EMOJISET = "twitter" TWITTER_EMOJISET = "twitter"
EMOJISET_CHOICES = ( EMOJISET_CHOICES = (
(GOOGLE_EMOJISET, "Google modern"), (GOOGLE_EMOJISET, "Google"),
(GOOGLE_BLOB_EMOJISET, "Google classic"),
(TWITTER_EMOJISET, "Twitter"), (TWITTER_EMOJISET, "Twitter"),
(TEXT_EMOJISET, "Plain text"), (TEXT_EMOJISET, "Plain text"),
(GOOGLE_BLOB_EMOJISET, "Google blobs"),
) )
emojiset: str = models.CharField( emojiset: str = models.CharField(
default=GOOGLE_EMOJISET, choices=EMOJISET_CHOICES, max_length=20 default=GOOGLE_EMOJISET, choices=EMOJISET_CHOICES, max_length=20

View File

@ -8585,10 +8585,10 @@ paths:
The user's configured [emoji set](/help/emoji-and-emoticons#use-emoticons), The user's configured [emoji set](/help/emoji-and-emoticons#use-emoticons),
used to display emoji to the user everywhere they appear in the UI. used to display emoji to the user everywhere they appear in the UI.
- "google" - Google modern - "google" - Google
- "google-blob" - Google classic
- "twitter" - Twitter - "twitter" - Twitter
- "text" - Plain text - "text" - Plain text
- "google-blob" - Google blobs
schema: schema:
type: string type: string
example: "google" example: "google"