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

fix(site): rm duplicate mask-icon; refactor(site): reorder <head> #425

Merged
merged 4 commits into from
Mar 14, 2022

Conversation

greyscaled
Copy link
Contributor

@greyscaled greyscaled commented Mar 13, 2022

Summary

There was a duplicate rel=mask-icon tag in html_templates/index.html. First and foremost, this was fixed in 2eca17e. The source of the confusion was likely that the rel attribute was in a different order for the case whereby we specified crossorigin, so I re-arranged those attributes.

Then, to make v2 match v1, I re-orderd the meta and link tags at large in a4b56cc to be in the same order (grouping meta and links rather than interleaving them).

Impact of change

There's likely no harm in having two rel=mask-icon tags, I imagine only one (not sure which) gets picked up by Apple. But it's certainly unnecessary and a tad confusing. Overall this is mostly a quality of life refactor and v1 -> v2 parity.

/favicon.svg should 404, but it's also a duplicate of the mask-icon
that has crossorigin="use-credentials"

refactor(site): link attribute ordering

I believe the former duplication of rel="mask-icon" was because the
crossorigin and rel attributes made it less readable.
refactor(site): reorder link and meta tags

refactor(site): reorder link and meta tags
@greyscaled greyscaled self-assigned this Mar 13, 2022
@codecov
Copy link

codecov bot commented Mar 13, 2022

Codecov Report

Merging #425 (27c4fa5) into main (60f3cf6) will increase coverage by 0.16%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #425      +/-   ##
==========================================
+ Coverage   68.03%   68.19%   +0.16%     
==========================================
  Files         159      159              
  Lines        9226     9226              
  Branches       73       73              
==========================================
+ Hits         6277     6292      +15     
+ Misses       2325     2312      -13     
+ Partials      624      622       -2     
Flag Coverage Δ
unittest-go-macos-latest 62.74% <ø> (+0.04%) ⬆️
unittest-go-ubuntu-latest 67.55% <ø> (+0.24%) ⬆️
unittest-go-windows-2022 62.37% <ø> (+0.29%) ⬆️
unittest-js 64.07% <ø> (ø)
Impacted Files Coverage Δ
provisionersdk/transport.go 78.72% <0.00%> (-6.39%) ⬇️
peer/conn.go 79.53% <0.00%> (+0.25%) ⬆️
provisionerd/provisionerd.go 78.67% <0.00%> (+0.91%) ⬆️
provisioner/echo/serve.go 57.50% <0.00%> (+2.50%) ⬆️
codersdk/provisionerdaemons.go 61.53% <0.00%> (+3.07%) ⬆️
peerbroker/dial.go 82.45% <0.00%> (+7.01%) ⬆️
provisionersdk/serve.go 43.24% <0.00%> (+8.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60f3cf6...27c4fa5. Read the comment docs.

Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Nice lil cleanup!

@greyscaled greyscaled merged commit 80577d0 into main Mar 14, 2022
@greyscaled greyscaled deleted the vapurrmaid/dedupe-mask-icon branch March 14, 2022 00:24
@misskniss misskniss added this to the V2 Beta milestone May 15, 2022
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.

None yet

3 participants