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

TICKscript Editor #1721

Merged
merged 44 commits into from
Sep 27, 2017
Merged

TICKscript Editor #1721

merged 44 commits into from
Sep 27, 2017

Conversation

121watts
Copy link
Contributor

@121watts 121watts commented Jul 13, 2017

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

Connect #789

The problem

Sometimes you just want to write your own tick script.

The Solution

Provide a text editor for the user to do so.

@121watts 121watts force-pushed the feature/tickscript-editor branch 2 times, most recently from d5c301b to a4be143 Compare July 25, 2017 20:38
@alexpaxton
Copy link
Contributor

WIP screenshot

screen shot 2017-07-25 at 5 31 19 pm

@lukevmorris
Copy link
Contributor

Blocked on #1733

@121watts 121watts force-pushed the feature/tickscript-editor branch from df57189 to b151e81 Compare September 12, 2017 18:03
@121watts 121watts removed the blocked label Sep 12, 2017
@121watts 121watts changed the title WIP Tickscript Editor Tickscript Editor Sep 14, 2017
@121watts 121watts changed the title Tickscript Editor TICKscript Editor Sep 14, 2017
@cryptoquick
Copy link
Contributor

cryptoquick commented Sep 15, 2017

First, I'm glad we can finally get this in, so great work, to everyone involved
I double-checked your refactor of MultiSelectDropdown, it should be good
I'm not sure if this is a regression, but saving a rule if there is an error now produces a copy of that rule, not sure if this is good or desired behavior... I've replicated it in code outside this branch, and made an issue for it. #1998
More to come, this is a very large PR, please be patient as I review it.

@cryptoquick cryptoquick self-requested a review September 15, 2017 11:24
Copy link
Contributor

@cryptoquick cryptoquick left a comment

Choose a reason for hiding this comment

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

Found a few issues. Let's get these fixed and then I can continue testing.

I went over all the code and it looks great, especially the SFCs for Tables and stuff.

ui/package.json Outdated
@@ -112,6 +113,8 @@
"query-string": "^5.0.0",
"react": "^15.0.2",
"react-addons-shallow-compare": "^15.0.2",
"react-addons-update": "^15.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

DELET THIS

items={allPermissions}
selectedItems={_.get(permissions, ['0', 'allowed'], [])}
items={allPermissions.map(p => ({name: p}))}
selectedItems={perms.map(p => ({name: p}))}
Copy link
Contributor

Choose a reason for hiding this comment

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

There's something wrong with the permissions dropdowns on Enterprise, they list items but don't display the text.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, selecting one selects them all.

Copy link
Contributor

Choose a reason for hiding this comment

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

This has been fixed, but other issues with the backend have come up. See #2021

return data
} catch (error) {
if (!error) {
dispatch(errorThrown('Could not communicate with server'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think we should communicate a more meaningful error message from the backend if there's one available? We do a really bad job of obscuring things that are available and come back from the server, and we just swallow those messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree 💯

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do this in an another issue, like #1539 . :shipit:

@cryptoquick
Copy link
Contributor

Good stuff, reviewed and ready for merge.

@121watts 121watts merged commit c95aeab into master Sep 27, 2017
@121watts 121watts deleted the feature/tickscript-editor branch September 27, 2017 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants