Skip to content
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

feat: Add visible to you text on ephemeral posts #8245

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

tanmaythole
Copy link
Contributor

@tanmaythole tanmaythole commented Oct 6, 2024

Summary

Added a visible to you text on ephemeral posts.

Ticket Link

Fixes mattermost/mattermost#28201

Checklist

  • Added or updated unit tests (required for all new features)
  • Has UI changes
  • Includes text changes and localization file updates
  • Have tested against the 5 core themes to ensure consistency between them.
  • Have run E2E tests by adding label E2E iOS tests for PR.

Device Information

This PR was tested on: Android Emulator Pixel 8a

Screenshots

Screenshot 2024-10-16 at 10 19 03 PM Screenshot 2024-10-16 at 10 25 48 PM

Release Note

Added visible to you text on ephemeral posts

@mattermost-build
Copy link
Contributor

Hello @tanmaythole,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Copy link
Contributor

@rahimrahman rahimrahman left a comment

Choose a reason for hiding this comment

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

Hi @tanmaythole -- thanks for your contribution. I only have 2 quick questions, but otherwise looks good to me.

@@ -39,18 +40,24 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => {
header: {
flex: 1,
flexDirection: 'row',
marginTop: 10,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you help me understand why the marginTop addition is necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As mentioned in the ticket, the layout for system ephemeral post not placed as expected. But this change affects the other posts, will fix by adding condition specific to ephemeral post.

app/components/system_header/index.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! Just one more comment.

app/components/system_header/index.tsx Show resolved Hide resolved
@larkox larkox added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester 2: UX Review Requires review by a UX Designer labels Oct 17, 2024
@larkox
Copy link
Contributor

larkox commented Oct 17, 2024

@abhijit-singh Do you mind verifying the screenshot that it looks as you would expect?

Copy link

@abhijit-singh abhijit-singh left a comment

Choose a reason for hiding this comment

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

Thanks @tanmaythole, looks good to me visually.

In the second screenshot, not sure how there are ephemeral posts from people with replies on them but I'm guessing that's just for testing purposes and won't actually ever happen/.

Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks for contribution!

@rahimrahman rahimrahman removed the 2: Dev Review Requires review by a core commiter label Oct 28, 2024
Copy link
Contributor

@yasserfaraazkhan yasserfaraazkhan left a comment

Choose a reason for hiding this comment

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

image

@larkox larkox added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester 2: UX Review Requires review by a UX Designer labels Oct 30, 2024
@larkox larkox merged commit a580642 into mattermost:main Oct 30, 2024
36 checks passed
@amyblais amyblais added this to the v2.23.0 milestone Oct 31, 2024
@amyblais amyblais added the Docs/Needed Requires documentation label Nov 5, 2024
@amyblais
Copy link
Member

@holopin-bot @tanmaythole Mattermost Most Valued Professional (MVP)

Copy link

holopin-bot bot commented Nov 15, 2024

Seems like there's something wrong with your config. See this page for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Contributor Docs/Needed Requires documentation Hacktoberfest release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RN: Ephemeral posts should have the label '(Only visible to you)' similar to the webapp
8 participants