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

WIP : new layout sections #697

Merged

Conversation

alexbeno
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Nov 25, 2024

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

Name Status Preview Comments Updated (UTC)
saas-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 4:30pm
saas-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 4:30pm

Comment on lines 84 to 88
<Translate token={"common:form.reset"} />
</Button>

<Button size={"md"} variant={"secondary"} onClick={onSave}>
<Translate token={"data:deepDive.filters.save"} />
<Translate token={"common:form.save"} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use the translate prop

Comment on lines 29 to 31
contributors: "/data/contributors",
projects: "/data/projects",
overview: "/data/overview",
Copy link
Contributor

Choose a reason for hiding this comment

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

Add root key? data.contributors.root for example

Comment on lines 58 to 62
if (dataViewTarget === "contributor") {
router.push(`${NEXT_ROUTER.data.contributors}?${dateRangeType}${period}${series}${programAndEcosystemIds}`);
} else {
router.push(`${NEXT_ROUTER.data.projects}?${dateRangeType}${period}${series}${programAndEcosystemIds}`);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (dataViewTarget === "contributor") {
router.push(`${NEXT_ROUTER.data.contributors}?${dateRangeType}${period}${series}${programAndEcosystemIds}`);
} else {
router.push(`${NEXT_ROUTER.data.projects}?${dateRangeType}${period}${series}${programAndEcosystemIds}`);
}
router.push(`${dataViewTarget === "contributor" ? NEXT_ROUTER.data.contributors : NEXT_ROUTER.data.projects}?${dateRangeType}${period}${series}${programAndEcosystemIds}`);

?

import { ProjectSidepanel } from "@/shared/panels/project-sidepanel/project-sidepanel";
import { Translate } from "@/shared/translation/components/translate/translate";

enum tabs {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think enums should be capitalized, but then Tabs conflicts with the component of the same name. I went with Views for my enum ^^

@alexbeno alexbeno merged commit 728c21e into main Nov 25, 2024
5 checks passed
@alexbeno alexbeno deleted the e-2492-flatten-navigation-to-only-have-project-table-contributor branch November 25, 2024 16:32
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