Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Add RelayPlugin #200

Merged
merged 15 commits into from
Sep 22, 2015
Merged

Add RelayPlugin #200

merged 15 commits into from
Sep 22, 2015

Conversation

kassens
Copy link
Member

@kassens kassens commented Sep 10, 2015

This is mostly @jaredly's work to add an initial plugin for Relay.

It currently includes #186, but I'll rebase once that's landed to clean this PR up.

I've fixed lint and flow issues as well as actually disabled this plugin by default. Since we don't have options yet, it's just commented out in Panel.js.

It's the beginning of #187.

@kassens
Copy link
Member Author

kassens commented Sep 22, 2015

@yungsters @steveluscher @spicyj Thoughts on moving forward with this?

});
});
bridge.on('relay:success', ({id, response, end}) => {
console.log('response', id, response);

Choose a reason for hiding this comment

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

We should remove these.

Conflicts:
	agent/Bridge.js
	frontend/Panel.js
	frontend/SplitPane.js
	frontend/decorate.js
A better approach migtht be to implement a handshake on either the `Bridge` or
`Wall` level that confirms that both sides are ready before sending anything.
Only show the Relay plugin for now as long as `location.hash` contains
`relaydevtools`.
@kassens
Copy link
Member Author

kassens commented Sep 22, 2015

@yungsters and I thought it's best to land this (behind the URL toggle) and then iterate.

kassens added a commit that referenced this pull request Sep 22, 2015
@kassens kassens merged commit 5bbe03c into facebook:master Sep 22, 2015
@kassens kassens deleted the relay branch September 22, 2015 04:49
@jaredly
Copy link
Contributor

jaredly commented Sep 22, 2015

At one point I had a settings tab see branch here, where I planned to allow users to enable/disable various plugins. That way you wouldn't need the location.hash thing.

@kassens
Copy link
Member Author

kassens commented Sep 22, 2015

@jaredly: Yeah, I saw that but it didn't seem worth it for a single option. Once, we evolve the plugin a bit more, I think we can enable most things just when we see it's being used on the page.

@jaredly
Copy link
Contributor

jaredly commented Sep 23, 2015

Other things that a settings page would be useful for:
Switching off display of <RelayWrapper/> components, see #211

I agree that relay should only appear when it's detected though

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