Table Of Contents for SharePoint issueshttps://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/toc/-/issues2020-10-27T19:28:29Zhttps://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/toc/-/issues/4Feature: support french2020-10-27T19:28:29ZLaurent SittlerFeature: support french# Summary
Currently, only `en-us` loc file existing.
Add a `fr-fr` file with the translated content to support the french site collections.# Summary
Currently, only `en-us` loc file existing.
Add a `fr-fr` file with the translated content to support the french site collections.v1.0.0Laurent SittlerLaurent Sittlerhttps://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/toc/-/issues/3Bug: icon does not appear2020-10-25T19:19:53ZLaurent SittlerBug: icon does not appear# Summary
The button that allow to open the Table of Contents panel contains an icon. By default, an icon is defined but it is possible to specify an other other included into the Fluent UI solution: https://developer.microsoft.com/en-us/fluentui#/styles/web/icons
## Current behavior
The icon does not appear.
Even if the you keep the default icon or specify a new one that's included into the Fluent UI, the icon still not appearing.
This behavior seems linked with the environment of SharePoint online but it is currently not possible to determine the point that occur this issue.
## Expected behavior
Whatever it is the icon (the default one or a specified one), it should be visible into the button.# Summary
The button that allow to open the Table of Contents panel contains an icon. By default, an icon is defined but it is possible to specify an other other included into the Fluent UI solution: https://developer.microsoft.com/en-us/fluentui#/styles/web/icons
## Current behavior
The icon does not appear.
Even if the you keep the default icon or specify a new one that's included into the Fluent UI, the icon still not appearing.
This behavior seems linked with the environment of SharePoint online but it is currently not possible to determine the point that occur this issue.
## Expected behavior
Whatever it is the icon (the default one or a specified one), it should be visible into the button.v1.0.0Laurent SittlerLaurent Sittlerhttps://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/toc/-/issues/2Feature: support custom URL icon2020-10-25T19:19:54ZLaurent SittlerFeature: support custom URL icon# Summary
The current version of the TOC extension allow to define custom icon through the property `tocIcon` based on the UI Fabric / Fluent icons.
The main idea, is to add the capability in addition to the `tocIcon` to specify another icon/image based on a custom SharePoint or Internet URL.
## Properties
Add the property `tocImgUrl` to define a custom image as icon, so that overwrite the `tocIcon` one once this latter defined.
## Additional information
- Add a string validator to ensure the string is an URL, in other case, the `tocIcon` will be displayed
- Update the readme file and add information about the new option# Summary
The current version of the TOC extension allow to define custom icon through the property `tocIcon` based on the UI Fabric / Fluent icons.
The main idea, is to add the capability in addition to the `tocIcon` to specify another icon/image based on a custom SharePoint or Internet URL.
## Properties
Add the property `tocImgUrl` to define a custom image as icon, so that overwrite the `tocIcon` one once this latter defined.
## Additional information
- Add a string validator to ensure the string is an URL, in other case, the `tocIcon` will be displayed
- Update the readme file and add information about the new optionv1.0.0Laurent SittlerLaurent Sittlerhttps://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/toc/-/issues/1Button appear after editing page2020-10-27T19:28:28ZLaurent SittlerButton appear after editing page# Summary
<!-- Describe your issue here.-->
The TOC button appear on a page with no headers after been edited.
## Your environment
<!-- Add / replace the white space by a cross into the square bracket in accordance with your environment -->
|||
|----|----|
| Tenant Release | <ul><li> [ ] Standard</li><li> [x] Targeted</li></ul> |
| Extension version | v0 |
| Deployment | <ul><li> [x] Tenant App Catalog and install one whole Tenant</li><li> [ ] Tenant App Catalog and install per site collection</li></li><li> [ ] Site collection app catalog</li></ul> |
## Current behavior
<!--
Describe the steps to reproduce your behavior. Recommandation: use a numbered list - one line by step.
If you have any screenshot to help us better understand, it is appreciate
-->
Once the extension install and deployed
**First scenario**
1. Create a page with no header
2. Save it as Draft or Publish it
3. The TOC button appear
**Second scenario**
1. Edit an existing page with no header
2. Discard changes or Save as Draft or Republish it
3. The TOC button appear
## Expected behavior
<!--
Describe what you expect instead of the current behavior
You can use a numbered list to reproduce the steps until the expected behavior or a plain text
-->
If a page does not contains any header, after editing it, the button should still hide.
## Additional information
<details>
<summary>Expand for output related to your SharePoint Environment</summary>
<!--
Indicate all other information that can be useful to fix the issue
Logs - command lines - cmdlet - links - etc.
-->
Into table of content TSX' file, lines 45-47, after the of change edit mode, the button will display even if headers are present or not into the content. The content must be check again.
```diff
} else if (prevProps.tocPageMode != this.props.tocPageMode && this.props.tocPageMode == 0) {
- this.setState({
- displayBtn: true
- });
+ this.checkHeaders();
}
```
</pre>
</details># Summary
<!-- Describe your issue here.-->
The TOC button appear on a page with no headers after been edited.
## Your environment
<!-- Add / replace the white space by a cross into the square bracket in accordance with your environment -->
|||
|----|----|
| Tenant Release | <ul><li> [ ] Standard</li><li> [x] Targeted</li></ul> |
| Extension version | v0 |
| Deployment | <ul><li> [x] Tenant App Catalog and install one whole Tenant</li><li> [ ] Tenant App Catalog and install per site collection</li></li><li> [ ] Site collection app catalog</li></ul> |
## Current behavior
<!--
Describe the steps to reproduce your behavior. Recommandation: use a numbered list - one line by step.
If you have any screenshot to help us better understand, it is appreciate
-->
Once the extension install and deployed
**First scenario**
1. Create a page with no header
2. Save it as Draft or Publish it
3. The TOC button appear
**Second scenario**
1. Edit an existing page with no header
2. Discard changes or Save as Draft or Republish it
3. The TOC button appear
## Expected behavior
<!--
Describe what you expect instead of the current behavior
You can use a numbered list to reproduce the steps until the expected behavior or a plain text
-->
If a page does not contains any header, after editing it, the button should still hide.
## Additional information
<details>
<summary>Expand for output related to your SharePoint Environment</summary>
<!--
Indicate all other information that can be useful to fix the issue
Logs - command lines - cmdlet - links - etc.
-->
Into table of content TSX' file, lines 45-47, after the of change edit mode, the button will display even if headers are present or not into the content. The content must be check again.
```diff
} else if (prevProps.tocPageMode != this.props.tocPageMode && this.props.tocPageMode == 0) {
- this.setState({
- displayBtn: true
- });
+ this.checkHeaders();
}
```
</pre>
</details>v1.0.0Laurent SittlerLaurent Sittlerhttps://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/toc/-/issues/13Wrong behavior when headers are not used in order2021-03-01T03:01:31ZLaurent SittlerWrong behavior when headers are not used in order## Summary
<!-- Describe your issue here.-->
The Table Of Contents display the same group of headers twice
## Prerequisites
<!--
Please answer the following questions for yourself before submitting an issue
-->
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
## Your environment
<!-- Add / replace the white space by a cross into the square bracket in accordance with your environment -->
|||
|----|----|
| Tenant Release | <ul><li> [ ] Standard</li><li> [x] Targeted</li></ul> |
| Extension version | 1.0.0 |
| Deployment | <ul><li> [ ] Tenant App Catalog and install one whole Tenant</li><li> [ ] Tenant App Catalog and install per site collection</li></li><li> [x] Site collection app catalog</li></ul> |
| Browser | Edge |
| Browser Version | 88.0.705.68 |
| Operating System | Mac |
## Current behavior
<!--
Describe the steps to reproduce your behavior. Recommendation: use a numbered list - one line by step.
If you have any screenshot to help us better understand, it is appreciated
-->
1. Create a SharePoint Page
2. Create headers in this order: H2 then H1
3. Save the page and refresh
4. Open the TOC
5. The H2 header is displayed twice
## Expected behavior
<!--
Describe what you expect instead of the current behavior
You can use a numbered list to reproduce the steps until the expected behavior or a plain text
-->
Same steps that the current behavior but the title/header H2 should be displayed only once
## Screenshots
![Screen_Shot_2021-02-16_at_09.25.33](/uploads/cbd0f0e1b3c3be2b0ebcdfc3e91214f8/Screen_Shot_2021-02-16_at_09.25.33.png)## Summary
<!-- Describe your issue here.-->
The Table Of Contents display the same group of headers twice
## Prerequisites
<!--
Please answer the following questions for yourself before submitting an issue
-->
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
## Your environment
<!-- Add / replace the white space by a cross into the square bracket in accordance with your environment -->
|||
|----|----|
| Tenant Release | <ul><li> [ ] Standard</li><li> [x] Targeted</li></ul> |
| Extension version | 1.0.0 |
| Deployment | <ul><li> [ ] Tenant App Catalog and install one whole Tenant</li><li> [ ] Tenant App Catalog and install per site collection</li></li><li> [x] Site collection app catalog</li></ul> |
| Browser | Edge |
| Browser Version | 88.0.705.68 |
| Operating System | Mac |
## Current behavior
<!--
Describe the steps to reproduce your behavior. Recommendation: use a numbered list - one line by step.
If you have any screenshot to help us better understand, it is appreciated
-->
1. Create a SharePoint Page
2. Create headers in this order: H2 then H1
3. Save the page and refresh
4. Open the TOC
5. The H2 header is displayed twice
## Expected behavior
<!--
Describe what you expect instead of the current behavior
You can use a numbered list to reproduce the steps until the expected behavior or a plain text
-->
Same steps that the current behavior but the title/header H2 should be displayed only once
## Screenshots
![Screen_Shot_2021-02-16_at_09.25.33](/uploads/cbd0f0e1b3c3be2b0ebcdfc3e91214f8/Screen_Shot_2021-02-16_at_09.25.33.png)