Skip to content

feat: progressive web app - #614

Merged
Philipinho merged 3 commits into
docmost:mainfrom
hoiekim:feat/progressive-web-app
Sep 4, 2025
Merged

Philipinho merged 3 commits into
docmost:mainfrom
hoiekim:feat/progressive-web-app

Conversation

@hoiekim

@hoiekim hoiekim commented Jan 8, 2025 •

Copy link
Copy Markdown
Contributor

Feature request: #328

This commit makes Docmost work as a progressive web app. Now users can add websites that host Docmost on their home screen and it provides native-application-like experience on iOS and Android.

Currently I deployed this changes to my self-hosted Docmost app. Try adding this website to home screen on your mobile devices:

https://doc.hoie.kim

Summary by CodeRabbit

  • New Features

    • Added Progressive Web App support with installable experience and standalone display.
    • Introduced a web app manifest with proper launcher icons and metadata.
    • Implemented dynamic theme colors for light and dark modes.
    • Enhanced mobile experience with full-screen capabilities and status bar styling.
  • Chores

    • Updated favicon asset paths to a new icons location.
    • Adjusted viewport settings for consistent scaling behavior.

@CLAassistant

CLAassistant commented Jan 8, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@robvanvolt

robvanvolt commented Jan 17, 2025 •

Copy link
Copy Markdown

Looks good - you could still adjust the "Backgorund" color to the background of the app, so you wouldn't have a sharp edge on the edge to the status bar. :)
It might be the theme color ("https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Customize_your_app_colors") - but I'm not quite sure.

@aayushchugh

Copy link
Copy Markdown

@Philipinho Can you please review this?

@2TAP2B

2TAP2B commented Mar 21, 2025

Copy link
Copy Markdown

Any updates here?

@DenysMb

DenysMb commented Mar 27, 2025 •

Copy link
Copy Markdown

Feel free to send a PR. I will review.

Originally posted by @Philipinho in #328

There is a PR now, and it looks very simple.
Could you review it or give any feedback, please?

I quickly tested here and it looks fine.

Screenshot_20250327-191826.png

@Philipinho

Copy link
Copy Markdown
Member

My issue with the PWA PRs so far is the many splash screen files.
If we can reduce that to the barest minimum, I am happy to revenue this PR again.

@DenysMb

DenysMb commented Mar 29, 2025

Copy link
Copy Markdown

@hoiekim What happens if no splash screen image are provided?

I don't have iPhone, but I would imagine that they would use a generic splash screen with the app logo if none were provided, is that right?

If so, is the splash screen really necessary?

@hoiekim
hoiekim force-pushed the feat/progressive-web-app branch from c50bbf1 to c539654 Compare March 30, 2025 02:39
@hoiekim

hoiekim commented Mar 30, 2025 •

Copy link
Copy Markdown
Contributor Author

@DenysMb That's right - except there's no such thing as generic splash screen with the app logo. It'll be just blank black or white screen depending on the loading stage. I use dark mode so on my phone the app starts with black screen, then as the renderer(browser) starts it turns white until HTML elements get rendered.

Splash screen is necessary only for esthetic reasons. There's no right way to go about it but it's my understanding that having a properly color-themed splash screen gives users the impression that the app is mature, complete or well-designed. I know it sounds ambiguous and arbitrary so use your own judgment.

Although in this specific PR's situation I'd rather not insist my ego. I see that some people are uncomfortable with adding so much binary files and HTML head data. I removed all splash screen and reverted the commits with those image files.

@Thoroslives

Copy link
Copy Markdown

Any reason the merge hasnt occured?

@Vito0912

Copy link
Copy Markdown
Contributor

@Philipinho Can you please review this PR? It would be helpful not only on mobile but also on desktop, making it easier to use as an "dedicated app" or at least can we get an update on whether this will be merged at all?

Especially since many people seem to want this and it is not a big change to the code. The splash images appear to have been removed completely, which was one of the reasons you mentioned for not merging.


Btw, in the meantime, it looks like hoiekim has a workflow for pushing his fork to Docker (https://github.com/hoiekim/docmost/actions/workflows/docker-image.yml), which should point to https://hub.docker.com/r/hoie/docmost. This version probably has the PWA features (looking at the workflow), but it has not been updated for about ~1.5 months.

I also made a fork that includes this PWA (though not exactly this PR), which I plan to maintain for now as I use Docmost daily, but there are just some features missing that are stuck in PRs or as Won't fix. My fork does not have any enterprise code and includes other PRs that are not in Docmost (or issues closed as "won't fix") and that I added for my own use: https://github.com/Vito0912/forkmost. So, it is not fully backward compatible when using e.g. new blocks

@Philipinho

Copy link
Copy Markdown
Member

Soon.

@reitbauer

Copy link
Copy Markdown

Hi,
are there any updates or a rough timeline for the PWA feature?
I’d really love to use Docmost, but without PWA support it’s unfortunately not very practical for my use case.
Thanks a lot for your great work on this project!

@joshuaheislerde

joshuaheislerde commented Aug 16, 2025 •

Copy link
Copy Markdown

@Philipinho please give us some feedback, this is obviously highly anticipated by multiple of your users.

The development has basically been done and consist of only some lines of code and a simple manifest file. Why won't you just merge this PR? This will - even with a review - probably only take you about half an hour...

@dougmorin

Copy link
Copy Markdown

Looking for an update on this PR. This update would be greatly appreciated. Thank you, @Philipinho!

@coderabbitai

coderabbitai Bot commented Sep 4, 2025 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

Introduces Progressive Web App support by updating favicon paths, adding viewport and PWA-related meta tags in index.html, and adding a web app manifest with icons and display settings. Title and main content remain unchanged.

Changes

Cohort / File(s) Summary of edits
PWA metadata updates
apps/client/index.html
Updated favicon links to /icons/.... Adjusted viewport to include user-scalable=no. Added PWA meta tags: theme-color (light/dark), manifest link, mobile/Apple web app capability settings, status bar style, and app title.
Web App Manifest
apps/client/public/manifest.json
Added manifest defining name/short_name, start_url /, display standalone, background/theme colors #222, and icons (16x16, 32x32, 192x192, 512x512).

Sequence Diagram(s)

sequenceDiagram
  participant U as User
  participant B as Browser
  participant HTML as index.html
  participant M as manifest.json
  participant I as Icons

  U->>B: Navigate to app
  B->>HTML: Request index.html
  HTML-->>B: Response with meta tags and <link rel="manifest">
  B->>M: Fetch /manifest.json
  M-->>B: Manifest (name, display, colors, icons)
  B->>I: Fetch referenced icons
  I-->>B: Icon assets
  Note over B,M: PWA installability determined from manifest and icons
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I nibbled through the tags tonight, so light, so clean, so spry,
A manifest in moonlit bytes, with icons standing by.
Standalone dreams, a theme so new, in hues of midnight hue—
Tap my ear, install me near,
PWA hops... right to you! 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 9bbd62e and 54994e4.

⛔ Files ignored due to path filters (6)
  • apps/client/public/favicon-16x16.png is excluded by !**/*.png
  • apps/client/public/favicon-32x32.png is excluded by !**/*.png
  • apps/client/public/icons/app-icon-192x192.png is excluded by !**/*.png
  • apps/client/public/icons/app-icon-512x512.png is excluded by !**/*.png
  • apps/client/public/icons/favicon-16x16.png is excluded by !**/*.png
  • apps/client/public/icons/favicon-32x32.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • apps/client/index.html (1 hunks)
  • apps/client/public/manifest.json (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Philipinho
Philipinho merged commit db55de9 into docmost:main Sep 4, 2025
@Philipinho

Copy link
Copy Markdown
Member

Thank you for your work on this @hoiekim.
It will be available in the next version release.

github-actions Bot added a commit to antiagingrecord/docmost that referenced this pull request Oct 9, 2025
4231ba9 Merge commit '042836cb6d7cc1f71af3ce44c7957f8abbbf8f25' into feat/aar_edition
042836c sync
4f1f0ba fix
3164b69 feat: api keys management (EE) (docmost#1665)
16c1e86 fix comment space
c9b1cad sync
bf8cf62 feat: Typesense search driver (EE) (docmost#1664)
5a2e16a Merge commit '31350303760163384113bf49d07127e886f94907' into feat/aar_edition
3bc710d Adds CLAUDE.md documentation
16914f1 Block search for non-indexed shares
ca75e29 Set default page mode to Read
3135030 fix editor converter (docmost#1647)
3fae41a fix: editor performance improvements (docmost#1648)
b50e256 sync
1f3b0c7 cloud fix
3c4cab0 v0.23.2
4de25a8 invalidate queries on space deletion
cf5bbb1 fix import html processing
ac17521 sync
9ac180f fix: enhance page import (docmost#1570)
46669fe (cloud) disable page sharing in trial mode
fe6ecdf fix: update combobox props in SpaceSelect component (docmost#1564)
04ae1d7 Allow lastColumnResizable in table
1280f96 feat: implement space and workspace icons (docmost#1558)
61d1cf8 fix: reset file inputs after import
f413720 - sync - reinstantiate S3 client to fix file upload errors during import - delete import zip file after use
8e16ad9 v0.23.1
7ada3cb fix: page import task (docmost#1551)
47c5417 sync
dc06502 sync
091e790 fix attachment search in cloud
ae24ea2 v0.23.0
9df6061 lock file
31053e2 update mermaid
eb8e850 use debug
c99bfb8 make print better
26ea04e sync
6cc58c5 sync
7d2ff34 UI fixes
b08d37f fix
d43ee77 remove debug log
5d91eb4 feat: queue imported attachments for indexing
3e9f6b1 Remove version from docker-compose.yml [deprecated] (docmost#1011)
db55de9 feat: progressive web app (docmost#614)
1919eba New Crowdin updates (docmost#1522)
7951b2e New Crowdin updates (docmost#1509)
73b78f6 more translations
cf7534d fix version display
adec36d fix: adjust margins - use default browser highlight background
f9e1080 sync
00e499b Fixing extra page bug on print (docmost#1478)
5ee6e46 checkbox aligned to text (docmost#1486)
1f797c3 fix: confluence drawio import (docmost#1518)
f12866c feat(EE): full-text search in attachments (docmost#1502)
dcbb65d feat(EE): LDAP integration (docmost#1515)
5968764 feat: emoji callout icon (docmost#1323)
242fb6b fix: set mermaid theme based on computed color scheme (docmost#1438)
74cd890 feat(EE): implement SSO group sync for SAML and OIDC (docmost#1452)
509622a ignore type error
937386e fix: hide table handles in readonly mode
60a373f fix: readonly editor table responsiveness
73ee6ee feat: subpages (child pages) list node (docmost#1462)
7d1e5bc feat: table row/column drag and drop (docmost#1467)
aa58e27 fix: exclude deleted pages (docmost#1494)
08135a2 sync
d92a942 sync
5012a68 sync
5a33777 feat: debug mode env variable (docmost#1450)
3b85f4b fix: enforce C collation for page position ordering to ensure consistent behavior in Postgres 17+ (docmost#1446)
cb2a039 fix: invalidate trashed page from tree state
95b7be6 fix: hide trash from can view permission (docmost#1445)
b0c5572 fix nested taskList in markdown export (docmost#1443)
dddfd48 feat: add attachments support for single page exports (docmost#1440)
aa6eec7 fix: exclude trashed pages from position generation
97a7701 fix local storage copy function (docmost#1442)
b97eb85 sync

git-subtree-dir: vendor/app
git-subtree-split: 4231ba9
nulluserid pushed a commit to N2con-Inc/docmost that referenced this pull request Dec 17, 2025
* feat: progressive web app

* replace icons

---------

Co-authored-by: Philipinho <[email protected]>
@hoiekim
hoiekim deleted the feat/progressive-web-app branch February 14, 2026 11:54
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jul 14, 2026
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.