Skip to content

Conversation

@cubic-dev-local
Copy link

@cubic-dev-local cubic-dev-local bot commented Sep 15, 2025

Change display mode from 'standalone' to 'minimal-ui'

this shows the refresh and back button for easier navigation ux

What does this PR do?

adds a refresh and a back button for easier navigation ux

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

Video Demo (if applicable):

  • Show screen recordings of the issue or feature.
  • Demonstrate how to reproduce the issue, the behavior before and after the change.

Image Demo (if applicable):

  • Add side-by-side screenshots of the original and updated change.
  • Highlight any significant change(s).

before
image

after
image

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

---

Based on: calcom/cal.com#23838

Summary by cubic

Switch PWA display mode from standalone to minimal-ui to show native Back and Refresh buttons. Improves navigation in the installed app without changing scope or start_url.

this shows the refresh and back button for easier navigation ux
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file

Prompt for AI agents (all 2 issues)

Understand the root cause of the following 2 issues and fix them.


<file name="apps/web/public/site.webmanifest">

<violation number="1" location="apps/web/public/site.webmanifest:19">
This change introduces a redundant back button. The app already provides a custom back button component in its main layout (`ShellMainAppDirBackButton`). Switching the PWA `display` mode to `minimal-ui` will enable the browser&#39;s native back button, resulting in two back buttons being displayed on many pages, creating a confusing user experience.

        DEV MODE: This violation would have been filtered out by GPT-5.
Reasoning:
• **GPT-5**: Speculative and platform-dependent. minimal-ui controls vary by OS/browser and the duplication with the in-app back button is an intentional product choice per this PR. Not a clear, high-confidence technical bug or severity issue.

• **Libraries consulted**: Web App Manifest display minimal-ui MDN, Content</violation>

<violation number="2" location="apps/web/public/site.webmanifest:19">
Changing the PWA display mode to `minimal-ui` breaks the logic in the `AddToHomescreen` component, which will now incorrectly display the &#39;Add to Homescreen&#39; banner within the installed PWA. The component explicitly checks for `display-mode: standalone` to hide itself and does not account for `minimal-ui`.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-dev-ai cubic-dev-ai bot Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change introduces a redundant back button. The app already provides a custom back button component in its main layout (ShellMainAppDirBackButton). Switching the PWA display mode to minimal-ui will enable the browser's native back button, resulting in two back buttons being displayed on many pages, creating a confusing user experience.

    DEV MODE: This violation would have been filtered out by GPT-5.

Reasoning:
GPT-5: Speculative and platform-dependent. minimal-ui controls vary by OS/browser and the duplication with the in-app back button is an intentional product choice per this PR. Not a clear, high-confidence technical bug or severity issue.

Libraries consulted: Web App Manifest display minimal-ui MDN, Content

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>This change introduces a redundant back button. The app already provides a custom back button component in its main layout (`ShellMainAppDirBackButton`). Switching the PWA `display` mode to `minimal-ui` will enable the browser&#39;s native back button, resulting in two back buttons being displayed on many pages, creating a confusing user experience.

        DEV MODE: This violation would have been filtered out by GPT-5.
Reasoning:
• **GPT-5**: Speculative and platform-dependent. minimal-ui controls vary by OS/browser and the duplication with the in-app back button is an intentional product choice per this PR. Not a clear, high-confidence technical bug or severity issue.

• **Libraries consulted**: Web App Manifest display minimal-ui MDN, Content</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 10/10

[internal] Posted by: System Design Agent

Fix with Cubic

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-dev-ai cubic-dev-ai bot Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the PWA display mode to minimal-ui breaks the logic in the AddToHomescreen component, which will now incorrectly display the 'Add to Homescreen' banner within the installed PWA. The component explicitly checks for display-mode: standalone to hide itself and does not account for minimal-ui.

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>Changing the PWA display mode to `minimal-ui` breaks the logic in the `AddToHomescreen` component, which will now incorrectly display the &#39;Add to Homescreen&#39; banner within the installed PWA. The component explicitly checks for `display-mode: standalone` to hide itself and does not account for `minimal-ui`.</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 10/10

[internal] Posted by: System Design Agent

Fix with Cubic

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="apps/web/public/site.webmanifest">

<violation number="1" location="apps/web/public/site.webmanifest:19">
This change introduces a functional regression. The &quot;Add to Homescreen&quot; prompt will now incorrectly appear for users who have already installed the PWA. The component at `apps/web/components/AddToHomescreen.tsx` only checks for `display-mode: standalone` to hide the prompt, but this PR changes the display mode to `minimal-ui`.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-dev-ai cubic-dev-ai bot Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change introduces a functional regression. The "Add to Homescreen" prompt will now incorrectly appear for users who have already installed the PWA. The component at apps/web/components/AddToHomescreen.tsx only checks for display-mode: standalone to hide the prompt, but this PR changes the display mode to minimal-ui.

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>This change introduces a functional regression. The &quot;Add to Homescreen&quot; prompt will now incorrectly appear for users who have already installed the PWA. The component at `apps/web/components/AddToHomescreen.tsx` only checks for `display-mode: standalone` to hide the prompt, but this PR changes the display mode to `minimal-ui`.</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 10/10

[internal] Posted by: System Design Agent

Fix with Cubic

Copy link

@cubic-staging cubic-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="apps/web/public/site.webmanifest">

<violation number="1" location="apps/web/public/site.webmanifest:19">
Changing to &quot;minimal-ui&quot; without a defined fallback reduces cross-browser resilience; consider using manifest &quot;display_override&quot; to prefer minimal-ui while falling back to standalone to preserve app-like UX where needed.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-staging cubic-staging bot Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing to "minimal-ui" without a defined fallback reduces cross-browser resilience; consider using manifest "display_override" to prefer minimal-ui while falling back to standalone to preserve app-like UX where needed.

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>Changing to &quot;minimal-ui&quot; without a defined fallback reduces cross-browser resilience; consider using manifest &quot;display_override&quot; to prefer minimal-ui while falling back to standalone to preserve app-like UX where needed.</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 8/10

[internal] Posted by: General AI Review Agent

Fix with Cubic

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="apps/web/public/site.webmanifest">

<violation number="1" location="apps/web/public/site.webmanifest:19">
Manifest display set to minimal-ui without display_override causes fallback to browser on many UAs, breaking PWA install/standalone behavior.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-dev-ai cubic-dev-ai bot Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manifest display set to minimal-ui without display_override causes fallback to browser on many UAs, breaking PWA install/standalone behavior.

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>Manifest display set to minimal-ui without display_override causes fallback to browser on many UAs, breaking PWA install/standalone behavior.</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 8/10

[internal] Posted by: Functional Bugs Agent

Fix with Cubic

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Oct 3, 2025
Copy link

@cubic-staging cubic-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="apps/web/public/site.webmanifest">

<violation number="1" location="apps/web/public/site.webmanifest:19">
Changing the PWA display mode to `minimal-ui` causes the &#39;Add to Home Screen&#39; banner to be displayed incorrectly. The logic in `AddToHomescreen.tsx` only checks for `standalone` mode and needs to be updated to also check for `minimal-ui` to prevent the banner from showing when the app is already installed.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-staging cubic-staging bot Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the PWA display mode to minimal-ui causes the 'Add to Home Screen' banner to be displayed incorrectly. The logic in AddToHomescreen.tsx only checks for standalone mode and needs to be updated to also check for minimal-ui to prevent the banner from showing when the app is already installed.

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>Changing the PWA display mode to `minimal-ui` causes the &#39;Add to Home Screen&#39; banner to be displayed incorrectly. The logic in `AddToHomescreen.tsx` only checks for `standalone` mode and needs to be updated to also check for `minimal-ui` to prevent the banner from showing when the app is already installed.</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 10/10

[internal] Posted by: System Design Agent

Fix with Cubic

Copy link

@cubic-staging cubic-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="apps/web/public/site.webmanifest">

<violation number="1" location="apps/web/public/site.webmanifest:19">
Changing the manifest `display` value to `minimal-ui` regresses the installed PWA experience—major browsers (e.g., Chrome, Edge) do not support `minimal-ui` and fall back to `browser`, so the app will reopen with the full browser UI instead of the standalone window users currently get.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"display": "minimal-ui",
Copy link

@cubic-staging cubic-staging bot Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the manifest display value to minimal-ui regresses the installed PWA experience—major browsers (e.g., Chrome, Edge) do not support minimal-ui and fall back to browser, so the app will reopen with the full browser UI instead of the standalone window users currently get.

Prompt for AI agents
Address the following comment on apps/web/public/site.webmanifest at line 19:

<comment>Changing the manifest `display` value to `minimal-ui` regresses the installed PWA experience—major browsers (e.g., Chrome, Edge) do not support `minimal-ui` and fall back to `browser`, so the app will reopen with the full browser UI instead of the standalone window users currently get.</comment>

<file context>
@@ -16,7 +16,7 @@
     &quot;theme_color&quot;: &quot;#ffffff&quot;,
     &quot;background_color&quot;: &quot;#ffffff&quot;,
-    &quot;display&quot;: &quot;standalone&quot;,
+    &quot;display&quot;: &quot;minimal-ui&quot;,
     &quot;scope&quot;: &quot;/&quot;,
     &quot;start_url&quot;: &quot;/&quot;  
</file context>

[internal] Confidence score: 9/10

[internal] Posted by: General AI Review Agent

Fix with Cubic

@github-actions github-actions bot removed the Stale label Oct 10, 2025
@cubic-staging
Copy link

cubic-staging bot commented Oct 15, 2025

cubic is running your AI review

[░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% • Preparing files
  ⤷ Preparing the review environment

Pipeline

Step Status
Initialize 🔄 In progress
Prepare files ⏳ Pending
Run agents ⏳ Pending
Consolidate results ⏳ Pending

Copy link

@cubic-staging cubic-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link

@cubic-staging cubic-staging bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@cubic-dev-local
Copy link
Author

cubic-dev-local bot commented Oct 24, 2025

cubic is running your AI review

[██████████████████████████████] 99% • 1/1 files processed
  ⤷ Compiling the review insights

Pipeline

Step Status
Initialize ✅ Complete
Prepare files ✅ Complete
Run agents ✅ Complete • 1/1 files processed
Consolidate results 🔄 In progress

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.

1 participant