Skip to content

RTS Welcome Pages#3103

Merged
dbkr merged 23 commits into
developfrom
luke/rts-welcome-pages
Feb 7, 2017
Merged

RTS Welcome Pages#3103
dbkr merged 23 commits into
developfrom
luke/rts-welcome-pages

Conversation

@lukebarnard1
Copy link
Copy Markdown
Contributor

@lukebarnard1 lukebarnard1 commented Feb 1, 2017

This tracks the changes required to re-use the "hompages" concept as a way of displaying welcome pages for RTS team members.
Goes with matrix-org/matrix-react-sdk#666

TODO:

  • Move statically-hosted content to the RTS

@lukebarnard1 lukebarnard1 changed the title RTS Team Welcome Pages RTS Welcome Pages Feb 2, 2017
Luke Barnard added 4 commits February 2, 2017 13:58
See matrix-org/riot-team-server#14
Conflicts:
	src/skins/vector/css/matrix-react-sdk/views/rooms/_RoomPreviewBar.scss
@lukebarnard1 lukebarnard1 requested a review from dbkr February 2, 2017 14:16
@@ -0,0 +1,39 @@
/*
Copyright 2016 OpenMarket Ltd
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

2017 Vector Creations Ltd

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread src/components/structures/HomePage.js Outdated

'use strict';

var React = require("react");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be awesome if we used import when writing new stuff (although I realise this probably wasn't yours)

Comment thread src/components/structures/HomePage.js Outdated
render: function() {
return (
<div className="mx_HomePage">
<iframe src={`${this.props.teamServerUrl}/static/${this.props.teamToken}/welcome.html`} style={{width: '100%', border: 'none'}}/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unless there's a backwards-compat reason for it being 'welcome', I'd suggest maybe 'home'html', or just blank and use the index page.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also would be nice to have the CSS not inline (in fact it looks like this is actually in the scss files, so probably just hasn't been removed from here).

@@ -0,0 +1,31 @@
/*
Copyright 2016 OpenMarket Ltd
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

copyright again

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

var TintableSvg = sdk.getComponent('elements.TintableSvg');

var homeButton;
if (window.localStorage.getItem('mx_team_token')) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might be nice if this loaded the team token at mount time & then used the state here, which wouldn't hit localstorage on every render (and makes render more a function of the state).

Copy link
Copy Markdown
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for fixing those (especially since most of them were not your code in the first place!)

@dbkr dbkr merged commit 2f54034 into develop Feb 7, 2017
@lukebarnard1
Copy link
Copy Markdown
Contributor Author

No probs :)

@lukebarnard1 lukebarnard1 deleted the luke/rts-welcome-pages branch February 7, 2017 11:57
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.

3 participants