Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 13, 2025

Summary

Adds WebView as a selectable feature option in the Uno Platform template wizard and templates, following the same pattern as the existing Media Element feature.

Changes

This PR introduces the WebView feature that allows developers to easily configure their applications to bundle the native assets required for WebView support during project creation.

Files Modified

  1. Icon Asset: Created Features.WebView.svg - A globe/web browser icon in the signature Uno blue color (#0095F2) that visually represents web browsing functionality

  2. Template Configuration (template.json):

    • Added webView symbol as a boolean parameter
    • Display name: "WebView"
    • Description: "Configures application to bundle native assets required for the WebView"
    • Default value: false
  3. Wizard Configuration (TemplateWizard.json):

    • Added webView icon reference in the MetaData section
    • Included webView in the Features section's SymbolIds array (alongside mediaElement, toolkit, etc.)
    • Added webView to the ExportableSymbols list
    • Set default value to "false" in both "blank" and "recommended" presets
  4. Project Template (MyExtensionsApp.1.csproj):

    • Added conditional compilation directive: <!--#if (webView)-->WebView;<!--#endif-->
    • Positioned after mediaElement for consistency with other feature flags

Visual Preview

The WebView feature will appear in step 7 (Features) of the template wizard:

WebView Icon Preview

Testing

The changes follow the exact same pattern as the existing mediaElement feature, ensuring consistency across the template system. The feature will be available for selection in the wizard's Features step alongside other optional features like Toolkit, Media Element, and VS Code debugging.

Closes #1802

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: dotnet pack -c Release (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add WebView feature in Wizard/Templates</issue_title>
<issue_description>Add WebView feature as an option in Wizard and templates</issue_description>

<agent_instructions>Add WebView as a feature, similar to how Media Element is presented. Create an initial icon that represents a web browser</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@MartinZikmund @agneszitte @NVLudwig I think the `WebView` feature would be added here:

Image

We will need an icon for it, otherwise it will be mainly a question of a few configuration changes</comment_new>
<comment_new>@MartinZikmund
Made a draft PR, linked.

@kazo0 assigned to you as I will be away for 2 weeks, feel free to reassign to someone else to finalize and validate 🙏</comment_new>
<comment_new>@Takoooooo
Ping me once we'll have a needed asset to finish the work. I can finalize and validate :)</comment_new>
<comment_new>@kazo0
Assigning this to @NVLudwig for now and placing back to To Do as we will first need designs for a logo and the description text and the final approval for those designs

fyi @Jen-Uno </comment_new>

Fixes #1586


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Add WebView feature to Wizard and templates Add WebView feature to Wizard and Templates Oct 13, 2025
Copilot AI requested a review from nickrandolph October 13, 2025 01:48
@nickrandolph
Copy link
Contributor

nickrandolph commented Oct 13, 2025

@NVLudwig
Copy link

Whats is the target supposed to mean, is it an AI artifact or should it be kept?

@kazo0 kazo0 marked this pull request as ready for review October 21, 2025 13:27
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.

Add WebView feature in Wizard/Templates

4 participants