Skip to content

Implement "What's New" feature with auto-update notification#453

Merged
Power-Maverick merged 5 commits intodevfrom
feat/whats-new
Mar 16, 2026
Merged

Implement "What's New" feature with auto-update notification#453
Power-Maverick merged 5 commits intodevfrom
feat/whats-new

Conversation

@Power-Maverick
Copy link
Copy Markdown
Contributor

Please fill in this template.

  • Use a meaningful title for the pull request.
  • Follow the guidelines from the CONTRIBUTING.md.
  • Mention the bug or the feature number the PR will be targeting.
  • Test the change in your own code. (Compile and run)
  • Resolve all GH Copilot comments.

Copilot AI review requested due to automatic review settings March 14, 2026 02:48
@github-actions
Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 946.1 KB
Renderer JS 470.66 KB
Renderer CSS 86.25 KB
Total 1.47 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a VS Code-style “What’s New” experience in the renderer that loads release notes from a configurable updates origin, can be opened from the app menu, and auto-opens after an auto-update install.

Changes:

  • Introduces a shared markdown rendering utility and updates marketplace README rendering to use it.
  • Adds a new “What’s New” tab/module in the renderer, including external-link wiring and remote markdown fetching.
  • Persists an auto-update “pending What’s New” marker in settings and triggers the tab automatically after restart into the updated version.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vite.config.ts Injects PPTB_UPDATES_ORIGIN as a build-time process.env.* define.
src/renderer/utils/markdown.ts Adds shared “safe” markdown rendering + external link wiring.
src/renderer/modules/whatsNewManagement.ts New module to render and fetch “What’s New” markdown into a detail-style tab.
src/renderer/modules/toolManagement.ts Extends openToolDetailTab to support custom tab label suffixes.
src/renderer/modules/marketplaceManagement.ts Switches README rendering to shared markdown utilities.
src/renderer/modules/initialization.ts Listens for a new toolbox event to open the “What’s New” tab via dynamic import.
src/renderer/index.html Updates CSP to allow connecting to / loading images from www.powerplatformtoolbox.com; minor formatting.
src/main/index.ts Adds menu item, stores pending version on update download, and auto-opens “What’s New” after restart.
src/common/types/settings.ts Adds pendingWhatsNewVersion to user settings type.
.github/workflows/nightly-release.yml Renames nightly prerelease suffix/tagging from beta to dev.
.env.example Documents PPTB_UPDATES_ORIGIN env var.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/renderer/utils/markdown.ts
Comment thread src/main/index.ts
Comment thread src/renderer/index.html Outdated
Comment thread src/renderer/modules/whatsNewManagement.ts
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 14, 2026

@Power-Maverick I've opened a new pull request, #454, to work on those changes. Once the pull request is ready, I'll request review from you.

@Power-Maverick Power-Maverick added the pr-in-review Reviewing the changes. May have requested changes. label Mar 14, 2026
Power-Maverick and others added 2 commits March 15, 2026 22:45
* Initial plan

* fix: make CSP reflect configured PPTB_UPDATES_ORIGIN at build time via Vite transformIndexHtml

Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 16, 2026 02:46
@github-actions
Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 946.1 KB
Renderer JS 470.75 KB
Renderer CSS 86.25 KB
Total 1.47 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

1 similar comment
@github-actions
Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 946.1 KB
Renderer JS 470.75 KB
Renderer CSS 86.25 KB
Total 1.47 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a VS Code–style “What’s New” experience in the renderer, backed by remotely fetched markdown release notes and a configurable updates origin that’s injected into both runtime env (process.env.*) and the renderer CSP at build time.

Changes:

  • Add a shared markdown rendering utility that escapes raw HTML and wires external links.
  • Introduce a new “What’s New” tab/module and trigger it from both the app menu and post-auto-update restart.
  • Make the updates content origin configurable via PPTB_UPDATES_ORIGIN and inject it into the renderer CSP.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
vite.config.ts Defines/injects PPTB_UPDATES_ORIGIN and adds an HTML transform plugin to patch the CSP placeholder at build time.
src/renderer/index.html Adds __PPTB_UPDATES_ORIGIN__ placeholder into CSP img-src and connect-src.
src/renderer/utils/markdown.ts New shared “safe markdown to HTML” renderer + external link wiring.
src/renderer/modules/marketplaceManagement.ts Switches README rendering/link handling to the shared markdown utility.
src/renderer/modules/whatsNewManagement.ts New module to open a “What’s New” tab and fetch/render release notes markdown.
src/renderer/modules/toolManagement.ts Extends openToolDetailTab to allow customizing tab label suffix (used by “What’s New”).
src/renderer/modules/initialization.ts Listens for a new toolbox event to open the “What’s New” tab via dynamic import.
src/main/index.ts Adds Help menu item, records pending version on update download, and auto-opens “What’s New” after restart.
src/common/types/settings.ts Adds pendingWhatsNewVersion to user settings.
.github/workflows/nightly-release.yml Renames nightly prerelease suffix from beta to dev.
.env.example Documents PPTB_UPDATES_ORIGIN.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread vite.config.ts
Comment thread vite.config.ts
Comment thread src/renderer/utils/markdown.ts
Comment thread src/renderer/utils/markdown.ts Outdated
Comment thread src/renderer/utils/markdown.ts
Comment thread src/renderer/modules/whatsNewManagement.ts
Comment thread src/renderer/modules/whatsNewManagement.ts
Comment thread src/renderer/modules/toolManagement.ts
Comment thread src/renderer/modules/marketplaceManagement.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 16, 2026 02:58
@github-actions
Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 946.1 KB
Renderer JS 473.91 KB
Renderer CSS 87.01 KB
Total 1.47 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 16, 2026

@Power-Maverick I've opened a new pull request, #457, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a VS Code-style “What’s New” experience in the renderer, including safe rendering of remote markdown and a configurable updates origin that’s also allowed by the renderer CSP.

Changes:

  • Introduces a shared markdown-to-“safe HTML” utility and reuses it for marketplace README rendering.
  • Adds a new “What’s New” detail tab (manually via menu, and auto-open after an auto-update restart).
  • Adds PPTB_UPDATES_ORIGIN support (env + CSP injection) and updates insider build suffix from -beta to -dev.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
vite.config.ts Injects PPTB_UPDATES_ORIGIN into build-time defines and into the renderer CSP meta tag.
src/renderer/index.html Adds __PPTB_UPDATES_ORIGIN__ placeholder to CSP for connect/img sources.
src/renderer/utils/markdown.ts New shared marked renderer + external link wiring for remote markdown.
src/renderer/modules/marketplaceManagement.ts Switches README rendering to shared safe markdown utilities.
src/renderer/modules/whatsNewManagement.ts New module to fetch/render release notes and open a “What’s New” tab.
src/renderer/modules/toolManagement.ts Extends openToolDetailTab to allow a configurable tab label suffix.
src/renderer/modules/initialization.ts Handles “show what’s new” toolbox event via dynamic import.
src/main/index.ts Adds Help menu entry, sets/consumes pendingWhatsNewVersion to auto-open after update.
src/common/types/settings.ts Adds pendingWhatsNewVersion to user settings typing.
.github/workflows/nightly-release.yml Renames insider version suffix from -beta to -dev.
.env.example Documents PPTB_UPDATES_ORIGIN.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread vite.config.ts
Comment thread src/renderer/modules/whatsNewManagement.ts
Comment thread src/renderer/modules/whatsNewManagement.ts
Comment thread src/renderer/utils/markdown.ts
@github-actions
Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 946.1 KB
Renderer JS 473.77 KB
Renderer CSS 87.01 KB
Total 1.47 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

@Power-Maverick Power-Maverick merged commit 4a78830 into dev Mar 16, 2026
3 checks passed
@Power-Maverick Power-Maverick deleted the feat/whats-new branch March 16, 2026 12:58
@Power-Maverick Power-Maverick removed the pr-in-review Reviewing the changes. May have requested changes. label Mar 16, 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.

3 participants