Skip to content

Enhances 'spo list view add' with extra types #6746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

milanholemans
Copy link
Contributor

Closes #6735


As an extra, I've refactored the command to Zod as well.

@milanholemans milanholemans requested a review from Copilot June 2, 2025 18:44
Copy link

@Copilot 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 enhances the "spo list view add" command by introducing support for additional view types (calendar, gallery, and kanban) and refactoring input validation to use Zod.

  • Refactored the command to use Zod-based validation instead of the previous GlobalOptions‐based approach.
  • Added new options and corresponding validation for calendar and kanban view types.
  • Updated tests and documentation to reflect the newly supported view types.

Reviewed Changes

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

File Description
src/m365/spo/commands/list/list-view-add.ts Updated command implementation with Zod schema; added view type–specific options and validations.
src/m365/spo/commands/list/list-view-add.spec.ts Extended test coverage to validate new options and error scenarios for various view types.
docs/docs/cmd/spo/list/list-view-add.mdx Revised documentation with new options and examples for calendar, gallery, and kanban views.

Copy link
Member

@Adam-it Adam-it left a comment

Choose a reason for hiding this comment

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

Awesome work 👏
Nothing to add from my side. Tested it locally

@Adam-it
Copy link
Member

Adam-it commented Jul 19, 2025

Ready to merge 🚀

@Adam-it
Copy link
Member

Adam-it commented Jul 19, 2025

Merged manually.
Thank you for your contribution. You Rock 🤩

@Adam-it Adam-it closed this Jul 19, 2025
@milanholemans milanholemans deleted the spo-view-add branch July 19, 2025 22:52
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.

"m365 spo list view add" -> add support for viewtype = calendar/gallery/board
2 participants