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

[WEBSITE-405] Use plugin-specific title and description in response metadata #66

Merged
merged 10 commits into from
Nov 26, 2019

Conversation

timja
Copy link
Member

@timja timja commented Nov 25, 2019

Downstream of jenkins-infra/jenkins.io#2674

Related to issue # WEBSITE-405

Summary of this pull request:
SEO fixes to use specific title, and description

cc @halkeye @zbynek @oleg-nenashev

server.js Outdated Show resolved Hide resolved
server.js Outdated Show resolved Hide resolved
server.js Outdated
@@ -35,6 +35,10 @@ app.use(jsPath, express.static('./dist/client'));
app.engine('hbs', exphbs({extname: '.hbs'}));
app.set('view engine', 'hbs');

const defaultPluginTitle = 'Jenkins Plugins';
const defaultPluginDescription = 'Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software';
Copy link
Contributor

Choose a reason for hiding this comment

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

This description does not help in the case of plugins. I believe that almost all plugins already set a kind of description, but we might want to have a somethinf more explicit. Not a blocker

Copy link
Member Author

Choose a reason for hiding this comment

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

The description comes from the index.jelly so it's required AFAIK, this is used on pages that aren't plugins, i.e. at least the home page.

Happy to reword it, but this is what it was before

server.js Outdated Show resolved Hide resolved
Tim Jacomb and others added 4 commits November 25, 2019 08:49
Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
@oleg-nenashev oleg-nenashev changed the title [WEBSITE-405] Use specific title and description [WEBSITE-405] Use plugin-specific title and description in response metadata Nov 25, 2019
@oleg-nenashev
Copy link
Contributor

I will try to land it today

@zbynek
Copy link
Contributor

zbynek commented Nov 25, 2019

@timja @oleg-nenashev does title change on navigation for you?

@timja
Copy link
Member Author

timja commented Nov 25, 2019

@timja @oleg-nenashev does title change on navigation for you?

no it doesn't struggling to fix it though,
figured out why I was getting so stumped earlier though, any errors in server.js were getting swallowed

@timja
Copy link
Member Author

timja commented Nov 25, 2019

@timja @oleg-nenashev does title change on navigation for you?

Fixed

@zbynek
Copy link
Contributor

zbynek commented Nov 25, 2019

now the title is updated on navigation to a plugin, but not when you navigate back with the "fid plugins" link

@timja
Copy link
Member Author

timja commented Nov 25, 2019

now the title is updated on navigation to a plugin, but not when you navigate back with the "fid plugins" link

Seems to work for me?
Could you please upload a gif or be more specific on URLs / steps?

i.e. I did:

export HEADER_FILE=http://0.0.0.0:4242/template/index.html
yarn server

open http://localhost:5000

  • type slack, enter
  • Click Slack Notification
  • See title updated
  • Click Find plugins
  • See title updated
  • Click cucumber-slack-notifier
  • See title updated

@zbynek
Copy link
Contributor

zbynek commented Nov 25, 2019

  • run
HEADER_FILE=https://gist.githubusercontent.com/zbynek/816b7cb8a613a4e1fe4a3ba5c160dab8/raw yarn server
  • open http://localhost:5000/git
  • click Find plugins -> title is still Git, expected Jenkins plugins
  • click any plugin on index page -> title is OK
  • click Find plugins again -> title reverts to git

If I start by visiting the index page, it works

@timja
Copy link
Member Author

timja commented Nov 25, 2019

  • run
HEADER_FILE=https://gist.githubusercontent.com/zbynek/816b7cb8a613a4e1fe4a3ba5c160dab8/raw yarn server
  • open http://localhost:5000/git
  • click Find plugins -> title is still Git, expected Jenkins plugins
  • click any plugin on index page -> title is OK
  • click Find plugins again -> title reverts to git

If I start by visiting the index page, it works

Fixed thanks for the testing

@zbynek
Copy link
Contributor

zbynek commented Nov 25, 2019

@timja looks good now 🎉

@oleg-nenashev
Copy link
Contributor

:shipit:

@oleg-nenashev oleg-nenashev merged commit cb56fdc into jenkins-infra:develop Nov 26, 2019
@timja timja deleted the seo-2 branch November 26, 2019 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants