research-software-company / wikidata-fuzzy-search

0 stars 0 forks source link

Add another property to RegionNode, saying it's final #26

Open zmbq opened 4 years ago

zmbq commented 4 years ago

A final region node is a node that can't have any children. This node will not be a link in the path or in the list.

  1. Add the final boolean property to RegionNode.

  2. When turning Regions in RegionNodes, find out if we're creating regions for admin3 (you may need to add another argument to the function). If so - set final to true. Otherwise - set final to false.

  3. Change the UI so that nodes with final=true do not appear as links on hover, and don't do anything with the click event (add a non-final class to all non-final nodes, and add the :hover CSS rule just for that class).