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

Document Library Command Bar - Classify and Extract and Automate - unable to hide #9992

Open
2 of 9 tasks
buildbod opened this issue Oct 30, 2024 · 2 comments
Open
2 of 9 tasks
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@buildbod
Copy link

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Developer environment

None

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser versions
  • Microsoft Edge Version 130.0.2849.56 (Official build) (64-bit)
  • Google Chrome Version 130.0.6723.92 (Official Build) (64-bit)

Describe the bug / error

The Command Bar Customisation documentation https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting#key lists the Command Bar keys for 'Classify and Extract' and 'Automate' as 'classifyAndExtract' and 'automate' respectively. Setting either or both keys to "hide":true has no effect i.e. the key is not hidden.

In the case of the Automate item. It is possible to setting either 'automateCreateRule' or 'automateManageRules' to be hidden but the subcategory Rules remains e.g.

image

Steps to reproduce

  1. Using the Format view add the following JSON to hide the Classify and extract and Automate options:

{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "commandBarProps": { "commands": [ { "key": "classifyAndExtract", "hide": true }, { "key": "automate", "hide": true }, { "key": "automateCreateRule", "hide": true }, { "key": "automateManageRules", "hide": true } ] } }

  1. The options will remain visible even though the key is set to hide

Expected behavior

The Classify and extract and Automate commands are hidden.

@buildbod buildbod added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Oct 30, 2024
@buildbod
Copy link
Author

With more experimentation, the 'Classify and extract' key can be hidden using viewDocumentUnderstandingModels e.g.

{ "key": "viewDocumentUnderstandingModels", "hide": true }

@tpodugu-ms
Copy link

Thank you for reporting this. We will provide an update soon.

@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

3 participants