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:
drop-down allows all top-level sections to be selected
-sections can have subsections (e.g. Sports has the Professional Sports subsection). When a section is selected, its subsections should be listed to the right in another dropdown.
-an infinite depth should technically be supported, although the ui only needs to looks nice for 3-4 levels
-component should be located in modules/editor/components/helpers
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
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