Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add foreign key tooltip and refine others WIP #309

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/renderer/mixins/ColumnTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,38 @@ export default {
externalLink,
'tooltipColumnName': {
components: {externalLink},
template: `<div id="tooltip-column-name">The
<externalLink text="Name" url="http://frictionlessdata.io/specs/table-schema/#name"/> Usually the value of the first row in the column.</div>`
template: `<div id="tooltip-column-name">
<externalLink text="Name" url="http://frictionlessdata.io/specs/table-schema/#name"/> is usually the value of the first row in the column</div>`
},
'tooltipColumnTitle': {
components: {externalLink},
template: `<div id="tooltip-column-title">A human readable
<externalLink text="Title" url="http://frictionlessdata.io/specs/table-schema/#title"/> for the column.</div>`
<externalLink text="Title" url="http://frictionlessdata.io/specs/table-schema/#title"/> for the column</div>`
},
'tooltipColumnDescription': {
components: {externalLink},
template: `<div id="tooltip-column-description">A
<externalLink text="Description" url="http://frictionlessdata.io/specs/table-schema/#description"/> of the column.</div>`
<externalLink text="Description" url="http://frictionlessdata.io/specs/table-schema/#description"/> of the column</div>`
},
'tooltipColumnType': {
components: {externalLink},
template: `<div id="tooltip-column-type">Choose a
<externalLink text="Type" url="http://frictionlessdata.io/specs/table-schema/#types-and-formats"/> for the data in the column.</div>`
<externalLink text="Type" url="http://frictionlessdata.io/specs/table-schema/#types-and-formats"/> for the data in the column</div>`
},
'tooltipColumnFormat': {
components: {externalLink},
template: `<div id="tooltip-column-format">Choose the
<externalLink text="Format" url="http://frictionlessdata.io/specs/table-schema/#types-and-formats"/> for the Type of data.</div>`
<externalLink text="Format" url="http://frictionlessdata.io/specs/table-schema/#types-and-formats"/> for the Type of data</div>`
},
'tooltipColumnConstraints': {
components: {externalLink},
template: `<div id="tooltip-column-constraints">Set a
<externalLink text="Constraint" url="http://frictionlessdata.io/specs/table-schema/#constraints"/> to limit valid values.</div>`
<externalLink text="Constraint" url="http://frictionlessdata.io/specs/table-schema/#constraints"/> to limit valid values</div>`
},
'tooltipColumnRdfType': {
components: {externalLink},
template: `<div id="tooltip-column-rdfType">Set a
<externalLink text="RDF Type" url="http://frictionlessdata.io/specs/table-schema/#rich-types"/> to provide extra meaning to the Type.</div>`
<externalLink text="RDF Type" url="http://frictionlessdata.io/specs/table-schema/#rich-types"/> to provide extra meaning to the data</div>`
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions src/renderer/mixins/PackageTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
'tooltipPackageName': {
components: {externalLink},
template: `<div id="tooltip-package-name">The
<externalLink text="Name" url="http://frictionlessdata.io/specs/data-package/#name/> of the Package. Lower case, numbers, ".", "_", "-" characters only.</div>`
<externalLink text="Name" url="http://frictionlessdata.io/specs/data-package/#name/> of the data package. Lower case, numbers, ".", "_", "-" characters only</div>`
},
'tooltipPackageId': {
components: {externalLink},
Expand All @@ -18,27 +18,27 @@ export default {
'tooltipPackageTitle': {
components: {externalLink},
template: `<div id="tooltip-package-title">The
<externalLink text="Title" url="http://frictionlessdata.io/specs/data-package/#title"/> or one sentence description for this Package.</div>`
<externalLink text="Title" url="http://frictionlessdata.io/specs/data-package/#title"/> or one sentence description for this data package</div>`
},
'tooltipPackageDescription': {
components: {externalLink},
template: `<div id="tooltip-package-description">A
<externalLink text="Description" url="http://frictionlessdata.io/specs/data-package/#description"/> for the Package.</div>`
<externalLink text="Description" url="http://frictionlessdata.io/specs/data-package/#description"/> for the data package</div>`
},
'tooltipPackageVersion': {
components: {externalLink},
template: `<div id="tooltip-package-version">A
<externalLink text="Data Package Version" url="http://frictionlessdata.io/specs/patterns/#data-package-version> follows the Semantic Versioning specification format.</div>`
template: `<div id="tooltip-package-version">A data package
<externalLink text="version" url="http://frictionlessdata.io/specs/patterns/#data-package-version> follows the Semantic Versioning specification format</div>`
},
'tooltipPackageSources': {
components: {externalLink},
template: `<div id="tooltip-package-sources">Each
<externalLink text="Source" url="http://frictionlessdata.io/specs/data-package/#sources"/> MUST have a title and MAY have path and/or email address.</div>`
<externalLink text="Source" url="http://frictionlessdata.io/specs/data-package/#sources"/> MUST have a title and MAY have path and/or email address</div>`
},
'tooltipPackageLicences': {
components: {externalLink},
template: `<div id="tooltip-package-licences">The Open
<externalLink text="License" url="http://frictionlessdata.io/specs/data-package/#licenses"/> under which the Package is provided.</div>`
template: `<div id="tooltip-package-licences">The
<externalLink text="Open License" url="http://frictionlessdata.io/specs/data-package/#licenses"/> under which the data package is provided</div>`
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/mixins/ProvenanceTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
'tooltipProvenanceDescription': {
components: {externalLink},
template: `<div id="tooltip-provenance-description">Use text or markdown to provide provenance information in a
<externalLink text="Readme" url="http://frictionlessdata.io/guides/publish/faq/#readme"/> file in the Data Package.</div>`
<externalLink text="Readme" url="http://frictionlessdata.io/guides/publish/faq/#readme"/> file in the data package</div>`
}
}
}
Expand Down
23 changes: 14 additions & 9 deletions src/renderer/mixins/TableTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,42 @@ export default {
'tooltipTableName': {
components: {externalLink},
template: `<div id="tooltip-table-name">The
<externalLink text="Name" url="http://frictionlessdata.io/specs/data-resource/#name"/> of the Table. Lower case, numbers, ".", "_", "-" characters only.</div>`
<externalLink text="Name" url="http://frictionlessdata.io/specs/data-resource/#name"/> of the table. Lower case, numbers, ".", "_", "-" characters only</div>`
},
'tooltipTableTitle': {
components: {externalLink},
template: `<div id="tooltip-table-title">The
<externalLink text="Title" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> or one sentence description for this Table.</div>`
<externalLink text="Title" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> or one sentence description for this table</div>`
},
'tooltipTableDescription': {
components: {externalLink},
template: `<div id="tooltip-table-description">A
<externalLink text="Description" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> for the Table.</div>`
<externalLink text="Description" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> for the table</div>`
},
'tooltipTableSources': {
components: {externalLink},
template: `<div id="tooltip-table-sources">Each
<externalLink text="Source" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> MUST have a title and MAY have path and/or email address.</div>`
template: `<div id="tooltip-table-sources">Each
<externalLink text="Source" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> MUST have a title and MAY have path and/or email address</div>`
},
'tooltipTableLicences': {
components: {externalLink},
template: `<div id="tooltip-table-licences">The Open
<externalLink text="License" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> under which the Table is provided.</div>`
template: `<div id="tooltip-table-licences">The
<externalLink text="Open License" url="http://frictionlessdata.io/specs/data-resource/#optional-properties"/> under which the table is provided</div>`
},
'tooltipTablePrimaryKeys': {
components: {externalLink},
template: `<div id="tooltip-table-primary-keys">The
<externalLink text="Primary Key" url="http://frictionlessdata.io/specs/table-schema/#primary-key"/> is the field(s) that uniquely identifies each row in the table. Separate values with a comma.</div>`
<externalLink text="Primary Key" url="http://frictionlessdata.io/specs/table-schema/#primary-key"/> is the column(s) that uniquely identifies each row in the table</div>`
},
'tooltipTableForeignKeys': {
components: {externalLink},
template: `<div id="tooltip-table-foreign-keys">A
<externalLink text="Foreign Key" url="http://frictionlessdata.io/specs/table-schema/#foreign-keys"/> must exist in the referenced table and column(s)</div>`
},
'tooltipTableMissingValues': {
components: {externalLink},
template: `<div id="tooltip-table-missing-values">Value(s) that indicate a
<externalLink text="Missing Value" url="http://frictionlessdata.io/specs/table-schema/#missing-values"/>. Separate values with a comma.</div>`
<externalLink text="Missing Value" url="http://frictionlessdata.io/specs/table-schema/#missing-values"/>. Separate values with a comma</div>`
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/partials/TableProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export default {
{
label: 'foreign key(s)',
// type: 'tableKeys',
key: 'foreignKeys'
key: 'foreignKeys',
tooltipId: 'tooltip-table-foreign-keys',
tooltipView: 'tooltipTableForeignKeys'
},
{
label: 'description',
Expand Down