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

Tbcct 260 fe implement methodology section #254

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

atrincas
Copy link
Collaborator

@atrincas atrincas commented Jan 27, 2025

Added Methodology Page and Components

Changes

  • Methodology sections according to docx document and Figma design
  • New UI components (List, Title, SubHeader, MethodologyTable)
  • Sidebar navigation with scroll spy functionality
  • Refactor scroll tracking into custom hook
  • Feature flag enabled for methodology page

Jira

Copy link

vercel bot commented Jan 27, 2025

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

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 4:05pm

@atrincas atrincas changed the title Tbcct 260 fe implement methodology section - DRAFT Tbcct 260 fe implement methodology section Feb 23, 2025
@atrincas atrincas marked this pull request as ready for review February 23, 2025 09:20
@atrincas atrincas requested a review from agnlez February 23, 2025 09:21
Comment on lines 30 to 36
const navItems = useMemo(() => {
return METHODOLOGY_SECTIONS.map(({ id, title, href }) => ({
id,
label: title,
href,
}));
}, []);
Copy link
Member

Choose a reason for hiding this comment

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

Isn't METHODOLOGY_SECTIONS static content? I would move this parse out of the Methodology function as there is nothing the parse depends on.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point! Will do that

@agnlez
Copy link
Member

agnlez commented Feb 24, 2025

image
I think the titles "Project types" and "Countries" look really small in comparison with the rest of the body.

@agnlez
Copy link
Member

agnlez commented Feb 24, 2025

Scrolling down, the sidebar jumps from "Project costs – assumptions and methodology" to "Qualitative scorecard details and sources" without passing through "Model assumptions".

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

Successfully merging this pull request may close these issues.

2 participants