Skip to content

Manage-schema-extensions-list-based-storage#5785

Open
joaojmendes wants to merge 2 commits intopnp:mainfrom
joaojmendes:manage-schema-extensions-list-based-storage
Open

Manage-schema-extensions-list-based-storage#5785
joaojmendes wants to merge 2 commits intopnp:mainfrom
joaojmendes:manage-schema-extensions-list-based-storage

Conversation

@joaojmendes
Copy link
Copy Markdown
Contributor

  • New sample
  • [ X] Bug fix/update
  • Related issues: fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?

Change the way the Application save the schemaIdscreated, now use a hidden list create on appcatalog. The list is created if not exists on first try to save a schemaId

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 5, 2026

Sample PR validation for #5785

⚠️ Validation status: warnings

We automatically validate all pull requests against our contribution guidance to ensure that all samples provide a consistent experience to our community.

In order to merge this PR in a timely manner, the following criteria must be met:

Validation Status
Pull request affects only one folder ⚠️ Warning
Sample folder name follows naming convention ✅ Succeeded
Sample requires a .nvmrc file ⚠️ Warning
Sample requires a README.md ⚠️ Warning
Sample requires a screenshot .png in assets folder ⚠️ Warning
No .sppkg file ✅ Succeeded
No node_modules folder ✅ Succeeded
No lib folder ✅ Succeeded
No upgrade reports ✅ Succeeded

@joaojmendes please address the above issues and push new changes to this branch.
For more information, see the contribution guidance.

@hugoabernier
Copy link
Copy Markdown
Collaborator

@joaojmendes this is going to be a fantastic sample, but do you think you can look at the merge conflicts?

Also, it seems that the PR affects a few folders
image

@hugoabernier
Copy link
Copy Markdown
Collaborator

@joaojmendes following up on this. If you don't mind updating your PR to only affect one folder and to solve conflicts, I am looking forward to merging this fantastic contribution.

@joaojmendes
Copy link
Copy Markdown
Contributor Author

Oh @hugoabernier sorry I am only saw your comments now :( , let me fix!

- Add useSchemaExtensionStorage hook for managing hidden SharePoint list
- Auto-provision SchemaExtensionsConfig list on App Catalog site
- Update useSchemaExtension to use list storage instead of tenant properties
- Fix permission check logic in ManageSchemaExtensions component
- Update localization strings for en-us and pt-pt

This change allows the web part to work with Site Collection Admin
permissions instead of requiring SharePoint Admin role.
@joaojmendes joaojmendes force-pushed the manage-schema-extensions-list-based-storage branch from 37aea80 to 59849c4 Compare March 6, 2026 22:27
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2026

Sample PR validation for #5785

⚠️ Validation status: warnings

We automatically validate all pull requests against our contribution guidance to ensure that all samples provide a consistent experience to our community.

In order to merge this PR in a timely manner, the following criteria must be met:

Validation Status
Pull request affects only one folder ✅ Succeeded
Sample folder name follows naming convention ✅ Succeeded
Sample requires a .nvmrc file ⚠️ Warning
Sample requires a README.md ⚠️ Warning
Sample requires a screenshot .png in assets folder ⚠️ Warning
No .sppkg file ✅ Succeeded
No node_modules folder ✅ Succeeded
No lib folder ✅ Succeeded
No upgrade reports ✅ Succeeded

@joaojmendes please address the above issues and push new changes to this branch.
For more information, see the contribution guidance.

@joaojmendes
Copy link
Copy Markdown
Contributor Author

@hugoabernier done!

@hugoabernier
Copy link
Copy Markdown
Collaborator

Thanks @joaojmendes . I still seem to get the following errors:

Error - [tsc] src/components/ManageSchemaExtensions/ManageSchemaExtensions.tsx(40,7): error TS6133: 'MANAGED_WEB' is declared but its value is never read.
[15:04:22] Error - [tsc] src/components/ManageSchemaExtensions/ManageSchemaExtensions.tsx(41,7): error TS6133: 'FULL_MASK' is declared but its value is never read.
[15:04:22] Error - [tsc] src/components/SchemaExtensionDrawer/SchemaExtensionDrawer.tsx(85,5): error TS2339: Property 'validateAppIdAndOwnership' does not exist on type 'IUseSchemaExtensionResult'.

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.

2 participants