Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Add HNPWA entry using Polymer Starter Kit #55

Closed
wants to merge 3 commits into from

Conversation

mozeal
Copy link

@mozeal mozeal commented Jun 3, 2017

Submit for hacker-news-pwas

Copy link
Collaborator

@housseindjirdeh housseindjirdeh left a comment

Choose a reason for hiding this comment

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

All in all this looks like a solid app so thank you for submitting this 🎉. It's mobile responsive, seems quite fast and is an awesome build!

Just a few tiny things with the PR:

  1. Add yourself in the contributors directory as well so you show up as an author!
  2. The app styles are slightly different (a drawer
    menu instead of a header) and that's alright. We're meaning to standardize all the styles in each of the implementations but until then this is fine.
  3. Tiny thing I noticed: story links (such as Ask HN items) that should route directly to the comments instead of an external source don't seem to navigate there (click any Ask HN and you'll see what I mean). This fix doesn't have to be in this PR, it's quite minor and I'm okay with having this open as an issue if you wish to merge this in without the fix.
  4. A couple of nitpicks with your added file

Other then that, I think this will be a good addition to HNPWA 👍

---
weight: 9
title: 'HN-PWA'
github-title: 'mozeal'
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be the github title of the app, mozeal/hn-pwa, not just your username (Apologies if it's ambiguous!)

- name: 'Mozeal'
lighthouse: 91/100
interactive-em: 4.817s
interactive-faster-3g: 2.696s
Copy link
Collaborator

Choose a reason for hiding this comment

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

For both EMand 3G - I notice you obtained them from WPT First View times. We've been using the First Interactive (beta) times from the linked lighthouse results for each implementation so could you use that instead? (Looks like your 3G TTI is under 5s which is good 👍 )

lighthouse-link: https://www.webpagetest.org/lighthouse.php?test=170603_Q7_8f9c820981695c6b9fcc810c854b4362&run=3
wpt-em-link: https://www.webpagetest.org/result/170603_Q7_8f9c820981695c6b9fcc810c854b4362/
wpt-faster-3g-link: https://www.webpagetest.org/result/170603_8G_7c8f401cd68ccf076e1c2e00147c98a4/
image: http://qrx.io/ss/hn-pwa.png
Copy link
Collaborator

Choose a reason for hiding this comment

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

So the rest of the implementations have been using a phone frame for each of the screenshots. What I used was MockUPhone to get any phone frame and just upload the image there (you may need to compress the output as well with something like Compressor.io as the images do come out quite large)

However we do need to change things up a bit and use either a single phone frame or a generic outline (#14) but until then this will work. I can later update all the phone frames when I get the time.

lighthouse-link: https://www.webpagetest.org/lighthouse.php?test=170603_Q7_8f9c820981695c6b9fcc810c854b4362&run=3
wpt-em-link: https://www.webpagetest.org/result/170603_Q7_8f9c820981695c6b9fcc810c854b4362/
wpt-faster-3g-link: https://www.webpagetest.org/result/170603_8G_7c8f401cd68ccf076e1c2e00147c98a4/
image: http://qrx.io/ss/hn-pwa.png
Copy link
Collaborator

Choose a reason for hiding this comment

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

Another thing is that we host all the images in our site which makes for easier service worker caching. Could you just save the image in the assets/images directory to make things simpler here?

@addyosmani addyosmani changed the title hn-pwa Add HNPWA entry using Polymer Starter Kit Jun 5, 2017
Copy link
Collaborator

@housseindjirdeh housseindjirdeh left a comment

Choose a reason for hiding this comment

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

image

Looks like images aren't rendering properly and it's because of a few tiny things.

lighthouse-link: https://www.webpagetest.org/lighthouse.php?test=170604_0Q_306ecb0bc3f53815f01357f8fa6e1cbb&run=2
wpt-em-link: https://www.webpagetest.org/result/170604_3H_17cf72d4b241ea2d5fae6142e860ef64/
wpt-faster-3g-link: https://www.webpagetest.org/result/170604_0Q_306ecb0bc3f53815f01357f8fa6e1cbb/
image: /asset/images/hn-pwa-mobile.png
Copy link
Collaborator

@housseindjirdeh housseindjirdeh Jun 5, 2017

Choose a reason for hiding this comment

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

Little typo here, needs to reference the assets folder not asset.

hosting: 'Google AppEngine'
other-details: ''
authors:
- name: 'Mozeal'
Copy link
Collaborator

Choose a reason for hiding this comment

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

So in order for the contributor to show up underneath their app, you'll need to make sure the name here matches that in the contributor submission (for example if you wanted to use the name Mozeal, you'll have to put that exact string here and in your submission under _contributors

@addyosmani
Copy link
Member

Friendly ping with respect to the review comments @mozeal :)

@addyosmani
Copy link
Member

@mozeal do you think you might have time to take a look at the above feedback comments?

@addyosmani
Copy link
Member

friendly ping :)

@mozeal
Copy link
Author

mozeal commented Jul 16, 2017 via email

@addyosmani
Copy link
Member

addyosmani commented Jul 19, 2017

@mozeal Could you double check the timings in your submission are using the numbers for "first interactive" from the Lighthouse reports in WebPageTest?

e.g Go to your report:

image

Click the Lighthouse score:

image

Use the numbers from the performance section:

image

Right now for example the faster 3G and EM numbers do not appear to match those in these reports.

@addyosmani
Copy link
Member

In case he has time, I'm also looping in @anubhav7495 for his thoughts on this implem :)

@anubhav7495
Copy link
Collaborator

@mozeal The app looks a little different but that is mostly fine for now.

  1. I think the app is missing pagination, which is kind of an important requirement. [High]
  2. Opening comments view results in a stray console.log. [Medium]
  3. The url scheme is a little odd as /list/TopStories or /list/Comment, you can simply change it to /TopStories or /Comment. [low]

Please try to fix High or Medium marked issues for submission. low marked issues can be done later.

Lighthouse Audits

Faster 3G TTI 4s
3G EM TTI 4.75s

The above lighthouse audits also highlight some opportunities to improve the performance even further, please try to take a look at that too.

Thanks.

@addyosmani
Copy link
Member

Friendly ping @mozeal in case you have time to work on those last remaining bits. We'd love to have this implementation land.

@addyosmani
Copy link
Member

Hey folks. As it's been a few quarters since the last updates on this PR, we're going to go ahead and close it. If we would like to explore this PR once again, please update the weights based on master and tackle the comments from @agubler in #55 (comment). Thanks once again for your efforts to contribute here!

@addyosmani addyosmani closed this Jun 29, 2018
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.

5 participants