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: sort project cards in LandingPage #116

Conversation

sripwoud
Copy link
Member

@sripwoud sripwoud commented Apr 30, 2024

Closes #267 (p0tion repo issue)

Test plan

I don't have the necessary environment secret/credentials to fetch the real projects data while developing locally, so I manually overrode the projects data e.g by adding here:

projects = [
    {
      ceremony: {
        uid: "i3kFOOUi8L42ooRWQh8N",
        // @ts-ignore
        data: {
          title: "example",
          prefix: "example",
          description: "Should be first",
          startDate: new Date("2023-07-01").getTime(),
          endDate: new Date("2025-07-31").getTime(),
          penalty: 3600,
          coordinatorId: "uKm6XEjOKoeZUKAf2goY4vamgHE4",
          lastUpdated: Date.now()
        }
      }
    },
    {
      ceremony: {
        uid: "i3kFOOUi8L42ooRWQh8N",
        // @ts-ignore
        data: {
          title: "example",
          prefix: "example",
          description: "Should be last",
          startDate: new Date("2023-07-01").getTime(),
          endDate: new Date("2023-07-31").getTime(),
          penalty: 3600,
          coordinatorId: "uKm6XEjOKoeZUKAf2goY4vamgHE4",
          lastUpdated: Date.now()
        }
      }
    }
  ]

Expected outcome: ceremony with description "should be first" should be displayed on top of the other
image

@glamperd
Copy link
Contributor

glamperd commented Jun 4, 2024

Merged into prod

@glamperd glamperd closed this Jun 4, 2024
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.

Display active ceremonies first on the homepage
2 participants