Code Monkey home page Code Monkey logo

dvl-core's People

Contributors

ajb avatar allolex avatar jessicb avatar jrubenoff avatar talgie-cb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jrubenoff

dvl-core's Issues

Polyfills

extract polyfills from Screendoor -> dvl-core (or dvl-polyfills?)

Navbar component

This is probably a component that belongs in dvl-core, since every app we make will need one. Not to mention our current navbar needs a rewrite (according to @jrubenoff IIRC).

Redesign flashes

  • Stack multiple flashes instead of overlaying them
  • Generate flash <div>s with js, always
  • New visual style?

Button & select tweaks

Made these changes in feature/project-teams-mvp, they didn't turn out to be necessary for that branch, but we might want to consider merging them anyway:

.button {
  line-height: normal;
}

.styled_select_wrapper {
  vertical-align: top;
}

Multi-step nav

We have a few different components for multi-step navigation. Screendoor's wizard checklist lets you navigate to any step:

screen shot 2015-07-06 at 10 46 47 am

I dislike this component because it takes up a lot of horizontal space. Also, the "checked" status is meaningless. Just because you visited a page, filled something out on that page, or even filled out everything doesn't mean you're done with it.

(For example, you could have a rough draft of a Screendoor project description, and the checklist would still mark it as "done".)

Screendoor's bottom status bar lets you navigate to the previous / next page:

screen shot 2015-07-03 at 7 35 21 pm

The tabs currently in the style guide are great if you don't have to go through each step in order:

screen shot 2015-07-03 at 7 37 28 pm

And for some flows, like when sending a message or importing responses in Screendoor, we have no components.

We probably need to come up with a few different patterns. I was thinking about switching to respondent view-style pagination for the wizard. Something like:

screen shot 2015-07-03 at 7 42 30 pm

But this wouldn't work for a linear flow like importing responses, where it doesn't make sense to jump around between steps.

Persistent flashes with actions

Outcomes

  • Make it more visually obvious when flashes contain actions.
  • Give users enough time to read, understand and perform actions contained in flashes.

Structure

If a flash contains a button, that flash should stay onscreen until the user performs another action or goes to a different page.

Currently this disappears after 10 seconds:

screen shot 2015-05-14 at 1 15 37 pm

Visual

Rough mockup:

screen shot 2015-05-14 at 1 19 18 pm

.input_sub

It was committed in the payments branch of Screendoor, but due to various merging stuff, it has been removed. Should we add to forms.scss?

Increase dropdown default min-width

img

Shouldn't this dropdown extend to take up more width? Or should the developer explicitly set a width in CSS if they want a dropdown that's wider than the current 140px?

Make this repo as small as possible

For discussion:

I should never have to PR to more than one repo to change a UI component. Every permutation of a component's markup, styling and JS should be encapsulated in a single codebase.

Following that logic, dvl-core should only contain styles relevant to the entire application, rather than styles for just one or even a few components. This would include:

  • Bare-bones HTML5 reset: remove all default styling on uls, buttons, etc. so we can style to our preference within each component
  • Variables, mixins like clearfix
  • Print styles
  • Grid system?
  • Maybe some global styling for a few elements

This means modals, tooltips, sidebar styles, etc. should go into their own separate repos. Also, we take out any default styling for elements we override in another component.

Thoughts?

Redesign bottom_status_bar

I can't find it now, but Intercom had a design that I really liked -- it combined the bottom status bar with "breadcrumb" steps. I'll try to find a screenshot of it...

Icon set

Continuing dobtco/screendoor-v2#926

In addition to what's in respondent view, I drew a bunch of icons last week.

screen shot 2015-07-02 at 9 21 01 am

I'm not sure how to reference them in the style guide's CSS.

I have a few more planned, but for some of our current icons (like the gear for settings), I'm not confident enough in my illustration abilities to create versions I'm happy with.

For now, we're using both our icon set and FontAwesome, but supplementing our own icon set with some third-party icons probably makes the most sense.

Sortable lists

Outcome

Create a component which elegantly displays lists of sortable data not well-suited to a tabular structure.

Structure

First draft at a design. Ignore the tooltip at the bottom:
https://redpen.io/fv7a9131f73748ea98

The toggle button is supposed to be a new iteration of .dropdown_toggle_button.gray. It is below the header, because you can place something to the right of the header: a .filter_form, or a secondary action.

Custom dropdowns

Breaking this out from dobtco/screendoor-v2#888.

Desired Outcome

  • Create a UI component that can effectively replace the select for inputs with:
    • Many answer options
    • Long answer options that cannot be truncated
  • Allow for at least two levels of information hierarchy.
  • Make a dropdown control that's usable and performant on mobile devices.

Auto-expanding textareas

Problem

I see things like this pretty frequently:

screen shot 2015-05-21 at 5 05 59 pm

screen shot 2015-05-21 at 5 06 16 pm

Pretty cramped.

Proposal

Textareas that automatically expand as you add more text.

I've only seen this implemented in super-hacky ways (like a duplicate textarea positioned -1000px offscreen). @dobtco/dev, any alternatives you've seen?

Make focus states clear in both keyboard and mouse navigation

(This is not high priority, but I want to track it somewhere.)

We redesigned our focus states in #69 with the following in mind:

img

However, I think that test is fatally flawed, because focus is not always given by a user tabbing through elements.

Can you tell what is focused here?

img

It's the "Confirm" button.

An ideal solution, in my mind, would be to revert back to my following proposal in #69:

We only apply subtle style changes to focus states. This can include changing the size of the focus outline, or replacing the outline with a border of similar color, but we never remove the outline/border completely.

I'm amending it, too, because I think the border should always be the same color.

I swear I've ran into more instances of this being problematic, but I can't find them right now. I'd be open to the argument that this is a one-off issue affecting the "Confirm" button, but I think that more issues will become apparent, not less.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.