diff --git a/wherehows-web/app/components/more-info.ts b/wherehows-web/app/components/more-info.ts new file mode 100644 index 0000000000..deedfe505e --- /dev/null +++ b/wherehows-web/app/components/more-info.ts @@ -0,0 +1,41 @@ +import Component from '@ember/component'; + +export default class MoreInfo extends Component { + tagName = 'span'; + + classNames = ['more-info']; + + /** + * Proxies to anchor element target attribute + * @type {string} + * @memberOf MoreInfo + */ + target: string; + + /** + * Proxies to anchor element href attribute + * @type {string} + * @memberOf MoreInfo + */ + link: string; + + /** + * Renders the tool tip component, if present + * @type {string} + * @memberOf MoreInfo + */ + tooltip: string; + + constructor() { + super(...arguments); + + this.target || (this.target = '_blank'); + this.link || (this.link = '#'); + } + + /** + * Disables DOM event propagation + * @return {boolean} + */ + click = () => false; +} diff --git a/wherehows-web/app/templates/components/datasets/schemaless-tagging.hbs b/wherehows-web/app/templates/components/datasets/schemaless-tagging.hbs index 025cf349e6..6ce18cbd64 100644 --- a/wherehows-web/app/templates/components/datasets/schemaless-tagging.hbs +++ b/wherehows-web/app/templates/components/datasets/schemaless-tagging.hbs @@ -29,16 +29,10 @@
Compliance Purge Policy - - - More Info - - - - + {{more-info + link="http://go/gdpr/deletions/purgePolicies" + tooltip="more information Purge Policies" + }}
diff --git a/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-classification.hbs b/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-classification.hbs index 7f8b1a9753..2e88b8de71 100644 --- a/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-classification.hbs +++ b/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-classification.hbs @@ -5,18 +5,11 @@ "Does this dataset contain the following types of data?" "Types of data contained in this dataset"}} - - - - - More Info - - - + {{more-info + link="http://go/gdpr-taxonomy#MetadataTaxonomyforDataSets-DatasetLevelTags" + tooltip="more information on Dataset classification with examples" + }} {{#if isEditing}} diff --git a/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-compliance-entities.hbs b/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-compliance-entities.hbs index e8804f1528..88b022d51a 100644 --- a/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-compliance-entities.hbs +++ b/wherehows-web/app/templates/datasets/dataset-compliance/-dataset-compliance-entities.hbs @@ -4,16 +4,12 @@ {{if isEditing "Does any field in the schema contain an IDs (e.g. Member ID, Enterprise Profile ID etc) or other PII information?" "IDs and PII in the schema"}} - - - More Info - - - + {{more-info + link="http://go/gdpr-pii" + tooltip="more information on Schema field format and types" + }} + @@ -45,7 +41,16 @@ {{#table.head as |head|}} {{#head.column class="dataset-compliance-fields__notification-column"}}{{/head.column}} - {{#head.column columnName="identifierField"}}Field{{/head.column}} + {{#head.column columnName="identifierField"}} + + Field + + {{more-info + link="http://go/tms-schema" + tooltip="more information on Schema" + }} + + {{/head.column}} {{#head.column columnName="dataType"}}Data Type{{/head.column}} {{#head.column class="nacho-table-cell-wrapped" columnName="confidence"}} System Suggestion Confidence @@ -151,16 +156,11 @@