phetsims / decaf

PhET Java Simulations converted to HTML5 using CheerpJ
1 stars 0 forks source link

Browser tab title could be more specific #73

Open samreid opened 4 years ago

samreid commented 4 years ago

At the moment, it reads "PhET Java CheerpJ", but we could have it indicate the simulation name.

image

ariel-phet commented 4 years ago

@samreid - our convention for HTML5 sims is is just shows the simulation, so that would be a better experience certainly.

However, how much work would it be to make that improvement. If it is more than a couple of hours it is not worth it at this point.

If making the simulation title appear is a fair bit of work, I would make this tab simply say "PhET". "PhET Java CheerpJ" is going to be meaningless to most users.

samreid commented 4 years ago

There are a few possibilities along this spectrum:

  1. Fully automate and support all languages: Read from the simulation.properties file to get a list of the simulations, then look up their translated names (for all languages). Put these into the HTML file, then check the query parameter and update the page title accordingly. 3-5 hours.
  2. Fully automate, but only for English. Like the above, but maybe closer to 3-4 hours?
  3. Put the title: simulation as the title. For instance, for "Reactions and Rates" the title would be "reactions-and-rates". For "Faraday's Electromagnetic Lab" it would be "faraday: faraday". This would be around 1 hour.
  4. Just put the project name in the title. For "Reactions and Rates", this would be "reactions-and-rates". For any sims in the faraday suite, this would be "faraday" (for each of the sims). This would be around 30 minutes.

There is another option which doesn't automate it. For single-simulation projects, we could just edit the HTML manually. This would take 1-2 minutes per deploy and only work for single-simulation projects, and English only. If we try to do this for multi-simulation projects, it would likely take 1-2 hours of development to set up the scaffolding, then 5 minutes extra per deploy (to look up and add the titles).

kathy-phet commented 4 years ago

Given the other priorities and the fact that we want to expedite making these visible, I would recommend just having them all say the same thing - maybe "PhET Simulation" (not just PhET).

samreid commented 4 years ago

Implemented in the above commit.