Popups/Info View: create initial design #23
Labels
effort: 3:3rd_place_medal: (high):3rd_place_medal:
Put on some coffee and clear your afternoon.
focus: 🎨 design/UI🎨
Style, layout, or user-interface changes
priority: 1 (low)
Should be completed after med-priority
type: ✨ enhancement✨
New feature, improvement, or functionality
Milestone
Summary
This can be just a wireframe, whiteboard, CodePen demo if it's super easy, or even a text outline, but let's get something in place before any heavy coding.
Intent
The plan at the time of writing is to:
UI structure and ideas
Even with a well-organized UI there is a lot going on, so we need to choose how to display it carefully.
Glottocode
then use "N/A" instead (this would be done in JS on the client-side, not the data). This might be a terrible approach for some fields, however, so let's play it by ear, but consider another argument for leaving the UI element intact regardless of populated value: to promote curiosity. For example, if a user clicks a point and sees a popup for the first time and there is an "N/A" for an item or two, at least they will know that info exists and they may be more inclined to poke around more, whereas an omitted UI item would remain unknown to them.Content
Just a rough suggested organizational outline at this point, mainly based off the details found in the Schema/Requirements. The UI is in very early stages largely confined to that sheet so far, so let's instead add to this issue as we go along.
Intro
Centered text, with Heading the largest in the view.
Endonym
in a lot of instances is certainly the prettiest of all the data and could be a respectful nod to the native speakers to show their version of the language name before the English one. Less interesting if it's already in English, but obviously don't show it twice in that scenario. And we need to resolve Correctly show endonyms on all platforms #18 of course...Classification info
Hopefully a better section title, but these ones:
Stats
This section, focused on class-based and/or quantitative-ish info, is just part of Jason's mental UI grouping, but developers might not exactly represent the general user base 😄 . So, let's modify/juggle as needed.
2
). I was also thinking of including a symbol that matches that of whatever we use in the map to depict local size, but that could get out of hand in a popup if a size-based graduated symbol style is used.Global speakers: 1,424,928 (10th)
or something.Where spoken
Hopefully a better heading than that, but basically the global-ish info:
Local geography
Less exciting than the other sections, although neighborhood may be more important than the others. If these fields are used then maybe display in a smaller, more subtle manner and/or put it further down the view.
Media
Description
Description can be quite large, so put it at the bottom of the view and make it collapsible at ~100ish characters with a standard Read more... to toggle the remainder. Determine if
<a>
or other HTML will be included and, if so, setdangerouslySetInnerHTML
on the React component.Sharing
We haven't discussed social sharing too much but if routing does get implemented at least at a per-feature level then we could take advantage of the shareable nature with a "Share this" section for various platforms. This is not in the SOW though, so (assuming there is interest) treat as a wishlist item.
Examples
Example from COVID project:
Example from SBHT popup (click More Info button at top left):
The text was updated successfully, but these errors were encountered: