Maptio / maptio

http://www.maptio.com
Other
23 stars 4 forks source link

Replace old outliner #838

Closed rgoj closed 8 months ago

rgoj commented 9 months ago

This finally replaces the old outliner with a notebits-based library, building on top of a chain of branches, the previous one being #837.

Here's an in-progress (not yet complete) list of things that need to be finished for this PR to be merged. I've not divided it yet into: must-be-done and someday-maybe tasks.

Completed tasks

Completed smaller tasks

Remaining smaller tasks

Fast Follow-on

Want to do

Not for now

tomnixon commented 8 months ago

Great work getting this running on staging Romek! Here are the main things that stood out for me on an initial test - I know you're aware of some or perhaps all of them but wanted to give you the fresh eyes perspective.

ESSENTIAL BEFORE SHIPPING It's already so much better than what we have in production so I think we should aim to ship this ASAP. The only two things I could really justify as essential are:

1) ~the initial expansion of nodes to include the first level when a map loads~ and then I think we said we'd hide the expand/collapse all buttons (eventually we'll add expand all to the context menu on each node).

2) expanded view: circle names in leaf nodes have changed from white to black text and are hard to read on the circles with darker backgrounds.

NON-ESSENTIAL In rough priority order. Highest at the top.

Vertical spacing around multi-line items is less than around single-line ones. I don’t know if it’s just due to the spacing but it does look cluttered now that we show circle names over multiple lines. As a map gets more levels of indentation there will be more and more multi-line items. Making spacing consistent will definitely help, or perhaps we should keep everything on a single line and have horizontal scrolling.

Clicking a circle on the map does select the right item in the outliner, but it should also scroll to it and expand any parent circle if not visible.

Not actually about the outliner, but just noting it here: This might have gotten lost during the summer, but remember in Pavilion Gardens we spoke about not zooming in quite so far when a circle is selected, so you can see a bit more context around it. Did we settle on 75% or 85% or something else?

I wonder if the Edit option on the context menu is redundant since clicking the item in the outliner opens up the edit panel anyway and it only takes one more click on the outliner item to edit it so it’s very discoverable and not actually essential since you can edit the circle name in the details panel.

When inline editing, I think pressing enter should save and stop editing. I don’t think enter should create a new item - I think that would get annoying when people just want to change the name of a circle and instinctively press enter to save. Perhaps control+enter should save and create a new child at the same level?

~When inline editing a new circle name for the first time it’s initially labeled ‘undefined’ once you’re editing.~

rgoj commented 8 months ago

Great work getting this running on staging Romek!

Thanks, Tom! 🙇🏻

Here are the main things that stood out for me on an initial test - I know you're aware of some or perhaps all of them but wanted to give you the fresh eyes perspective.

Brilliant, thank you, yes, that's exactly what we needed!

the initial expansion of nodes to include the first level when a map loads and then I think we said we'd hide the expand/collapse all buttons (eventually we'll add expand all to the context menu on each node).

The initial expansion I already completed yesterday after shipping to staging ☺️ I've crossed out from your post anything that is already completed so that it's easier to scan that!

expanded view: circle names in leaf nodes have changed from white to black text and are hard to read on the circles with darker backgrounds.

Oh, briliant, thank you for spotting!! This made me smile actually, because this has been happening for me locally for a long time (it's unrelated to the outliner or the architectural work) and I couldn't immediately see why - and didn't want to spend time investigating as it wasn't happening in production or on staging. Until now. And the fact it appeared on staging yesterday - right after I had to fix the build - makes it obvious where this is coming from! Shouldn't be a problem to fix, much appreciation for spotting, I didn't test the expanded view on staging yesterday! 🙏🏻