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

Projects archive UI #7842

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Projects archive UI #7842

merged 3 commits into from
Aug 13, 2024

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Aug 12, 2024

About the changes

Closes issue/1-2666

Discussion points

  • should archive card include collaboration "mode" (badge for 'private' projects)?
  • TODO: check if archive respects "hidden" projects

Copy link

vercel bot commented Aug 12, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 10:58am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Aug 13, 2024 10:58am

@Tymek Tymek changed the title project archive route Projects archive UI Aug 12, 2024
Copy link
Contributor

github-actions bot commented Aug 12, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@@ -55,9 +55,15 @@ const BreadcrumbNav = () => {
.map(decodeURI);

if (location.pathname === '/insights') {
// Because of sticky header in Insights
Copy link
Contributor

Choose a reason for hiding this comment

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

how is it related to archive?

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment was missing. I'll remember to add this kind of fixes in separate PRs in the future

@@ -23,12 +24,25 @@ const StyledCardLink = styled(Link)(({ theme }) => ({
pointer: 'cursor',
}));

export const ProjectGroup: React.FC<{
type ProjectGroupProps<T extends { id: string } = IProjectCard> = {
Copy link
Contributor

Choose a reason for hiding this comment

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

is the extends because we're spreading remaining props?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's because we are using projects[id] for both mapped ProjectCardComponent and links.

Copy link
Contributor

@kwasniew kwasniew left a comment

Choose a reason for hiding this comment

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

I'd add one test that displays projects and tests basic info display in a separate PR when we have hooks connected to the API

@Tymek Tymek merged commit f2b7e02 into main Aug 13, 2024
11 checks passed
@Tymek Tymek deleted the feat/project-archive-ui- branch August 13, 2024 12:33
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.

2 participants