CodingNic

Categories and Summary

Render Categories from the API

Categories and Summary 12 min read

Render Categories from the API

Use api.getCategories() during the shared refresh and render the results in CategoriesPage.jsx.

Keep category color with the category object so the same metadata can be used by the Ledger and Summary views.

Test it

Open the Categories page and compare its list with server/data/db.json.

Checkpoint

Category names and colors come from server data rather than duplicated UI constants.