Skip to content

Releases: SchweizerischeBundesbahnen/scion-workbench

1.0.0-beta.20 (@scion/workbench-client)

31 Oct 13:22
Compare
Choose a tag to compare

1.0.0-beta.20 (2023-10-31)

Features

  • workbench-client: enable microfrontend to display a splash until loaded (7a79065)
  • workbench-client: provide workbench color scheme (ed63b22)

16.0.0-beta.8 (@scion/workbench)

10 Oct 16:04
Compare
Choose a tag to compare

16.0.0-beta.8 (2023-10-10)

Bug Fixes

  • workbench: activate part when activating view (2e2368a)
  • workbench: activate part when microfrontend gains focus (6e05d8c)
  • workbench: allow to focus element outside the context menu when opened (2556b04)
  • workbench: close view list menu when microfrontend gains focus (629cd8d)
  • workbench: detach overlays associated with peripheral views when maximizing the main area (6cf3388)
  • workbench: do not close views that are not closable (cf9993b)

Features

  • workbench: rework tab design and styling of the SCION Workbench (5cbd354), closes #110

BREAKING CHANGES

  • workbench: The new tab design and theming of the SCION Workbench has introduced a breaking change.

    To migrate:

    • update @scion/components to version 16.2.0 or higher
    • update @scion/workbench-client to version 1.0.0-beta.19 or higher
    • The workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See How to theme SCION Workbench for a list of supported tokens.
    • The tab height has changed from two lines to one line, not displaying the heading anymore. You can change the tab height back to two lines by setting the --sci-workbench-tab-height design token to 3.5rem.
      :root {
        --sci-workbench-tab-height: 3.5rem;
      }
    • Custom icon font is now configured top-level in @scion/workbench SCSS module. Previously, the custom icon font was configured under the $theme map entry.

      Before:

      @use '@scion/workbench' with (
        $theme: (
          icon-font: (
            filename: 'custom-workbench-icons',
            version: '1.0.0'
          )
        )
      );

      After:

      @use '@scion/workbench' with (
        icon-font: (
          filename: 'custom-workbench-icons',
          version: '1.0.0'
        )
      );
    • Contribution of custom tab component has changed:
      • Close button is now rendered separately and can be removed from the custom tab component.
      • Custom tab component should add a right margin if rendered in the context of a tab or drag image to not overlap the close button.
      • Inject current rendering context using VIEW_TAB_RENDERING_CONTEXT DI token instead of VIEW_TAB_CONTEXT DI token. Supported contexts are tab, list-item and drag-image.

1.0.0-beta.19 (@scion/workbench-client)

10 Oct 15:51
Compare
Choose a tag to compare

1.0.0-beta.19 (2023-10-10)

Features

  • workbench-client: rework tab design and styling of the SCION Workbench (5cbd354), closes #110

16.0.0-beta.7 (@scion/workbench)

26 Sep 14:21
Compare
Choose a tag to compare

16.0.0-beta.7 (2023-09-26)

Code Refactoring

  • workbench: display start page standalone, not nested in a workbench part (37a1350), closes #492

BREAKING CHANGES

  • workbench: Changing the display of the start page has introduced a breaking change.

    The workbench no longer supports displaying part actions on the start page. Instead, add controls (actions) directly to the start page.

16.0.0-beta.6 (@scion/workbench)

20 Sep 14:38
Compare
Choose a tag to compare

16.0.0-beta.6 (2023-09-20)

Bug Fixes

  • workbench: do not publish changed layout objects until processed a layout change (8286d65)

Features

  • workbench: allow for a layout with an optional main area (ff6697a), closes #443

BREAKING CHANGES

  • workbench: Adding support for optional main area introduced breaking changes.

    The following APIs have changed:

    • renamed MAIN_AREA_PART_ID to MAIN_AREA;
    • changed signature of WorkbenchLayoutFn to take WorkbenchLayoutFactory instead of WorkbenchLayout as argument;
    • layout definitions, if any, must now add the MAIN_AREA part explicitly;
    • changed inputs of wbPartAction directive to take canMatch function instead of view, part and area inputs;

    The following snippets illustrate how a migration could look like:

    Initial layout: Before migration

    import {MAIN_AREA_PART_ID, WorkbenchModule} from '@scion/workbench';
    
    WorkbenchModule.forRoot({
      layout: layout => layout
        .addPart('left', {relativeTo: MAIN_AREA_PART_ID, align: 'left', ratio: .25})
        .addView('navigator', {partId: 'left', activateView: true})
    });

    Initial layout: After migration

    import {MAIN_AREA, WorkbenchLayoutFactory, WorkbenchModule} from '@scion/workbench';
    
    WorkbenchModule.forRoot({
      layout: (factory: WorkbenchLayoutFactory) => factory
        .addPart(MAIN_AREA)
        .addPart('left', {relativeTo: MAIN_AREA, align: 'left', ratio: .25})
        .addView('navigator', {partId: 'left', activateView: true})
    });

    Part Action: Before migration

    <wb-workbench>
      <ng-template wbPartAction area="main">
        <button [wbRouterLink]="'/path/to/view'">
          Open View
        </button>
      </ng-template>
    </wb-workbench>

    Part Action: After migration

    <wb-workbench>
      <ng-template wbPartAction [canMatch]="isPartInMainArea">
        <button [wbRouterLink]="'/path/to/view'">
          Open View
        </button>
      </ng-template>
    </wb-workbench>
    isPartInMainArea = (part: WorkbenchPart): boolean => {
      return part.isInMainArea;
    };

16.0.0-beta.5 (@scion/workbench)

07 Sep 09:05
Compare
Choose a tag to compare

16.0.0-beta.5 (2023-08-24)

Bug Fixes

  • workbench: display perspective also for slow/asynchronous initial navigation (da4bfe5)
  • workbench: display view 'standalone' when moving it to a new window (3d851af), closes #477
  • workbench: ensure menu items in view context-menu to display in full-width (0702fb1)
  • workbench: resolve perspective layout storage issues (754747a), closes #470 #471 #472
  • workbench: support application URL to contain view outlets of views contained the perspective grid (1eead4b), closes #474

Features

  • workbench: allow for navigation to empty path auxiliary routes (5397bee), closes #476
  • workbench: support asynchronous navigation in WorkbenchRouter.ɵnavigate (e82495f)

16.0.0-beta.4 (@scion/workbench)

07 Sep 09:04
Compare
Choose a tag to compare

16.0.0-beta.4 (2023-08-11)

Bug Fixes

  • workbench: fetch icon font for applications deployed in a subdirectory (02db939), closes #466

16.0.0-beta.3 (@scion/workbench)

07 Sep 09:04
Compare
Choose a tag to compare

16.0.0-beta.3 (2023-08-08)

Bug Fixes

  • workbench: fix moving view tabs in the tabbar (cfc8482), closes #444

16.0.0-beta.2 (@scion/workbench)

07 Sep 09:03
Compare
Choose a tag to compare

16.0.0-beta.2 (2023-08-04)

Bug Fixes

  • workbench: allow re-mounting of the workbench component (6fdc142), closes #250

Features

  • workbench: enable users to drag views to the side of the main or peripheral area (5ea3fc9), closes #444

16.0.0-beta.1 (@scion/workbench)

07 Sep 09:03
Compare
Choose a tag to compare

16.0.0-beta.1 (2023-06-08)

Dependencies

  • workbench: update @scion/workbench to Angular 16 (98af801), closes #429

Features

  • workbench: accept passing undefined in optional inputs (b19f428)
  • workbench: comply with basic accessibility rules (ed52668)
  • workbench: mark required inputs as required (e8ccb94)

BREAKING CHANGES