Files
zulip/zerver/models/onboarding_steps.py
Prakhar Pratyush 35380b095f compose: Show banner to explain non interleaved view messages fading.
In a non interleaved view when composing a message to another
conversation we fade messages which the user is not replying to,
to reduce the chance they send a message to a recipient they didn't
intend to. Also, it reduces the visual/cognitive processing required
to figure out where their message is going to go.

But, it's not necessarily clear to users that what the
fading means, so this commit adds a one-time compose banner
to explain what's going on the first time this comes up.

Fixes part of #29076.
2024-07-16 13:52:29 -07:00

15 lines
448 B
Python

from django.db import models
from django.db.models import CASCADE
from django.utils.timezone import now as timezone_now
from zerver.models.users import UserProfile
class OnboardingStep(models.Model):
user = models.ForeignKey(UserProfile, on_delete=CASCADE)
onboarding_step = models.CharField(max_length=40)
timestamp = models.DateTimeField(default=timezone_now)
class Meta:
unique_together = ("user", "onboarding_step")