Skip to content

Conversation

@Saurabh7019
Copy link
Contributor

Closes #6825

@Saurabh7019 Saurabh7019 marked this pull request as ready for review December 29, 2025 20:06
Copilot AI review requested due to automatic review settings December 29, 2025 20:06
Copy link

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

This pull request adds the hostProperties option to all four application customizer commands (add and set variants for both site-level and tenant-level), enabling users to configure host properties for Application Customizers. This addresses issue #6825.

Key Changes

  • Added hostProperties optional parameter to all four application customizer commands
  • Implemented JSON validation for hostProperties in applicationcustomizer-add.ts
  • Added test coverage for the new option across all commands
  • Updated documentation to reflect the new parameter and its JSON handling requirements

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/m365/spo/commands/tenant/tenant-applicationcustomizer-add.ts Adds hostProperties option, telemetry tracking, and sets field value when adding tenant-wide customizers
src/m365/spo/commands/tenant/tenant-applicationcustomizer-add.spec.ts Adds test case verifying hostProperties can be set when adding a tenant-wide customizer
src/m365/spo/commands/tenant/tenant-applicationcustomizer-set.ts Adds hostProperties option, telemetry tracking, validation check, and update logic for tenant-wide customizers
src/m365/spo/commands/tenant/tenant-applicationcustomizer-set.spec.ts Adds test case verifying hostProperties can be updated for existing tenant-wide customizers
src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.ts Adds hostProperties option with JSON validation, telemetry tracking, and sets field value when adding site-level customizers
src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.spec.ts Adds test cases for both successful hostProperties usage and validation of invalid JSON input
src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.ts Adds hostProperties option, telemetry tracking, validation check, and update logic for site-level customizers
src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.spec.ts Adds test case verifying hostProperties can be updated for existing site-level customizers
docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx Documents the new hostProperties option and updates JSON escaping guidance to include it
docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx Documents the new hostProperties option with clear/empty string capability and updates remarks for JSON handling
docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx Documents the new hostProperties option and updates JSON escaping guidance to include it
docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx Documents the new hostProperties option with clear/empty string capability and updates remarks for JSON handling

@milanholemans
Copy link
Contributor

milanholemans commented Dec 29, 2025

Thanks @Saurabh7019! We'll try to review it soon.

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 hostProperties option to applicationcustomizer commands

2 participants