Fix missing View button and type error in Environment Request apps #10510
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The CoE Admin Environment Request App toolbar did not display the View button for pending requests, and both app versions threw type inference errors in edit mode.
Changes
Teams Version (
CenterofExcellenceCoreComponentsTeams)Visible: =!IsBlank(gal_ecrs.Selected)var_selectedIteminitialization causing type errorNon-Teams Version (
CenterofExcellenceCoreComponents)var_selectedIteminitialization causing type errorItemEnabled: !IsBlank(dlEnvRequests.Selected)Root Causes
Missing visibility logic: The View button container rendered unconditionally, preventing proper display when no request was selected.
Dead code:
OnChange: =Set(var_selectedItem, Blank())attempted to set a variable without type initialization. Variable was never referenced elsewhere.Users can now select a pending request, see the View button appear, and navigate to approve/reject.
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:
us-mobile.events.data.microsoft.com/home/REDACTED/.dotnet/tools/pac pac canvas unpack --msapp admin_environmentrequestadminpage_7401b_DocumentUri.msapp --sources admin_environmentrequestadminpage_7401b_DocumentUri_msapp_src(dns block)/home/REDACTED/.dotnet/tools/pac pac canvas pack --msapp admin_environmentrequestadminpage_7401b_DocumentUri.msapp --sources admin_environmentrequestadminpage_7401b_DocumentUri_msapp_src(dns block)westus2-2.in.applicationinsights.azure.com/usr/bin/dotnet dotnet pacTelemetryUpload.dll /home/REDACTED/.local/share/Microsoft/PowerAppsCli/telemetry-cache/pac(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.