Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Tech Preview feature not working for Integration Editor #409

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

kahboom
Copy link
Contributor

@kahboom kahboom commented Jun 4, 2019

Created another version of ConnectionsWithToolbar per @riccardo-forina 's suggestion.

Screenshot 2019-06-04 16 06 10

fix #374

@riccardo-forina
Copy link
Collaborator

PR Storybook available here

Copy link
Collaborator

@gashcrumb gashcrumb left a comment

Choose a reason for hiding this comment

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

The name, it has to change 😄

Copy link
Collaborator

@riccardo-forina riccardo-forina left a comment

Choose a reason for hiding this comment

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

I suggest EditorStep for the name.

@kahboom
Copy link
Contributor Author

kahboom commented Jun 4, 2019

Alright, here are the changes I've made, based on feedback, that seem to work (albeit some are hacky):

  • Rename to EditorStepsWithToolbar
  • Move to integrations module for reuse
  • Duplicate of Connections component called EditorSteps that uses the IUIIntegrationStep interface and EditorStepsWithToolbar
  • Adjusted the typings to comply (please note the use of as Blah[] a few times, not ideal but it works for now)
  • Rename connections to steps to reflect data more accurately

And still using the .map() part for the filteredAndSortedConnections, as we needed it.

Copy link
Collaborator

@riccardo-forina riccardo-forina left a comment

Choose a reason for hiding this comment

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

Just a quick check, I’ll test this more thoroughly tomorrow

@riccardo-forina
Copy link
Collaborator

PR Storybook available here

@kahboom kahboom force-pushed the 374-config-req-bug branch from e302395 to 1885990 Compare June 5, 2019 09:08
@riccardo-forina
Copy link
Collaborator

PR Storybook available here

@riccardo-forina
Copy link
Collaborator

PR Storybook available here

@riccardo-forina
Copy link
Collaborator

PR Storybook available here

Copy link
Collaborator

@riccardo-forina riccardo-forina left a comment

Choose a reason for hiding this comment

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

It doesn't work

doesntwork

@kahboom kahboom changed the title Tech Preview feature not working for Integration Editor WIP - Tech Preview feature not working for Integration Editor Jun 6, 2019
@riccardo-forina
Copy link
Collaborator

Actually, this needs a rebase, the error I posted above is because we have an extension on staging and this PR is based on a version of the app that was bugging out with that.

@kahboom kahboom force-pushed the 374-config-req-bug branch from fed2c74 to 22674e3 Compare June 6, 2019 16:25
@kahboom
Copy link
Contributor Author

kahboom commented Jun 6, 2019

Screenshot 2019-06-06 17 20 10

No additional or changes to interfaces, no .map, no referencing the Connection interface from what I can see, just added an additional check and used @gashcrumb 's suggestion of the getMetadataValue helper. I did read @riccardo-forina 's suggestion several times. I do understand that this is a not a Connection and instead comprises connections, extensions, and stepKinds, where IUIStep normalizes it. This is using that interface. Something happens in mergeConnectionsSources where a connection property gets added to each object. I understand we can't rely on that, but it's still there, and needs to be iterated over to reach metadata, so I've added another check in EditorSteps.tsx to check if that property exists. Short of that I'm out of ideas, so let me know what exactly would need to change, if anything.

@kahboom kahboom changed the title WIP - Tech Preview feature not working for Integration Editor Tech Preview feature not working for Integration Editor Jun 6, 2019
@riccardo-forina
Copy link
Collaborator

PR Storybook available here

@riccardo-forina

This comment has been minimized.

@kahboom

This comment has been minimized.

@riccardo-forina
Copy link
Collaborator

PR Storybook available here

@kahboom kahboom force-pushed the 374-config-req-bug branch from 06dfeb4 to bf39ab3 Compare June 7, 2019 09:37
kahboom added 27 commits June 14, 2019 12:43
Re-add map for flag to work properly

Lint fix

Update the icon
Rm getConnectionHref
Re-add checks until further clarification
@kahboom kahboom force-pushed the 374-config-req-bug branch from 14e2d6e to c8cfc7e Compare June 14, 2019 11:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants