Skip to content

Commit 840d55d

Browse files
authored
feat: display which entities will be imported (#849)
* feat: display which entities will be imported * fix: update copy * chore: remove info button from details card * fix: lists refer to wrong headlines
1 parent db66136 commit 840d55d

File tree

2 files changed

+58
-10
lines changed

2 files changed

+58
-10
lines changed

src/components/Pages/ManageWiki/Cards/Details.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
<v-card>
33
<v-card-title>
44
Details
5-
<v-spacer></v-spacer>
6-
<v-tooltip right>
7-
<template v-slot:activator="{ on }">
8-
<v-icon v-on="on">mdi-information-outline</v-icon>
9-
</template>
10-
<span>During Alpha if you would like to change these details please contact us.</span>
11-
</v-tooltip>
125
</v-card-title>
136
<v-card-text>
147
<strong>Please check your emails for your log in details.</strong><br/>

src/components/Pages/ManageWiki/Cards/EntityImport.vue

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,62 @@
11
<template>
22
<v-form ref="form" @submit="doSubmit">
3+
<v-overlay
4+
:value="showOverlay"
5+
>
6+
<v-dialog width="500" v-model="showOverlay">
7+
<v-card>
8+
<v-card-title>
9+
Entities for import
10+
</v-card-title>
11+
<v-card-text>
12+
<h4 class="mb-0 mt-4">Properties</h4>
13+
<ul>
14+
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P25">Mother</a></li>
15+
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P22">Father</a></li>
16+
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P40">Child</a></li>
17+
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P18">Image</a></li>
18+
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P31">Instance of</a></li>
19+
<li><a target="_blank" rel="noopener nofollow" href="https://www.wikidata.org/wiki/Property:P279">Subclass of</a></li>
20+
</ul>
21+
<h4 class="mb-0 mt-4">Items</h4>
22+
<ul>
23+
<li><a href="https://www.wikidata.org/wiki/Q1" target="_blank" rel="noopener nofollow">Universe</a></li>
24+
<li><a href="https://www.wikidata.org/wiki/Q2" target="_blank" rel="noopener nofollow">World</a></li>
25+
<li><a href="https://www.wikidata.org/wiki/Q5" target="_blank" rel="noopener nofollow">Human</a></li>
26+
<li><a href="https://www.wikidata.org/wiki/Q64" target="_blank" rel="noopener nofollow">Berlin</a></li>
27+
<li><a href="https://www.wikidata.org/wiki/Q42" target="_blank" rel="noopener nofollow">Douglas Adams</a></li>
28+
<li><a href="https://www.wikidata.org/wiki/Q3107329" target="_blank" rel="noopener nofollow">The Hitchhiker's Guide to the Galaxy</a></li>
29+
</ul>
30+
</v-card-text>
31+
<v-card-actions>
32+
<v-spacer />
33+
<v-btn
34+
color="primary"
35+
text
36+
@click="showOverlay = false"
37+
>
38+
Close
39+
</v-btn>
40+
</v-card-actions>
41+
</v-card>
42+
</v-dialog>
43+
</v-overlay>
344
<v-card>
4-
<v-card-title>Import base set of entities to your Wikibase instance</v-card-title>
45+
<v-card-title>
46+
Import base entities
47+
<v-spacer />
48+
<v-btn plain right @click="showOverlay = true">
49+
<v-icon>
50+
mdi-information-outline
51+
</v-icon>
52+
More info
53+
</v-btn>
54+
</v-card-title>
555
<v-card-text>
6-
You can import a preselected subset of items and properties to help you get started with your Wikibase instance.
56+
You can import a curated subset of items and properties to help you get started with your Wikibase instance.
757
</v-card-text>
858
<v-card-actions>
9-
<v-btn :disabled="hasPending || hasSuccess" type="submit">Copy entities</v-btn>
59+
<v-btn :disabled="hasPending || hasSuccess" type="submit">Import entities</v-btn>
1060
</v-card-actions>
1161
<v-card-text v-if="hasError || (!hasPending && !hasSuccess && hasFailed)">
1262
<span class="font-italic">Your entity import failed. Please try again.</span>
@@ -37,6 +87,11 @@ export default {
3787
props: [
3888
'wikiId'
3989
],
90+
data () {
91+
return {
92+
showOverlay: false
93+
}
94+
},
4095
computed: {
4196
hasError () {
4297
return this.$store.getters.currentWikiEntityImportError !== null

0 commit comments

Comments
 (0)