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

Add possibility to add custom additional step #404

Closed
wants to merge 22 commits into from

Conversation

ervingayle
Copy link
Contributor

🎯 Aim

This PR implements functionality that allows for custom npm packages to be installed as part of the scaffolding project setup.

📷 Result

include images or a movie with a result of your change [Remove this line]
vscode-viva-customstepsetting-1
vscode-viva-customstepsetting-2
vscode-viva-customstepsetting

✅ What was done

  • Added new extension setting for custom steps
  • Added custom toggle to activate the
  • Added logic to iterate over extension setting value json array and object(s)
  • Added notice on how to access the setting

🔗 Related issue

Closes: #217

nicodecleyre and others added 20 commits January 1, 2025 23:46
…in red markdown (pnp#382)

## 🎯 Aim

Adding the errormessage as output in the chat response

## 📷 Result

![image](https://github.com/user-attachments/assets/53840707-ad7e-4128-984f-76a425af9b98)

## ✅ What was done

- [X] Added error response in red markdown to `PromptHandlers`

## 🔗 Related issue

Closes: pnp#376
…kit, Closes pnp#348 (pnp#383)

## 🎯 Aim

Adds 'Set Form Customizer' command to the SharePoint Framework Toolkit,
to set the view, edit or new form with a form customizer

## 📷 Result

https://github.com/user-attachments/assets/1ac118ed-ad4b-44bb-946f-94c228aa0d81

## ✅ What was done

- [X] Add action to set the view, edit & new form with a form customizer

## 🔗 Related issue

Closes pnp#348
…user guidance, Closes pnp#286 (pnp#384)

## 🎯 Aim

Includes check output window for CLI Actions

## 📷 Result

![image](https://github.com/user-attachments/assets/fa9b81a4-fc55-4436-86ee-3fdd559ba510)

## ✅ What was done

- [X] Added check output window for CLI Actions

## 🔗 Related issue

Closes pnp#286
## 🎯 Aim

Allows to install/uninstall an app on a specified site collection using
a action in the app catalog app list view

## 📷 Result


![image](https://github.com/user-attachments/assets/3972c256-e4b4-4f1b-9bb9-8d4831fa6fbe)

## ✅ What was done

- [X] Install/Uninstall actions added to both tenant and site collection
app catalog apps
- [X] Prompts for relative site URL when actions triggerred in tenant
app catalog apps.
- [X] Requires confirmation before uninstalling app.

## 🔗 Related issue

Closes: pnp#350
…elcome view. Closes pnp#334 (pnp#392)

## 🎯 Aim

The aim is to update vscode types and approach with latest. Recheck and
cleanup what changed. When upgraded vscode we may use latest
improvements of how to handle model picking and loading history in chat
command. I checked that and unfrotonatly other models than gpt-4o bring
totally different responses which are not possible to pars with current
logic. Also loading history seems to be lacking some parts we get with
current implementation, so those parts are not changed.
Lastly I added action to activate SPFx Copilot from welcome view

## 📷 Result

![image](https://github.com/user-attachments/assets/8f676a95-62a2-4475-a946-b38ce2e2c811)

## ✅ What was done

- [X] updated vscode engine and typing to latest
- [X] refactor auth provider
- [X] rechecked current chat logic implementation
- [X] added copilot action to welcome view

## 🔗 Related Issue

Closes: pnp#334
## 🎯 Aim

The aim is to fix wrong warning message regarding Node version

## 📷 Result


![image](https://github.com/user-attachments/assets/38586150-35c3-4289-af03-d29a7bfe07b8)

## ✅ What was done

- [X] Fixup in warning message

## 🔗 Related issue

Closes: pnp#395
@Adam-it Adam-it self-assigned this Jan 30, 2025
@Adam-it
Copy link
Member

Adam-it commented Jan 30, 2025

I love the ID of this PR 😄 404
I would love to review it but I just simply cannot find it 😂😁

@ervingayle
Copy link
Contributor Author

It would be my PR that gets this 404 ID.

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.

@ervingayle Awesome work so far 👏👏👏
I had to stop my review as I noticed that you pushed commits to this branch that are part of a different issue you are assigned to. I think the problem is you were working on your dev branch instead of separate branch based on dev that was created only for this feature.
We should clean this up before we proceed. Best approach would be to create new branches and cherry-pick to them only the commits that are required for issue #217 and close this PR without merging and reopen an another PR from a different branch then this one.
I added more context in the issue #325 which might be helpful how to get around that

"spfx-toolkit.projectCustomSteps": {
"title": "Additional Custom Steps",
"type": "string",
"default": "[\n {\n \"label\": \"PnP JS SharePoint\",\n \"command\": \"npm install @pnp/sp\"\n },\n {\n \"label\": \"PnP React Reusable Controls\",\n \"command\": \"npm install ....\"\n }\n]",
Copy link
Member

Choose a reason for hiding this comment

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

I would say by default it should be empty and we should not prefill this setting with any custom additional step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought that a sample should be provided by default even if it is the sample that was posted in the initial issue. However, I will follow your suggestion

Copy link
Member

Choose a reason for hiding this comment

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

maybe we could add some link to wiki with more guidance in the label. This is the settings value which I guess will fail if we have .... in it. I guess it wont be valid right

Comment on lines +95 to +96
// eslint-disable-next-line no-console
console.log(jsonArray.length);
Copy link
Member

Choose a reason for hiding this comment

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

we should avoid console logs in code at all time. If we want to add additional logging we should use logger for that

} else {
tenantWideExtensionsList.push(new ActionTreeItem('No extension found', ''));
}
const tenantWideExtensionsNode = new ActionTreeItem('Tenant-wide Extensions', '', { name: 'spo-app-list', custom: true }, TreeItemCollapsibleState.Collapsed, undefined, undefined, 'sp-app-catalog-tenant-wide-extensions', undefined,
Copy link
Member

Choose a reason for hiding this comment

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

wooops! Seems like those changes should not be part of this PR as they are not needed for this issue.
We should clean this up before we proceed.

@Adam-it Adam-it marked this pull request as draft February 4, 2025 00:12
ervingayle and others added 2 commits February 3, 2025 22:45
Co-authored-by: Adam Wójcik <[email protected]>
Co-authored-by: Adam Wójcik <[email protected]>
@Adam-it
Copy link
Member

Adam-it commented Feb 4, 2025

@ervingayle I will close this PR and let's open it up again once we managed to sort out the git history problems

@Adam-it Adam-it closed this Feb 4, 2025
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