Skip to content

Conversation

imamcr
Copy link
Contributor

@imamcr imamcr commented Mar 8, 2025

Added PWA support.

image
image

@jzohrab
Copy link
Collaborator

jzohrab commented Mar 9, 2025

Hi @imamcr - I don't feel that this is sufficient, but I honestly don't know. :-) To me, "install app" implies that it can be installed with the full db, back end running, etc, and this will be misleading to users. Thoughts?

@jzohrab jzohrab added this to Lute-v3 Mar 9, 2025
@jzohrab jzohrab moved this to In Progress in Lute-v3 Mar 9, 2025
@jzohrab jzohrab added the question Further information is requested label Mar 9, 2025
@imamcr
Copy link
Contributor Author

imamcr commented Mar 9, 2025

Hi @imamcr - I don't feel that this is sufficient, but I honestly don't know. :-) To me, "install app" implies that it can be installed with the full db, back end running, etc, and this will be misleading to users. Thoughts?

I see your point! However, "install app" in the PWA context simply means adding it to the home screen and running it in its own window, making it feel more like a native app. It doesn't imply installing the backend or database. This is a common way PWAs work, and many users expect this behavior.

Many modern web apps allow users to "install" them as PWAs, giving them a more native-like experience.

image

Lute is in my app launcher Rofi:

image

Users can launch the site from their app launcher, and have an app-like experience without needing a browser tab.

image

@jzohrab
Copy link
Collaborator

jzohrab commented Mar 10, 2025

Nice. @imamcr , how does the PWA work with things like tabs and popups? (Sometimes Lute opens things up in separate tabs, and some dictionaries have to be opened as a popup.) -- sorry am pressed for time hence the basic questions :-P

Also, how do I get at the "install app" link, if I install Lute using pip?

@imamcr
Copy link
Contributor Author

imamcr commented Mar 13, 2025

  1. If you are using an external dictionary, a new window will open. Like a popup. If the "Open popup in new tab" behavior is selected, the dictionary will open as a new tab in the browser.
  2. After navigating to localhost:5001, the "Install Lute" icon will appear in the address bar. Click on it, install the app, close the page and launch Lute from an app launcher.

@imamcr
Copy link
Contributor Author

imamcr commented Mar 27, 2025

@jzohrab forgot to tag you.

@jzohrab
Copy link
Collaborator

jzohrab commented Mar 28, 2025

Thanks @imamcr for the ping. My only remaining concern for this is that it may cause extra questions for users who see the "install app" thing and think that it runs self-contained, and doesn't need the back end. I wonder if we need some docs for the manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants