Starter tasks: (It might be helpful to check current code for handling of CGrandCategories, which is similar to the following starter tasks.)
[x] Add API endpoint of http://localhost:3080/api/haskell/category/{ccoUid} in Http.purs (front-ps/src/Guide/Api/Http.purs).
{ccoUid} is the id of the category, e.g. mi360n4k for Web frameworks. This id is coming with API endpoint http://localhost:3080/api/haskell/all-categories, which is already implemented
The type of a succeeded result is CCategoryDetail
[x] Extend State.purs (front-ps/src/Guide/State.purs) to keep current result of fetching category detail data
[x] (depends on previous ^ task) Add Events to Events.purs (front-ps/src/Guide/Events.purs) to fetch and receive category details.
[x] (depends on previous ^ task) Handle these ^ both events in Update.purs to store data in state or to handle an error.
[x] (depends on previous ^ task) Load data of a detail category every time if we are on route CategoryDetail
[ ] (depends on Extend State ^ task) Extend current view CategoryDetail.purs (front-ps/src/Guide/View/CategoryDetail.purs) to show all data of CCategoryDetail
Rewrite
Category
detail page (currently build w/ JS) in PureScriptStarter tasks: (It might be helpful to check current code for handling of
CGrandCategories
, which is similar to the following starter tasks.)[x] Add API endpoint of
http://localhost:3080/api/haskell/category/{ccoUid}
inHttp.purs
(front-ps/src/Guide/Api/Http.purs).{ccoUid}
is the id of the category, e.g.mi360n4k
forWeb frameworks
. This id is coming with API endpointhttp://localhost:3080/api/haskell/all-categories
, which is already implementedThe type of a succeeded result is
CCategoryDetail
[x] Extend
State.purs
(front-ps/src/Guide/State.purs) to keep current result of fetching category detail data[x] (depends on previous ^ task) Add Events to
Events.purs
(front-ps/src/Guide/Events.purs) to fetch and receive category details.[x] (depends on previous ^ task) Handle these ^ both events in
Update.purs
to store data in state or to handle an error.[x] (depends on previous ^ task) Load data of a detail category every time if we are on route
CategoryDetail
[ ] (depends on
Extend State
^ task) Extend current viewCategoryDetail.purs
(front-ps/src/Guide/View/CategoryDetail.purs) to show all data ofCCategoryDetail
Other tasks