mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
Members import refinements
no refs. - updated and removed copy on mapping screen
This commit is contained in:
parent
c611f65f53
commit
59ed8d718d
@ -4,14 +4,14 @@
|
|||||||
<th class="table-cell-field"><span class="f-small midgrey ttu fw5">Field</span></th>
|
<th class="table-cell-field"><span class="f-small midgrey ttu fw5">Field</span></th>
|
||||||
<th class="table-cell-data">
|
<th class="table-cell-data">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<span class="f-small midgrey ttu fw5 nudge-top--1">Data <span class="midlightgrey fw4">({{format-number this.currentRecord}} of {{format-number this.allRecords}})</span></span>
|
<span class="f-small midgrey ttu fw5 nudge-top--1">Sample data <span class="midlightgrey fw4">(#{{format-number this.currentRecord}})</span></span>
|
||||||
<div class="flex items-center bg-white br2 ml1 nr1 gh-members-import-datanav">
|
<div class="flex items-center bg-white br2 ml1 nr1 gh-members-import-datanav">
|
||||||
<a href="#" {{action "prev"}} class="pa1 flex items-center justify-center br b--whitegrey {{unless this.hasPrevRecord "o-30"}}" data-test-import-prev>{{svg-jar "arrow-left" class="w3 h3 fill-middarkgrey" }}</a>
|
<a href="#" {{action "prev"}} class="pa1 flex items-center justify-center br b--whitegrey {{unless this.hasPrevRecord "o-30"}}" data-test-import-prev>{{svg-jar "arrow-left" class="w3 h3 fill-middarkgrey" }}</a>
|
||||||
<a href="#" {{action "next"}} class="pa1 flex items-center justify-center {{unless this.hasNextRecord "o-30"}}" data-test-import-next>{{svg-jar "arrow-right" class="w3 h3 fill-middarkgrey" }}</a>
|
<a href="#" {{action "next"}} class="pa1 flex items-center justify-center {{unless this.hasNextRecord "o-30"}}" data-test-import-next>{{svg-jar "arrow-right" class="w3 h3 fill-middarkgrey" }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th><span class="f-small midgrey ttu fw5">Import as...</span></th>
|
<th><span class="f-small midgrey ttu fw5">Import as</span></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{{else}}
|
{{else}}
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>No data</span></td>
|
<td colspan="3" class="gh-member-import-nodata"><span>No data found in the uploaded CSV.</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -46,7 +46,6 @@
|
|||||||
<div class="gh-loading-content">
|
<div class="gh-loading-content">
|
||||||
<div class="gh-loading-spinner"></div>
|
<div class="gh-loading-spinner"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="description midgrey">Validating...</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -54,14 +53,12 @@
|
|||||||
{{#if this.customizing}}
|
{{#if this.customizing}}
|
||||||
<GhFormGroup>
|
<GhFormGroup>
|
||||||
{{#if this.config.enableDeveloperExperiments}}
|
{{#if this.config.enableDeveloperExperiments}}
|
||||||
<h4 class="fw6 f8 dib mb1">Mapping</h4>
|
|
||||||
<div class="gh-members-import-scrollarea">
|
<div class="gh-members-import-scrollarea">
|
||||||
<GhMembersImportTable
|
<GhMembersImportTable
|
||||||
@importData={{this.fileData}}
|
@importData={{this.fileData}}
|
||||||
@mapping={{this.mapping}}
|
@mapping={{this.mapping}}
|
||||||
@updateMapping={{action "updateMapping"}}/>
|
@updateMapping={{action "updateMapping"}}/>
|
||||||
</div>
|
</div>
|
||||||
<p>Match the fields in your uploaded file to Ghost members.</p>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="bg-whitegrey-l2 ba b--whitegrey br3">
|
<div class="bg-whitegrey-l2 ba b--whitegrey br3">
|
||||||
<div class="flex flex-column items-center justify-center gh-members-import-file">
|
<div class="flex flex-column items-center justify-center gh-members-import-file">
|
||||||
@ -72,9 +69,8 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="mt4">
|
<div class="mt4">
|
||||||
<label for="label-input"><span class="fw6 f8 dib mb1">Labels</span></label>
|
<label for="label-input"><span class="fw6 f8 dib mb1">Label these members</span></label>
|
||||||
<GhMemberLabelInput @member={{this.labels}} @triggerId="label-input" />
|
<GhMemberLabelInput @member={{this.labels}} @triggerId="label-input" />
|
||||||
<p>Will be applied to all newly imported members</p>
|
|
||||||
</div>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -461,7 +461,7 @@ textarea.gh-member-details-textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gh-members-import-spinner .gh-loading-content {
|
.gh-members-import-spinner .gh-loading-content {
|
||||||
padding-bottom: 40px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-members-import-spinner .description {
|
.gh-members-import-spinner .description {
|
||||||
@ -708,6 +708,14 @@ p.gh-members-import-errordetail:first-of-type {
|
|||||||
color: var(--midlightgrey);
|
color: var(--midlightgrey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-member-import-nodata span {
|
||||||
|
display: flex;
|
||||||
|
min-height: 144px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: var(--midgrey);
|
||||||
|
}
|
||||||
|
|
||||||
/* Fixing Firefox's select padding */
|
/* Fixing Firefox's select padding */
|
||||||
@-moz-document url-prefix() {
|
@-moz-document url-prefix() {
|
||||||
.gh-import-member-select select {
|
.gh-import-member-select select {
|
||||||
|
@ -65,7 +65,7 @@ describe('Integration: Component: modal-import-members-test', function () {
|
|||||||
await fileUpload('input[type="file"]', ['membersfile'], {name: 'test.csv'});
|
await fileUpload('input[type="file"]', ['membersfile'], {name: 'test.csv'});
|
||||||
|
|
||||||
expect(find('label').textContent.trim(), 'labels label')
|
expect(find('label').textContent.trim(), 'labels label')
|
||||||
.to.equal('Labels');
|
.to.equal('Label these members');
|
||||||
expect(find('.gh-btn-green').textContent).to.match(/Import/g);
|
expect(find('.gh-btn-green').textContent).to.match(/Import/g);
|
||||||
|
|
||||||
await click('.gh-btn-green');
|
await click('.gh-btn-green');
|
||||||
|
Loading…
Reference in New Issue
Block a user