nanawel / our-shopping-list

OSL is a simple shared list web-application based on Node and VueJS. Typical uses include shopping lists of course, and any other small todo-list that needs to be used collaboratively.
GNU Affero General Public License v3.0
82 stars 8 forks source link

Allow changing page title #4

Closed ChuckChance closed 1 year ago

ChuckChance commented 1 year ago

It would be nice to have a docker environment variable to be able to change the page's title from "Our Shopping List".

It's interesting on desktop to be able to change the tab's title to find it faster but on mobile it's also used by Firefox (and doesn't seem to be editable on Android) to set the app name when installing it from the browser (and the default name is long enough to always be truncated on the home screen)

nanawel commented 1 year ago

:+1: Noted, I'll see how I can do that. Thanks

nanawel commented 1 year ago

Should be fixed in https://github.com/nanawel/our-shopping-list/releases/tag/2.4.0

Just declare VUE_APP_TITLE in the environment section of your docker-compose.yml.

Feel free to comment if you have any issue and I'll reopen this thread.

ChuckChance commented 1 year ago

Hey, sorry I'm a bit late to test your update !

The env var works fine to change the web page's title but the PWA still has the "Our Shopping List" default as app title (in name/short name values, unsure which one is used by android to choose the shortcut's name) in manifest.json, I think it would make sense for both to be the same.

nanawel commented 1 year ago

Ah yes, but for this it's a bit trickier as the value is hardcoded inside a JSON file (that's how PWA works). I guess I could add a custom entrypoint in the Docker image to replace the value on startup. I'll take a look.

nanawel commented 1 year ago

That should now be fixed in 2.5.0.

https://github.com/nanawel/our-shopping-list/releases/tag/2.5.0