Skip to content

2020-11

Compare
Choose a tag to compare
@enikonemeth enikonemeth released this 23 Nov 13:35
· 415 commits to develop since this release

Bye-bye Hacktoberfest πŸ‘‹

Hacktoberfest 2020 is over, thanks for all the contributors. Limited edition super socks will arrive soon ✈️. We really enjoyed the last few weeks, the joint work went smoothly. Other than that a refactoring period was maintained by us. Two main package was touched, but in this release only one is published: @sensenet/controls-react. @sensenet/document-viewer-react will change soon with even more stable operation. ⌚
We also fixed bugs as usual, bugfixing never ends. πŸ›

Here are the changes what we made:

[email protected]

  • We have new cypress end-to-end tests. Thank you again for the contributors! ✨

  • There were some components which did not follow the font-size-change of google chrome. Now this is fixed, you can use sensenet with large or extra large font-sizes as well. πŸ‘“ #1075

  • Some error messages were not handled correctly on group membership dialog, now it is fixed. πŸ’¬ #1080

  • A notification problem was also noticed during query writing which has been resolved. ⚠️ #1081

  • You can use now reference fields in your custom menuitems. ⏬ #1021

How can you try?

  1. Add a new AllowedChildTypes item to Sample Workspace (SmartFolder)
  2. Create a New SmartFolder under Sample Workspace with the following options: (query: +TypeIs:'Task' +Status:'Active')

ActiveTask

  1. Go to /personal-settings and copy this to the text area:
{
   "theme": "dark",
   "default": {
      "drawer": {
         "items": [
            {
               "itemType": "CustomContent",
               "settings": {
                  "icon": "AddAlert",
                  "title": "ActiveTask",
                  "appPath": "activeTask",
                  "root": "/Root/Content/SampleWorkspace/ActiveTask",
                  "columns": [
                     "Name",
                     "ModifiedBy/Email",
                     "ModifiedBy/Manager/Manager/Email",
                     "ModifiedBy/Manager/Name",
                     "ModifiedBy/Manager"
                  ],
                  "description": "List of accounts that should be notified"
               }
            }
         ]
      }
   }
}

In this example I modified the related Task with businesscat, I set the Manager of businessscat to devdog (whose manager is editormanatee)

The result:

ActiveTaskResult

@sensenet/[email protected]

  • New function is added to SchemaStore #2021
/**
   * Returns the Field Type for the provided content field name
   * @param {string} fieldName The name of field you search for
   */
  public getFieldTypeByName(fieldName: string): string | undefined {
    const schemasCopy = [...this.schemas.getValue()]
    return schemasCopy.reduce((_, schema: Schema) => {
      const fieldType = schema.FieldSettings.find((fieldSetting: FieldSetting) => fieldSetting.Name === fieldName)?.Type
      if (fieldType) {
        schemasCopy.length = 0
      }
      return fieldType
    }, undefined)
  }

@sensenet/[email protected]

  • New optional prop is added to virtualized-table:
/**
* Contains custom reference cell template components
*/
referenceCellRenderer?: (tableCellProps: TableCellProps) => React.ReactNode

@sensenet/[email protected]

isCurrencyFieldSetting typeGuard is moved from sn-controls-react to default-content-types

@sensenet/[email protected]

Last, but not least this package has been reshaped, now it is much better than it was. β˜€οΈπŸ‘ŒπŸŒŸ

You can find the release here