sul-dlss / argo

The administrative discovery interface for Stanford's Digital Object Registry
Other
20 stars 5 forks source link

Facet "More" dialog has a double header #403

Closed LynnMcRae closed 8 years ago

LynnMcRae commented 8 years ago

Two red bars, differently rendered, both with an operable close X screen shot 2016-01-04 at 10 48 58 am A bug perhaps, but not one that gets in the way.

mejackreed commented 8 years ago

@LynnMcRae I would like to fix this. I need a clear understanding of what we are doing for modals globally. It feels like we have hijacked modal interactions in a couple of places.. Could you describe how modals should work. We don't seem to have any tests for this... that I can find. A few things I've uncovered:

jmartin-sul commented 8 years ago

off-hand, here are the answers to jack's questions above, including convoluted historical background...

i'll look at the code and the commit history later this afternoon and come up with better answers. also happy to pair on this stuff if that'd help, since some of that modal behavior is stuff that i implemented.

mejackreed commented 8 years ago

Thanks for the great context. Will work around that for now and try to clean up some of this.

A few additional questions:

Thanks!

LynnMcRae commented 8 years ago

I put the modals into two categories (restating much of what John summarized)

  1. informational, read-only • resizable, movable (that is, it would be nice to keep/enable these) • dismissed by ESC, click outside the dialog, or by explicit "X" control in header
  2. Input/form • maybe just a minimum size to preserve form layout, but resizable to let text boxes grow • movable too since you might want to see something under the modal • dismissed only by explicit Cancel or Submit (or equivalent)

We know we have a, um, situation with the datastream modal, which changes from informational to edit with a link. If a modal can't change its stripe, can it be replaced on screen with a different modal? Some other approach?

Re persistent modal. If this exists to save state for an accidentally dismissed form, it would be nice to avoid the situation in the first place as described above. Otherwise sure, it's nice if you did some edits, accidentally closed the modal with a stray click or un-intended ESC, and found your edits there when you re-opened the modal immediately. I don't really know the scope of the persistence.

Where do we change the modal title now? I can see the double-header that originated this ticket to be a case, since a generic "more >>" is less desirable than knowing what facet you more-d

mejackreed commented 8 years ago

We have several different patterns right now on how the modals are implemented. I'm in the process of migrating us to a single pattern which I hope can accommodate these situations and alleviate the title, styling, and close issues without losing the work already put into this.

LynnMcRae commented 8 years ago

I imagine this will be resolved by your modal unification work, but just to enumerate some more of the inconsistencies and other issues.

Most modals have a sharp cornered red header resting on top of the round-cornered modal which looks odd to me. Some have left-justified titles, some are centered (preferred/default?) screen shot 2016-01-04 at 2 42 20 pm

We used to have a more integrated style, represented by the second half of the double-header that is the subject of this ticket. screen shot 2016-01-04 at 2 45 50 pm

Note SW does something similar, minus the red background screen shot 2016-01-04 at 2 47 51 pm

Finally, the blue-button form/dialogs are just a mess. Action controls are found in the form, sometimes multiple ones, as well at the bottom of forms. The internal dialog problems won't be fixed by modal unification alone, though I hope they won't get in the way. I'll work on separate tickets for individual dialogs. screen shot 2016-01-04 at 2 42 46 pm

screen shot 2016-01-04 at 3 00 07 pm

screen shot 2016-01-04 at 3 00 46 pm

screen shot 2016-01-04 at 3 01 00 pm

This most recent mdal may be the closest to the controls we want, except for the redundant and ambiguous close-X in the header. screen shot 2016-01-04 at 3 06 36 pm

LynnMcRae commented 8 years ago

Open version also has good controls, albeit in a different style screen shot 2016-01-04 at 3 12 53 pm