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

App load tweaks, improve error pages #13329

Merged
merged 23 commits into from
Apr 30, 2020
Merged

App load tweaks, improve error pages #13329

merged 23 commits into from
Apr 30, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Apr 22, 2020

Fixes #792
Needs merging in lock-step with matrix-org/matrix-react-sdk#4462

Pending work:

  • redirect to static pages on complete failure
  • unsupported browser page inc button to ignore

Incompatible browser:
image

Incompatible browser and React failed to load:
image

Invalid config.json:
image

Something went HUGELY wrong but Modernizr seems to be happy with the browser
image

t3chguy and others added 16 commits April 22, 2020 13:29
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
…x and chrome

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy requested review from a team April 23, 2020 15:12
@t3chguy t3chguy marked this pull request as ready for review April 23, 2020 15:13
t3chguy added 3 commits April 23, 2020 16:27
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
…n bundle

and s/CompatibilityPage/CompatibilityView/

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy
Copy link
Member Author

t3chguy commented Apr 23, 2020

image

@turt2live turt2live self-requested a review April 27, 2020 23:13
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

generally looks fine, just a bunch of stylistic concerns.

src/async-components/structures/CompatibilityView.tsx Outdated Show resolved Hide resolved
src/async-components/structures/CompatibilityView.tsx Outdated Show resolved Hide resolved
src/async-components/structures/ErrorView.tsx Outdated Show resolved Hide resolved
src/async-components/structures/ErrorView.tsx Outdated Show resolved Hide resolved
@@ -49,7 +49,7 @@
<% }
} %>
</head>
<body style="height: 100%;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
Copy link
Member

Choose a reason for hiding this comment

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

a bit unclear what this change is doing, but probably fine

Copy link
Member Author

Choose a reason for hiding this comment

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

its fixing the margin around the ErrorView and CompatibilityView in Chrome which has a default margin for when our react-sdk css doesn't get loaded yet.

src/vector/index.ts Show resolved Hide resolved
<p class="mx_Spacer"><strong>Android</strong></p>
<a href="https://play.google.com/store/apps/details?id=im.vector.app" target="_blank"
class="mx_ClearDecoration">
<svg width="162px" height="48px" viewBox="0 0 162 48" version="1.1"
Copy link
Member

Choose a reason for hiding this comment

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

We really need to not have these SVGs here. If we can't import them then we should at least use relative references.

Copy link
Member Author

Choose a reason for hiding this comment

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

We have them in the mobile_guide, its by Nad's design to be an inline page to make it as not brittle as possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, the original requirement for mobile_guide was that the page was self encapsulated and portable for implementation ease. If we want to factor the SVG's out that's fine by me, but will leave it to yourselves on technical review.

t3chguy added 3 commits April 28, 2020 00:35
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-Authored-By: Travis Ralston <travpc@gmail.com>
@t3chguy t3chguy requested a review from turt2live April 27, 2020 23:53
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

probably fine enough to merge

Sorry for the delay on this (again), it keeps showing up in the infinite backlog section of my review queue.

@t3chguy t3chguy merged commit 33406d1 into develop Apr 30, 2020
@t3chguy t3chguy deleted the t3chguy/app_load4 branch May 12, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants