Skip to content

Commit

Permalink
Improve PWA install experience for Khoj on Desktop, Mobile
Browse files Browse the repository at this point in the history
- Resolve PWA issues thrown by Chrome/Edge
  - Add screenshot samples showcasing remember, browse and draw features
    - This can provide a richer app store like experience when
      installing Khoj PWA on Mobile or Desktop
    - Add wide and narrow screenshots to show Mobile vs Desktop UX
  - Add higher resolution favicon for PWA
- Use single web manifest instead of separate ones for Chat, Search
- Update manifest description with more details about Khoj features
  • Loading branch information
debanjum committed Feb 23, 2024
1 parent e10b260 commit c70ca78
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/interface/desktop/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Khoj - About</title>

<link rel="icon" type="image/png" sizes="128x128" href="./assets/icons/favicon-128x128.png">
<link rel="manifest" href="/static/khoj_chat.webmanifest">
<link rel="manifest" href="/static/khoj.webmanifest">
<link rel="stylesheet" href="./assets/khoj.css">
</head>
<script type="text/javascript" src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/interface/desktop/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Khoj - Chat</title>

<link rel="icon" type="image/png" sizes="128x128" href="./assets/icons/favicon-128x128.png">
<link rel="manifest" href="/static/khoj_chat.webmanifest">
<link rel="manifest" href="/static/khoj.webmanifest">
<link rel="stylesheet" href="./assets/khoj.css">
</head>
<script type="text/javascript" src="./assets/markdown-it.min.js"></script>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/khoj/interface/web/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Khoj - Chat</title>

<link rel="icon" type="image/png" sizes="128x128" href="/static/assets/icons/favicon-128x128.png">
<link rel="manifest" href="/static/khoj_chat.webmanifest">
<link rel="manifest" href="/static/khoj.webmanifest">
<link rel="stylesheet" href="/static/assets/khoj.css">
</head>
<script type="text/javascript" src="/static/assets/utils.js"></script>
Expand Down
45 changes: 40 additions & 5 deletions src/khoj/interface/web/khoj.webmanifest
Original file line number Diff line number Diff line change
@@ -1,16 +1,51 @@
{
"name": "Khoj",
"short_name": "Khoj",
"description": "An AI search assistant for your digital brain",
"display": "standalone",
"start_url": "/",
"description": "The open, personal AI for your digital brain. You can ask Khoj to draft a message, paint your imagination, find information on the internet and even answer questions from your documents.",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"icons": [
{
"src": "/static/assets/icons/favicon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "/static/assets/icons/favicon-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"start_url": "/"
"screenshots": [
{
"src": "/static/assets/samples/phone-remember-plan-sample.png",
"sizes": "419x900",
"type": "image/png",
"form_factor": "narrow",
"label": "Remember and Plan"
},
{
"src": "/static/assets/samples/phone-browse-draw-sample.png",
"sizes": "419x900",
"type": "image/png",
"form_factor": "narrow",
"label": "Browse and Draw"
},
{
"src": "/static/assets/samples/desktop-remember-plan-sample.png",
"sizes": "1260x742",
"type": "image/png",
"form_factor": "wide",
"label": "Remember and Plan"
},
{
"src": "/static/assets/samples/desktop-browse-draw-sample.png",
"sizes": "1260x742",
"type": "image/png",
"form_factor": "wide",
"label": "Browse and Draw"
}
]
}
16 changes: 0 additions & 16 deletions src/khoj/interface/web/khoj_chat.webmanifest

This file was deleted.

0 comments on commit c70ca78

Please sign in to comment.