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

fix: Show rejected posts #3900

Merged
merged 4 commits into from
Dec 2, 2024
Merged

fix: Show rejected posts #3900

merged 4 commits into from
Dec 2, 2024

Conversation

AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Dec 2, 2024

Changes

  • Users can now see rejected posts and resubmit them.
  • Fixed an issue where editing external links used the wrong data, and didn't actually update when submitted.
  • Fixed fill of reject icons

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Preview domain

https://mi-645.preview.app.daily.dev

Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview Dec 2, 2024 0:17am
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) Dec 2, 2024 0:17am

@AmarTrebinjac AmarTrebinjac marked this pull request as ready for review December 2, 2024 11:08
@AmarTrebinjac AmarTrebinjac requested a review from a team as a code owner December 2, 2024 11:08
Copy link
Contributor

@rebelchris rebelchris left a comment

Choose a reason for hiding this comment

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

Minor question, but non blocking

Copy link
Contributor

Choose a reason for hiding this comment

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

Why was the icon change needed?
You can just overwrite it with CSS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rebelchris It did not work with CSS because the fill was nested and not top level,

But you are right in the sense that we could've just removed the fill all together and set it to "currentcolor" in the component and it will have the same effect!

Applying

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah it should be fixed on the SVG, it just some icons have it accidentally set.
They should use currentcolor to support light/dark mode

Copy link
Member

@sshanzel sshanzel left a comment

Choose a reason for hiding this comment

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

🚀

@AmarTrebinjac AmarTrebinjac merged commit 7e66ce0 into main Dec 2, 2024
10 checks passed
@AmarTrebinjac AmarTrebinjac deleted the MI-645 branch December 2, 2024 12:18
Comment on lines +28 to +36
useSquadPendingPosts(
squad?.id,
isModerator
? [SourcePostModerationStatus.Pending]
: [
SourcePostModerationStatus.Pending,
SourcePostModerationStatus.Rejected,
],
);
Copy link
Contributor

Choose a reason for hiding this comment

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

status is not included in the query key so this will lead to a bug where pending/rejected posts will show the same data depending on which one is queried first.

Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend query key to be:

generateQueryKey(RequestKey.SquadPostRequests, user, squadId, { status })

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

Successfully merging this pull request may close these issues.

4 participants