Skip to content

Commit 480babf

Browse files
committed
Merge branch 'develop' into feat/635-replace-file-btn-in-dataset-page
2 parents 9905cf9 + e426a7d commit 480babf

File tree

109 files changed

+1970
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+1970
-537
lines changed

package-lock.json

Lines changed: 4 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@dnd-kit/sortable": "8.0.0",
1818
"@dnd-kit/utilities": "3.2.2",
1919
"@faker-js/faker": "7.6.0",
20-
"@iqss/dataverse-client-javascript": "2.0.0-alpha.31",
20+
"@iqss/dataverse-client-javascript": "2.0.0-alpha.35",
2121
"@iqss/dataverse-design-system": "*",
2222
"@istanbuljs/nyc-config-typescript": "1.0.2",
2323
"@tanstack/react-table": "8.9.2",
@@ -46,7 +46,6 @@
4646
"react-loader-spinner": "5.3.4",
4747
"react-markdown": "8.0.7",
4848
"react-router-dom": "6.23.1",
49-
"react-slot-counter": "3.3.0",
5049
"react-toastify": "11.0.2",
5150
"react-topbar-progress-indicator": "4.1.1",
5251
"sass": "1.58.1",

public/locales/en/dataset.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,30 @@
216216
"forwardUrl": "URL where this dataset can be accessed after deaccessioning:",
217217
"cancelButton": "Cancel",
218218
"deaccessionButton": "Deaccession"
219+
},
220+
"metrics": {
221+
"title": "Dataset Metrics",
222+
"tip": {
223+
"default": "Aggregated metrics for this dataset.",
224+
"makeDataCount": "Metrics collected using Make Data Count standards."
225+
},
226+
"makeDataCount": {
227+
"title": "Make Data Count (MDC) Metrics",
228+
"since": "since"
229+
},
230+
"downloads": {
231+
"count": {
232+
"default_zero": "{{count}} Downloads",
233+
"default_one": "{{count}} Download",
234+
"default_other": "{{count}} Downloads",
235+
"preMDC_zero": "{{count}} Downloads pre-MDC",
236+
"preMDC_one": "{{count}} Download pre-MDC",
237+
"preMDC_other": "{{count}} Downloads pre-MDC"
238+
},
239+
"defaultTip": "Total aggregated downloads of files in this dataset.",
240+
"preMakeDataCountTip": "Downloads prior to enabling MDC. Counts do not have the same filtering and detail as MDC metrics.",
241+
"makeDataCountTip": "Each file downloaded is counted as 1, and added to the total download count."
242+
},
243+
"defaultGetDownloadCountError": "Something went wrong while getting the dataset download count. Try again later."
219244
}
220245
}

public/locales/en/file.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,16 @@
7979
"restrictAccess": "Restrict Access",
8080
"restrictionInfoP1": "Restricting limits access to published files. People who want to use the restricted files can request access by default. ",
8181
"restrictionInfoP2": "If you disable request access, you must add information about access to the Terms of Access field.",
82-
"restrictionInfoP3": "Learn about restricting files and dataset access in the ",
83-
"userGuide": "User Guide",
82+
"restrictionInfoP3": "Learn about restricting files and dataset access in the <a>User Guide</a>.",
8483
"termsOfAccess": "Terms of Access for Restricted Files",
8584
"enableAccessRequest": "Enable access request",
8685
"saveChanges": "Save Changes",
8786
"cancelChanges": "Cancel Changes",
8887
"messagePublishedDataset": "Files will not be changed from previously published versions of the dataset.",
8988
"message": "The file will be unrestricted.",
9089
"defaultFileRestrictError": "Something went wrong restricting the file. Try again later.",
91-
"defaultFileUnrestrictError": "Something went wrong unrestricting the file. Try again later."
90+
"defaultFileUnrestrictError": "Something went wrong unrestricting the file. Try again later.",
91+
"requestAccessTooltipText": "If checked, users can request access to the restricted files in this dataset.",
92+
"termsOfAccessTooltipTex": "information on how and if users can access restricted files in this dataset."
9293
}
9394
}

public/locales/en/homepage.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
{
22
"browseCollections": "Browse All Collections",
33
"metrics": {
4-
"title": "Activity",
4+
"title": "Dataverse in Numbers",
55
"datasets": "Datasets",
66
"files": "Files",
77
"total": "Total",
8+
"lastMonth": "Last Month",
89
"past30days": "Past 30 Days",
910
"downloaded": "Downloaded",
1011
"download30days": "Downloads (30 days)",
12+
"downloadedLastMonth": "Downloaded (last month)",
1113
"deposited": "Deposited",
1214
"deposited30days": "Deposited (30 days)",
13-
"harvested": "Harvested"
15+
"depositedLastMonth": "Deposited (last month)",
16+
"harvested": "Harvested",
17+
"harvestedLastMonth": "Harvested (last month)",
18+
"poweredByDataverseHub": "Powered by the <a>Dataverse Hub</a>"
1419
},
1520
"usage": {
1621
"datasets": {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"statusNumberNotFound": "404",
3+
"message": "We can't find the <1>{{type}}</1> you're looking for.\n Sorry for the inconvenience.",
4+
"backToHomepage": "Back to {{brandName}} Homepage"
5+
}

public/locales/en/shared.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"collection": "Collection",
3+
"dataset": "Dataset",
4+
"file": "File",
5+
"page": "Page",
26
"asterisksIndicateRequiredFields": "Asterisks indicate required fields",
37
"remove": "Remove",
48
"add": "Add",
@@ -21,10 +25,6 @@
2125
"heading": "Page Number Not Found",
2226
"message": "The page number you requested does not exist. Please try a different page number."
2327
},
24-
"pageNotFound": {
25-
"heading": "Page Not Found",
26-
"message": "The page you are looking for was not found."
27-
},
2828
"pagination": {
2929
"results_one": "1 {{item}}",
3030
"results_other": "{{start}} to {{end}} of {{formattedCount}} {{item}}s",

src/dataset/domain/models/Dataset.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ export enum DatasetNonNumericVersionSearchParam {
219219
DRAFT = 'DRAFT'
220220
}
221221

222+
export enum DatasetVersionState {
223+
DRAFT = 'DRAFT',
224+
RELEASED = 'RELEASED',
225+
ARCHIVED = 'ARCHIVED',
226+
DEACCESSIONED = 'DEACCESSIONED'
227+
}
228+
222229
export class DatasetVersionNumber {
223230
constructor(public readonly majorNumber?: number, public readonly minorNumber?: number) {}
224231

@@ -401,6 +408,7 @@ export class Dataset {
401408
constructor(
402409
public readonly persistentId: string,
403410
public readonly version: DatasetVersion,
411+
public readonly internalVersionNumber: number,
404412
public readonly alerts: Alert[],
405413
public readonly summaryFields: DatasetMetadataBlock[],
406414
public readonly termsOfUse: DatasetTermsOfUse,
@@ -496,6 +504,7 @@ export class Dataset {
496504
constructor(
497505
public readonly persistentId: string,
498506
public readonly version: DatasetVersion,
507+
public readonly internalVersionNumber: number,
499508
public readonly summaryFields: DatasetMetadataBlock[],
500509
public readonly termsOfUse: DatasetTermsOfUse,
501510
public readonly metadataBlocks: DatasetMetadataBlocks,
@@ -565,6 +574,7 @@ export class Dataset {
565574
return new Dataset(
566575
this.persistentId,
567576
this.version,
577+
this.internalVersionNumber,
568578
this.alerts,
569579
this.summaryFields,
570580
this.termsOfUse,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export interface DatasetDownloadCount {
2+
id: number | string
3+
downloadCount: number
4+
MDCStartDate?: string
5+
}

src/dataset/domain/models/DatasetVersionDiff.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { DatasetVersionState } from './Dataset'
2+
13
export interface DatasetVersionDiff {
24
oldVersion: VersionSummary
35
newVersion: VersionSummary
@@ -24,7 +26,9 @@ export interface FileSummary {
2426
export interface VersionSummary {
2527
versionNumber: string
2628
lastUpdatedDate: string
29+
versionState: DatasetVersionState
2730
}
31+
2832
export interface MetadataBlockDiff {
2933
blockName: string
3034
changed: FieldDiff[]

0 commit comments

Comments
 (0)