Skip to content

Extends spo SPFx commands commands with support for adding description option. Closes #6706#6767

Merged
milanholemans merged 5 commits intopnp:mainfrom
SmitaNachan:issue-6706
Nov 11, 2025
Merged

Extends spo SPFx commands commands with support for adding description option. Closes #6706#6767
milanholemans merged 5 commits intopnp:mainfrom
SmitaNachan:issue-6706

Conversation

@SmitaNachan
Copy link
Copy Markdown
Contributor

Extends spo SPFx commands commands with support for adding description option. Closes #6706

  • spo applicationcustomizer add
  • spo applicationcustomizer set
  • spo commandset add
  • spo commandset set

@milanholemans
Copy link
Copy Markdown
Contributor

Thanks @SmitaNachan! We'll have a look at it ASAP!

@milanholemans milanholemans self-assigned this Jul 21, 2025
@milanholemans milanholemans requested a review from Copilot July 21, 2025 21:31

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

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

Thanks for extending our code with this feature. Could you have a look at the comments I made, please? I believe we have to fix a few things before we can continue.

Comment thread docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.ts Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.spec.ts Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-add.spec.ts
Comment thread src/m365/spo/commands/commandset/commandset-set.ts
Comment thread src/m365/spo/commands/commandset/commandset-set.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-set.ts
Comment thread src/m365/spo/commands/commandset/commandset-set.spec.ts
@milanholemans milanholemans marked this pull request as draft July 21, 2025 22:45
@milanholemans
Copy link
Copy Markdown
Contributor

Hi @SmitaNachan, just checking if you found some time to check the feedback on this PR.

@SmitaNachan SmitaNachan marked this pull request as ready for review August 12, 2025 10:23
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

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

Hi @SmitaNachan, I found a few more things we should adjust. Could you take a look at it, please?

Comment thread docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx Outdated
Comment thread docs/docs/cmd/spo/commandset/commandset-add.mdx Outdated
Comment thread docs/docs/cmd/spo/commandset/commandset-set.mdx Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-add.spec.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-add.spec.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-add.spec.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-add.spec.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-set.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-set.spec.ts Outdated
@milanholemans milanholemans marked this pull request as draft August 19, 2025 23:05
@milanholemans milanholemans requested a review from Copilot August 19, 2025 23:05
Copy link
Copy Markdown

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 PR extends the SharePoint SPFx command set and application customizer commands with support for adding a description option, addressing issue #6706.

  • Adds optional description parameter to four SPFx commands (commandset add/set and applicationcustomizer add/set)
  • Updates command validation logic to include the new description option
  • Adds comprehensive test coverage for the new description functionality

Reviewed Changes

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

Show a summary per file
File Description
commandset-set.ts Adds description option and includes it in request body and validation logic
commandset-set.spec.ts Updates tests to include description parameter and validates request body structure
commandset-add.ts Adds description option to telemetry and request body
commandset-add.spec.ts Adds test coverage for description parameter in request body
applicationcustomizer-set.ts Adds description option and includes it in request body and validation logic
applicationcustomizer-set.spec.ts Updates tests to validate description parameter in request body
applicationcustomizer-add.ts Adds description option to telemetry and request body
applicationcustomizer-add.spec.ts Updates test data and validates description parameter in request body
Documentation files Updates command documentation to include the new description option

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/m365/spo/commands/commandset/commandset-set.ts Outdated
@milanholemans
Copy link
Copy Markdown
Contributor

Hi @SmitaNachan, have you found some time yet to process the feedback on this PR?

@SmitaNachan
Copy link
Copy Markdown
Contributor Author

Hi @milanholemans
I will work on it, thank you

@SmitaNachan SmitaNachan marked this pull request as ready for review October 13, 2025 17:02
@milanholemans milanholemans requested a review from Copilot October 17, 2025 15:54
Copy link
Copy Markdown

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

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Comment thread docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx Outdated
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

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

Hi @SmitaNachan, nearly there, let's make sure that it's possible to pass an empty string to clear the description.
If you have any questions, feel free to reach out to me.

Comment thread docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.spec.ts Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.ts Outdated
Comment thread src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.spec.ts Outdated
Comment thread src/m365/spo/commands/commandset/commandset-set.ts
Comment thread src/m365/spo/commands/commandset/commandset-add.ts Outdated
@milanholemans milanholemans marked this pull request as draft October 17, 2025 15:56
@SmitaNachan SmitaNachan marked this pull request as ready for review October 19, 2025 09:58
Copilot AI review requested due to automatic review settings October 19, 2025 09:58
Copy link
Copy Markdown

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

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

Comment thread src/m365/spo/commands/commandset/commandset-set.ts
Copy link
Copy Markdown
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

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

Looks good to go with a few adjustments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's add an additional test to validate if an empty description can be passed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's add a test for an empty description.

Copy link
Copy Markdown

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

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

Comment thread docs/docs/cmd/spo/commandset/commandset-set.mdx Outdated
Comment thread docs/docs/cmd/spo/commandset/commandset-add.mdx
Comment thread docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx Outdated
@milanholemans milanholemans merged commit f123f47 into pnp:main Nov 11, 2025
8 checks passed
@SmitaNachan SmitaNachan deleted the issue-6706 branch March 26, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new description option to spo SPFx commands

3 participants