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

Improve Facebook workflow #3120

Merged
merged 46 commits into from
Nov 19, 2020
Merged

Improve Facebook workflow #3120

merged 46 commits into from
Nov 19, 2020

Conversation

holiber
Copy link
Contributor

@holiber holiber commented Nov 17, 2020

  • allow streaming to groups
  • allow streaming to the user's timeline
  • allow selecting a scheduled event for streaming
  • the vue-multiselect library has been updated (I needed to update this library because the new version allows better customization)
  • game selectors for twitch and facebook are different inputs now
  • the twitch game selector shows a game image
  • CustomResolution input has improved UX now
  • streaming tests have been sliced by several files
  • added a privacy parameter for FB streams

fbdestination
re-connectfb

Copy link
Contributor

@gettinToasty gettinToasty left a comment

Choose a reason for hiding this comment

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

overall seems to mostly make sense, had a few non-blocking questions

delete inputMetadata.description;
if (options.type === 'bool') {
// FormGroup handle the render of the FormInput title
// so remove the title from FormInput metadata
Copy link
Contributor

Choose a reason for hiding this comment

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

is this only true of bool inputs? i thought most inputs behaved that way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only bool inputs show their title and tooltip independently from FormGroup

@@ -127,7 +127,8 @@ export default class ShareStream extends TsxComponent<{ sharePageUrl: string }>
}

get sharePageUrl() {
return `facebook.com/${this.facebookService.state.activePage.name}-${this.facebookService.state.activePage.id}`;
return '';
// return `facebook.com/${this.facebookService.state.activePage.name}-${this.facebookService.state.activePage.id}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

i thought that we got rid of this page entirely?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I'm also curious where this component is being used. Can we delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can get rid of this component

@@ -58,7 +58,7 @@ export default class PlatformSettings extends TsxComponent<Props> {
return (
<ValidatedForm class="flex" ref="settingsForm">
<div style={{ width: '100%' }}>
{!hasPlatforms && $t('Enable at least one destination to start streaming')}
{!hasPlatforms && $t('Enable at least one destinationType to start streaming')}
Copy link
Contributor

Choose a reason for hiding this comment

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

i feel like we should not use camelCase in any user-facing copy

Copy link
Member

Choose a reason for hiding this comment

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

Looks like another find-replace error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My IDE did a bad job with replacing =(

@@ -190,7 +190,7 @@ export default class ScheduleStreamWindow extends TsxComponent<{}> {
<HFormGroup metadata={this.formMetadata.time} vModel={this.startTimeModel.time} />
</div>
)}
{shouldShowWarn && <div>{$t('Select at least one destination')}</div>}
{shouldShowWarn && <div>{$t('Select at least one destinationType')}</div>}
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above comment

Copy link
Member

Choose a reason for hiding this comment

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

Another one :)

@@ -186,7 +186,7 @@ export class MixerService extends BasePlatformService<IMixerServiceState>
).then(json => json.viewersCurrent);
}

async putChannelInfo({ title, game }: IMixerStartStreamOptions): Promise<boolean> {
async putChannelInfo({ title, game }: IMixerStartStreamOptions): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think technically speaking we could just get rid of this whole service right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we can. I prefer to not do it as a part of this PR

.replace('{width}', imageSize.width.toString())
.replace('{height}', imageSize.height.toString());
return { id: g.id, name: g.name, image };
})[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

love to see us switching over to the new twitch api whenever possible

@@ -65,7 +66,7 @@ export default class LiveDock extends Vue {
this.underlyingSelectedChat = val;
}

viewStreamTooltip = $t('Go to YouTube to view your live stream');
viewStreamTooltip = $t('Open browser to view your live stream');
Copy link
Member

Choose a reason for hiding this comment

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

Let's change this to "View your live stream in a web browser"

@@ -75,7 +75,7 @@ export default class ShareStream extends TsxComponent<{ sharePageUrl: string }>
};

mounted() {
this.facebookService.sendPushNotif();
// this.facebookService.sendPushNotif();
Copy link
Member

Choose a reason for hiding this comment

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

Delete?

@@ -127,7 +127,8 @@ export default class ShareStream extends TsxComponent<{ sharePageUrl: string }>
}

get sharePageUrl() {
return `facebook.com/${this.facebookService.state.activePage.name}-${this.facebookService.state.activePage.id}`;
return '';
// return `facebook.com/${this.facebookService.state.activePage.name}-${this.facebookService.state.activePage.id}`;
Copy link
Member

Choose a reason for hiding this comment

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

Yeah I'm also curious where this component is being used. Can we delete?

@@ -88,7 +88,7 @@ export class DestinationSwitchers extends TsxComponent<Props> {
{isPrimary ? (
<span
vTooltip={$t(
'You cannot disable the platform you used to sign in to Streamlabs OBS. Please sign in with a different platform to disable streaming to this destination.',
'You cannot disable the platform you used to sign in to Streamlabs OBS. Please sign in with a different platform to disable streaming to this destinationType.',
Copy link
Member

Choose a reason for hiding this comment

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

Lol - this looks like a find-replace error. I assume you didn't mean to change this string.

@@ -114,7 +114,7 @@ export class DestinationSwitchers extends TsxComponent<Props> {
}

/**
* Renders a switcher for a custom destination
* Renders a switcher for a custom destinationType
Copy link
Member

Choose a reason for hiding this comment

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

Also looks like a find-replace error

@@ -58,7 +58,7 @@ export default class PlatformSettings extends TsxComponent<Props> {
return (
<ValidatedForm class="flex" ref="settingsForm">
<div style={{ width: '100%' }}>
{!hasPlatforms && $t('Enable at least one destination to start streaming')}
{!hasPlatforms && $t('Enable at least one destinationType to start streaming')}
Copy link
Member

Choose a reason for hiding this comment

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

Looks like another find-replace error

@@ -190,7 +190,7 @@ export default class ScheduleStreamWindow extends TsxComponent<{}> {
<HFormGroup metadata={this.formMetadata.time} vModel={this.startTimeModel.time} />
</div>
)}
{shouldShowWarn && <div>{$t('Select at least one destination')}</div>}
{shouldShowWarn && <div>{$t('Select at least one destinationType')}</div>}
Copy link
Member

Choose a reason for hiding this comment

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

Another one :)

imageSize={{ width: 44, height: 44 }}
/>
<p>
{$t('Make sure Streamlabs app is added to your Group.')}
Copy link
Member

Choose a reason for hiding this comment

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

"Make sure the Streamlabs app is added to your Group."

@avacreeth avacreeth merged commit 3d537ad into master Nov 19, 2020
@avacreeth avacreeth deleted the fb_events_2 branch November 19, 2020 00:00
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.

4 participants