Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate metric card names and value fields to use draft.js #425

Merged
merged 21 commits into from
May 26, 2016

Conversation

OAGr
Copy link
Member

@OAGr OAGr commented May 26, 2016

This in ways simplifies the codebase, will remove various bugs around the text fields, and will allow for much more functionality and control around the text areas.

Bug fixes/improvements

  • Text areas should be relatively bug-free. There shouldn't be hidden or scrolling issues.
  • Cursor becomes pointer when in metricSelection state.
  • Clicking backspace will typically not go to browser history.
  • After once cell is selected, it should only take one click to select an empty cell. It used to take 2.
  • Undo / redo should completely work when outside of text areas, and should influence the text when in text areas.
  • When metric card name is edited, background area should not get out of sync (forceUpdate)
  • Clicking delete on empty cell shouldn't cause an error in the console.
  • Refactored GuesstimateForm so that it's a prop to the space canvas, and only passed into the relevant metric card. It should only display if has correct metric ID.

OAGr added 6 commits May 25, 2016 22:15
* master:
  Fixed a problem affecting dev where immutable invariants made space.organization a non-empty default object.
  Removing broken npm deploy rules.
  Using organization in favor of user wherever possible.
  Only check memberships if org id is present, else check creation.

if (!item){ this.props.onEmptyCellMouseDown(e) }

if (inSelectedCell && !item){
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before curly brace

@@ -1,108 +1,118 @@
import React, {Component, PropTypes} from 'react'

import TextArea from 'react-textarea-autosize'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need TextArea anymore, I think.

@mmcdermott mmcdermott merged commit 7bbb24b into master May 26, 2016
@mmcdermott mmcdermott deleted the draftjs-migration branch May 26, 2016 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants