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

Feature/homepage old history #3113

Merged
merged 13 commits into from
Jan 10, 2025
Merged

Conversation

Peyton-McKee
Copy link
Contributor

@Peyton-McKee Peyton-McKee commented Jan 7, 2025

Changes

Homepage changes

Finishline_HomepageRedesign_Overview.zip

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #2012 (issue #)

popUpId String @id @default(uuid())
text String
iconName String
users User[] @relation("userPopUps")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is usersUnread right? And when they read the popup they get removed from this list?

slackEventId: string,
slackChannelName: string,
organizationId: string
): Promise<Announcement> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we should probably validate that the usersReceivedIds are all valid ids. otherwise were gonna throw a weird error

* @returns the user's updated unread pop up
*/
static async removeUserPopUp(userId: string, popUpId: string, organizationId: string) {
const updatedUser = await prisma.user.update({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think we need to verify that the popUpId exists before this.

where: { userId },
include: { assignedTasks: getTaskQueryArgs(organization.organizationId) }
});
if (!requestedUser) throw new NotFoundException('User', userId);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think we need to check if a user is in the organization as well

*/
export const getProjects = async (projectIds: string[], organizationId: string) => {
const projects = await prisma.project.findMany({
where: { projectId: { in: projectIds } },
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dateDeleted === null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wbsElement: { organizationId } aswell

@Peyton-McKee Peyton-McKee merged commit 3ebd054 into develop Jan 10, 2025
5 checks passed
@Peyton-McKee Peyton-McKee deleted the feature/homepage-old-history branch January 10, 2025 15:07
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.

Home Page Redesign
3 participants