1.0.0 • Published 2 years ago

account-form v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Form and Ribbon TypeScript

Introduction

Use this repo for creating both Form and Ribbon TypeScript Components (i.e. OnLoad, OnChange events).

Current Features

Webpack is being used to build the files for deployment, at present it creates the following as shared files -

  • Configuration.js
    • Provides access to the various configuration functions from the common-functions library, i.e. cached configuration and user settings
  • Helpers.js
    • Provides access to a number of helpers such as the alert functionality and form helper

The above are exposed as global variables and can be accessed under the KPMG.CE namespace

We've also separated the source maps out to a different file to keep file sizes to a minimum, this should be included in the release.

Note: When deploying in CE please ensure virtual folder structures are used.

Unit Testing

Library Used: Sinon JS

All unit tests related to the current repo are stored within the "test" folder. The contents of this file are stored as follows:

- "test\helpers"
    + Contains any setup helper TS files pertaining to each entity being tested.
- "test\helpers\general"
    + Generic helper files which will be used to stub common methods of the following interfaces
        - IAlertHelper
        - IFormHelper
        - ISettings
        - IUserSettings
    + XrmData

Contribute

All changes should utilise pull requests to enter the main branch.

All code which is included in this MUST be unit tested. For mocking the Xrm features use xrm-mock

TODO

  • Migrate and refactor existing Account OnLoad to new ways of working
  • Migrate and refactor existing Account Form Ribbon controls
  • Migrate additional records
  • Implement Unit Testing for migrated code
1.0.0

2 years ago