stuyspec / cms

New CMS using React + Typescript.
MIT License
5 stars 10 forks source link

Better section select control #1

Closed DJankauskas closed 5 years ago

DJankauskas commented 5 years ago

Each article needs to be in a section (News, Opinions, etc). Currently, they're selected by a simple text dialog which requires a raw section id.

That's obviously a bad design, and needs to be replaced with a proper select control. Requirements:

Tools to use: -the allSections query to get all sections to list -to get top level sections, use the above query and check if parent_section is null -for subsections use subsections query

DJankauskas commented 5 years ago

Solved with the SectionSelect component, which is just a simple drop-down.