Giter Site home page Giter Site logo

ushin-ui-components's People

Contributors

dependabot[bot] avatar echentw avatar hiimalexjgarcia avatar holdinghands avatar josephmturner avatar rangermauve avatar

Watchers

 avatar  avatar  avatar

ushin-ui-components's Issues

fix textarea autosize jumpiness

After transition animation ends in StyledSemanticScreen, textareas keep their previously set height until re-render is forced by useEffect in SemanticScreen. The visual effect is jumpy.

Consider adding hoveredItem to Redux

PointHoverOptions display after point is dragged away. This visual bug is caused by the fact that onMouseLeave never fires, thereby never calling setIsHover(false), if an item is being dragged.
This bug can be resolved by calling setIsHover(false) in the hover method of the point drop target. We have done this already in RegionPoint.
Since, FocusPoint lacks a drop target, we pass isHovered and setIsHovered from FocusRegion to Focus. This solution is a bit ugly, and it might be cleaner to add hoveredItem state to the Redux singleton.
Let's consider this strike one. If more reasons appear to move the hovered state to Redux, we'll revisit this issue.

Main point and editingPoint styles

The border and fill of the main point and editingPoint should not continue all the way to the edges of the region.
Also, the main point should have larger font.

Move darkMode to Redux

This will require adding a darkMode reducer, which takes one single action (toggleDarkMode). This action will not yet be called in any components, but it will be called in a settings modal when we add that.
The darkMode boolean (appState.darkMode) should be pulled into any component via mapStateToProps. The list of components which require darkMode for styling can be found with a simple grep.

Focus region items too far spaced out

fix CSS styles in FocusRegion so that items are closer together in the center, but expand in the y-direction as the contents of the focus point grow

Drop a point on a shape inside the large focus U

Dropping any point on one of the shapes in the U sets that point as the focus point, replacing the existing focus point, if it exists.
Dropping a point in the focus region, but not on a shape in the U does not alter the focus point.

bug when dragging point in chrome

When you start dragging a point in the actions region in chrome, the focus region becomes enlarged, as though you had dragged the point over the focus region.
Expected behavior: begin dragging a point in the actions region and the region either expands or stays expanded, allowing you to reorder your points.

Press backspace in empty first point of a region to delete it

If a region contains more than one point, and the cursor is placed in the first point and that point contains no text at all (or it contains only whitespace and the cursor is at the beginning of the point), then delete that first point and move the cursor to the following point (which replaces the first point).

Use Form for search box

Generally it's good to use forms for inputs and to use the submit event rather than detecting the "enter" key. This works better with phones and different input devices / accessibility features.

Ideally the search input should be split such that the search button is an actual submit button so that hitting enter will trigger the submit event.

Sync drafts between tabs

If two tabs are opened at the same time, it is possible to overwrite changes made to drafts in another tab.
Syncing drafts between tabs would be a nice solution. A simpler, less elegant solution would be to prevent the app from running in two tabs.

I removed syncWithLocalStorage logic in 18d4f9d because it would crash when a new reference point was created in different tab. The new reference point id would be added to the draftMessage, but the original point would not be retrieved from ushin-db.

CSS Issues

no x-direction scroll of regions
no bounce of focus point when placeholder gets added and deleted (consider not using flexbox)

Back up hypercore metadata

Wasn't quite sure whether this should be an app feature or db issue, but anyway... There should be a way to back up the user's messages, points, and author metadata. In the case of persistence with hyercore, there should be a way to back up the hypercore itself -- in the case we need to trasnsfer data to another device. How does this sound?

workaround for css grid transitions

CSS grid track change transitions don't work in non-Firefox browsers. Consider alternate methods to achieve the current visual effect which works in firefox when switching expandedRegion.

wavy banner as background for author handle

Stretch the SVG background of the author's handle on the top right of the semscreen until two banner icons fit, then stretch the two, until three banner icons fit, and so on...

bug when moving focus point back into its region

Given that focus point is need point and no other need points exist.
When you drag that point into the needs region and drop it, it stays as the focus point.
Expected behavior: after dropping the point, it is no longer the focus point and it appears in the needs region.

Swipe across shapes inside focus U

On mobile, when you drag your finger across the U-shape, which ever point you release your finger on is selected.
Visually distinguish the currently-selected point.

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.