Skip to content
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

[PowerPages][create-site] Preview and Edit Site Page and Command Registration #1061

Merged
merged 15 commits into from
Nov 27, 2024

Conversation

amitjoshi438
Copy link
Contributor

@amitjoshi438 amitjoshi438 commented Nov 22, 2024

This pull request includes significant changes to the PowerPagesChatParticipant module to enhance the command registration and execution process, introduce a new command for creating sites, and implement a content preview feature. The most important changes are summarized below:

Command Registration and Execution Enhancements:

  • Added registerCommands function to ChatParticipantUtils.ts to facilitate command registration.
  • Updated PowerPagesChatParticipant.ts to utilize the new registerCommands function for command registration. [1] [2] [3]

New Command Implementation:

  • Introduced the CreateSiteCommand class in CreateSiteCommand.ts to handle the creation of new Power Pages sites. [1] [2]
  • Added POWERPAGES_COMMANDS constant in PowerPagesChatParticipantConstants.ts to define available commands.

Content Preview Feature:

  • Implemented EditableFileSystemProvider in EditableFileSystemProvider.ts to manage file content for previewing site pages.
  • Enhanced CreateSiteHelper.ts to include a previewSitePagesContent function that registers site pages for preview. [1] [2]

Constants and Utility Functions:

  • Added constants for file extensions and encoding in constants.ts.
  • Defined additional constants in CreateSiteConstants.ts for site creation parameters. [1] [2] [3]

These changes collectively improve the functionality and extensibility of the PowerPagesChatParticipant module, enabling better command handling and user interaction.

@amitjoshi438 amitjoshi438 requested review from a team as code owners November 22, 2024 11:32
@amitjoshi438 amitjoshi438 changed the title Users/amitjoshi/sitePreviewInChat [PowerPages][create-site] Preview and Edit Site Page and Command Registration Nov 22, 2024
…ions and improve readability; add CreateSiteTypes for better type management
@amitjoshi438 amitjoshi438 merged commit 8fad281 into main Nov 27, 2024
6 checks passed
@amitjoshi438 amitjoshi438 deleted the users/amitjoshi/sitePreviewInChat branch November 27, 2024 13:05
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.

4 participants