Skip to content

Commit ef8cdcf

Browse files
committed
resolve merge conflicts
2 parents 91162fb + e0ddce8 commit ef8cdcf

53 files changed

Lines changed: 876 additions & 358 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
1515
- Edit Terms Integration.
1616
- With the addition of the new runtime configuration approach, we now support dynamic configuration for languages. If more than one language is configured, the Language Switcher will be shown in the header to allow users to change the language.
1717
- Added Notifications tab in Account Page
18+
- Added runtime configuration options for homepage branding and support link.
1819
- Added an environment variable to docker-compose-dev.yml to hide the OIDC client used in the SPA from the JSF frontend: DATAVERSE_AUTH_OIDC_HIDDEN_JSF: 1
1920

2021
### Changed
@@ -25,14 +26,16 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
2526
- Changed the way we were handling DATE type metadata field validation to better match the backend validation and give users better error messages. For example, for an input like “foo AD”, we now show “Production Date is not a valid date. The AD year must be numeric.“. For an input like “99999 AD”, we now show “Production Date is not a valid date. The AD year cant be higher than 9999.“. For an input like “[-9999?], we now show “Production Date is not a valid date. The year in brackets cannot be negative.“, etc.
2627
- The SPA now fetches the runtime configuration from `config.js` on each load, allowing configurations without rebuilding the app. We don't use `.env` variables at build time anymore.
2728
- Renamed dataset template fetch/create use cases and DTOs to `getTemplatesByCollectionId` and `CreateTemplateDTO` for API alignment, and added new `getTemplate` and `deleteTemplate` use cases for retrieving a single template by ID and deleting templates.
29+
- Added disclaimer text and custom popup text to Publish Dataset modal for better communication of the implications of publishing a dataset. The text can be configured through the runtime configuration.
30+
- Dataset page Terms tab title now depends on permissions: users with dataset update permission see `Terms and Guestbook`, and read-only users see `Terms`.
2831

2932
### Fixed
3033

3134
- Add word-break to items text to prevent layout issues when long descriptions without spaces are entered. (#839)
3235
- Show toast notification when API token is copied to clipboard.
3336
- Dataset versions: (1) file changes should be `Access: Restricted` instead of `isResticted: true/false`; (2) logic of View Detail button. (#879)
3437
- File versions: (1) logic of linking to a file version; (2)If file not included, show text information "File not included in this version.". (#879)
35-
- Notifications unread count now refreshes immediately (without waiting for polling) after notifications are read and after dataset/collection create or dataset publish actions that generate notifications.
38+
- Dataset page publish flow now avoids rendering duplicate tab sets by making tabs skeleton and tabs content mutually exclusive.
3639

3740
### Removed
3841

cypress.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ export default defineConfig({
4646
{ code: 'es', name: 'Español' }
4747
],
4848
defaultLanguage: 'en',
49+
branding: {
50+
dataverseName: 'Dataverse'
51+
},
52+
homepage: {
53+
supportUrl: 'https://support.dataverse.harvard.edu/'
54+
},
55+
footer: {
56+
copyrightHolder: 'The President & Fellows of Harvard College',
57+
privacyPolicyUrl: 'https://support.dataverse.harvard.edu/harvard-dataverse-privacy-policy'
58+
},
4959
codeCoverage: {
5060
exclude: ['tests/**/*.*', '**/ErrorPage.tsx']
5161
}

package-lock.json

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

public/config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ window.__APP_CONFIG__ = {
2020
{ code: 'es', name: 'Español' }
2121
],
2222
// Default language code from the list above
23-
defaultLanguage: 'en'
23+
defaultLanguage: 'en',
24+
// Optional branding values for homepage/footer text
25+
branding: {
26+
// Used in homepage strings such as "{{dataverseName}} is a repository..."
27+
dataverseName: 'Harvard Dataverse'
28+
},
29+
homepage: {
30+
supportUrl: 'https://support.dataverse.harvard.edu/'
31+
},
32+
footer: {
33+
copyrightHolder: 'The President & Fellows of Harvard College',
34+
privacyPolicyUrl: 'https://support.dataverse.harvard.edu/harvard-dataverse-privacy-policy'
35+
}
2436
}

public/locales/en/dataset.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"filesTabTitle": "Files",
33
"metadataTabTitle": "Metadata",
44
"termsTabTitle": "Terms and Guestbook",
5+
"termsTabTitleReadOnly": "Terms",
56
"anonymizedFieldValue": "withheld",
67
"customTerms": {
78
"title": "Custom Dataset Terms",
@@ -69,7 +70,8 @@
6970
},
7071
"deleteDatasetModal": {
7172
"title": "Delete Dataset",
72-
"message": "Are you sure you want to delete this dataset? This action cannot be undone.",
73+
"messageDraft": "Are you sure you want to delete this draft version? Files will be reverted to the most recently published version. You cannot undelete this draft.",
74+
"messageDataset": "Are you sure you want to delete this dataset? You cannot undelete this dataset.",
7375
"defaultDatasetDeleteError": "An error occurred while deleting the dataset."
7476
}
7577
},
@@ -142,7 +144,8 @@
142144
"heading": "Unpublished Dataset Private URL",
143145
"alertText": "This unpublished dataset is being privately shared."
144146
},
145-
"datasetDeletedSuccess": "The dataset has been deleted."
147+
"datasetDeletedSuccessDraft": "The dataset draft has been deleted.",
148+
"datasetDeletedSuccessDataset": "The dataset has been deleted."
146149
},
147150
"termsTab": {
148151
"editTermsButton": "Edit Terms and Guestbook",

public/locales/en/footer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"copyright": "Copyright © {{year}}, The President & Fellows of Harvard College | ",
2+
"copyright": "Copyright © {{year}}, {{copyrightHolder}}",
33
"privacyPolicy": "Privacy Policy",
44
"poweredBy": "Powered by"
55
}

public/locales/en/homepage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"usage": {
2121
"datasets": {
2222
"title": "Deposit and share your data. Get academic credit.",
23-
"content": "Harvard Dataverse is a repository for research data. Deposit data and code here.",
23+
"content": "{{dataverseName}} is a repository for research data. Deposit data and code here.",
2424
"text_button": "Add a dataset"
2525
},
2626
"collections": {
@@ -29,7 +29,7 @@
2929
"text_button": "Add a collection"
3030
},
3131
"general": {
32-
"title": "Publishing your data is easy on Harvard Dataverse!",
32+
"title": "Publishing your data is easy on {{dataverseName}}!",
3333
"content": "Learn about getting started creating your own dataverse repository here.",
3434
"text_button": "Getting started"
3535
}

public/locales/es/dataset.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"filesTabTitle": "Ficheros",
33
"metadataTabTitle": "Metadatos",
4-
"termsTabTitle": "Términos",
4+
"termsTabTitle": "Términos y libros de visitas",
5+
"termsTabTitleReadOnly": "Términos",
56
"anonymizedFieldValue": "retirado",
67
"customTerms": {
78
"title": "Términos personalizados del dataset",
@@ -68,7 +69,8 @@
6869
},
6970
"deleteDatasetModal": {
7071
"title": "Eliminar dataset",
71-
"message": "¿Seguro que quieres eliminar este dataset? Esta acción no se puede deshacer.",
72+
"messageDraft": "¿Seguro que quieres eliminar esta versión borrador? No podrás recuperar este borrador.",
73+
"messageDataset": "¿Seguro que quieres eliminar este dataset? Esta acción no se puede deshacer.",
7274
"defaultDatasetDeleteError": "Ocurrió un error al eliminar el dataset."
7375
}
7476
},
@@ -137,7 +139,8 @@
137139
"heading": "URL privada de dataset no publicado",
138140
"alertText": "Este dataset no publicado se está compartiendo de forma privada."
139141
},
140-
"datasetDeletedSuccess": "El dataset ha sido eliminado."
142+
"datasetDeletedSuccessDraft": "El borrador del dataset ha sido eliminado.",
143+
"datasetDeletedSuccessDataset": "El dataset ha sido eliminado."
141144
},
142145
"termsTab": {
143146
"editTermsButton": "Editar requisitos de términos",

public/locales/es/footer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"copyright": "Copyright © {{year}}, El Presidente y Miembros de la Universidad de Harvard | ",
2+
"copyright": "Copyright © {{year}}, {{copyrightHolder}}",
33
"privacyPolicy": "Política de privacidad",
44
"poweredBy": "Desarrollado por"
55
}

public/locales/es/homepage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"usage": {
2121
"datasets": {
2222
"title": "Deposita y comparte tus datos. Obtén crédito académico.",
23-
"content": "Harvard Dataverse es un repositorio para datos de investigación. Deposita aquí tus datos y código.",
23+
"content": "{{dataverseName}} es un repositorio para datos de investigación. Deposita aquí tus datos y código.",
2424
"text_button": "Agregar un dataset"
2525
},
2626
"collections": {
@@ -29,7 +29,7 @@
2929
"text_button": "Agregar una colección"
3030
},
3131
"general": {
32-
"title": "¡Publicar tus datos es fácil en Harvard Dataverse!",
32+
"title": "¡Publicar tus datos es fácil en {{dataverseName}}!",
3333
"content": "Aprende cómo comenzar a crear tu propio repositorio Dataverse aquí.",
3434
"text_button": "Comenzar"
3535
}

0 commit comments

Comments
 (0)