Skip to content

Learn Page UI Update#5

Merged
jeafreezy merged 15 commits intojan-fixes-and-enhancementsfrom
learn-page
Jan 27, 2026
Merged

Learn Page UI Update#5
jeafreezy merged 15 commits intojan-fixes-and-enhancementsfrom
learn-page

Conversation

@superwaih
Copy link
Collaborator

This PR finalizes the UI design for the Learn page and addresses issue
check the videos below for the before and after
before

Screen.Recording.2026-01-26.at.23.21.05.mov

after

new-learn.mov

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
f-a-ir Ready Ready Preview, Comment Jan 27, 2026 5:57pm

Request Review

Copy link

@jeafreezy jeafreezy left a comment

Choose a reason for hiding this comment

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

Thank you for the great work @superwaih!

Just some minor changes and this will be ready to merge.

Generally also, don't forget to run pnpm format to format the code.

Thanks.

Choose a reason for hiding this comment

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

Minimize

Choose a reason for hiding this comment

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

minimize

Choose a reason for hiding this comment

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

This seems to be the first hook to make api calls. Other hooks are mostly utilities, so we need to organize this better. Can this be under services ? Or be a subfolder named hooks under the learn component. Which do you suggest ? Or it's okay under hooks folder but we have another subfolder named services...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, i'll create a new folder inside the hooks folder named services

Choose a reason for hiding this comment

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

Write vitest/unit test for this hook and other hooks and functions in this pr

import { useQuery } from "@tanstack/react-query";

const FAIR_UPDATES_URL =
"https://raw.githubusercontent.com/hotosm/fAIr/develop/docs/assets/fair-updates.json";

Choose a reason for hiding this comment

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

I don't see this changing, but make it an environment variable and let it fallback to this. See the config/env file and put it there. Let it come from there.

toast(message, "danger");
};

export const BACKUP_VIDEO_URL = "https://www.youtube.com/embed/N2_9Bvm05_0?si=to_2aoeRCW3APmmZ";

Choose a reason for hiding this comment

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

Put this as well in the env config folder and let it be an environment variable.

Which means you'll update the env.dist so others can know.

…tion

- Implemented a new Carousel component with responsive design using Shoelace.
- Added styles for carousel and update cards in carousel.css.
- Created tests for the getSlidesPerPage function to ensure correct slide counts based on breakpoints.
- Developed useBreakpoint hook tests to verify breakpoint detection and updates.
- Introduced useFairUpdates hook to fetch updates from a specified URL with error handling.
Copy link

@jeafreezy jeafreezy left a comment

Choose a reason for hiding this comment

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

Some changes are needed. Please check @superwaih .

Also don't forget to run prettier and remove any console.log!

)}
/>
{/* <div
className="relative updates-carousel-container"

Choose a reason for hiding this comment

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

Why is this commented out ?

Copy link

@jeafreezy jeafreezy left a comment

Choose a reason for hiding this comment

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

This looks great. Thank you for the great work!

@jeafreezy jeafreezy merged commit 0403e56 into jan-fixes-and-enhancements Jan 27, 2026
2 checks passed
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