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

229 - Basic home page with the list of datasets #237

Merged
merged 31 commits into from
Dec 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
41d2280
feat(Home): add list of datasets
MellyGray Nov 16, 2023
08a0af3
feat(Home): connect the datasets list to the use case
MellyGray Nov 16, 2023
a3002a0
feat(Home): refactor datasets list
MellyGray Nov 16, 2023
c402cee
refactor: get dataset title
MellyGray Nov 17, 2023
5998ca6
feat: add pagination to Datasets List
MellyGray Nov 20, 2023
3b19577
fix: pagination tests
MellyGray Nov 20, 2023
aeeb3d8
fix: replace Hello Dataverse title by Root
MellyGray Nov 20, 2023
e57508b
fix: remove page size selector from the DatasetList
MellyGray Nov 20, 2023
74638f9
feat(Home): add model DatasetPreview
MellyGray Nov 20, 2023
1de733d
fix(Home): replace anchors by react router links
MellyGray Nov 21, 2023
5484fef
feat(DatasetsList): add skeleton while loading
MellyGray Nov 21, 2023
4985949
feat(DatasetsList): add no datasets message
MellyGray Nov 21, 2023
025da7c
fix: add Router to stories
MellyGray Nov 21, 2023
54a11cd
fix: e2e test failing
MellyGray Nov 22, 2023
bf0760b
Merge branch 'develop' of https://github.com/IQSS/dataverse-frontend …
MellyGray Nov 29, 2023
108228b
feat(DatasetCard): add DatasetCard component
MellyGray Nov 30, 2023
3f8f4c9
feat(DatasetCard): add dataset labels
MellyGray Nov 30, 2023
8144a50
feat(DatasetCard): add thumbnail
MellyGray Nov 30, 2023
2fe350f
feat(DatasetCard): add date
MellyGray Dec 1, 2023
18286d4
feat(DatasetCard): add citation
MellyGray Dec 1, 2023
5e3b47c
feat(DatasetCard): add description
MellyGray Dec 1, 2023
ad4f308
feat(DatasetCard): adjust skeleton
MellyGray Dec 1, 2023
e910803
feat(DatasetCard): refactor component
MellyGray Dec 4, 2023
aaeb023
fix: contrast-ratio deaccessioned background
MellyGray Dec 4, 2023
ad04623
Merge branch 'develop' of https://github.com/IQSS/dataverse-frontend …
MellyGray Dec 11, 2023
d847894
refactor: move CitationDescription to shared folder
MellyGray Dec 14, 2023
6da0f0a
feat(DatasetPreviewMother): mock randomly deaccessioned of draft data…
MellyGray Dec 14, 2023
efbe448
fix: remove tooltip from dataset card citation
MellyGray Dec 14, 2023
44ac492
feat(DatasetCard): add dataset icon at the top right
MellyGray Dec 14, 2023
ff238ce
Merge pull request #248 from IQSS/feature/230-add-dataset-info-to-hom…
GPortas Dec 19, 2023
99e16d3
Merge branch 'develop' of https://github.com/IQSS/dataverse-frontend …
MellyGray Dec 19, 2023
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
Prev Previous commit
Next Next commit
Merge branch 'develop' of https://github.com/IQSS/dataverse-frontend
…into feature/229-basic-home-page-with-the-list-of-datasets
MellyGray committed Dec 11, 2023
commit ad046230c5acb618abfd6a3316624cc95609c416
2 changes: 1 addition & 1 deletion src/shared/domain/models/PaginationInfo.ts
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ export class PaginationInfo<T extends PaginationInfo<T>> {

withPageSize(pageSize: number): T {
const getNewPage = (oldPageSize: number, newPageSize: number) => {
const newPage = Math.ceil((this.page * oldPageSize) / newPageSize)
const newPage = Math.ceil(((this.page - 1) * oldPageSize + 1) / newPageSize)
return newPage > 0 ? newPage : 1
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Original file line number Diff line number Diff line change
@@ -147,7 +147,7 @@ describe('Dataset JSDataverse Repository', () => {
0
)
const expectedPublicationDate = getCurrentDateInYYYYMMDDFormat()
expect(dataset.getTitle()).to.deep.equal(datasetExpected.title)
expect(dataset.title).to.deep.equal(datasetExpected.title)
expect(dataset.version).to.deep.equal(newVersion)
expect(dataset.metadataBlocks[0].fields.publicationDate).to.deep.equal(
expectedPublicationDate
@@ -263,7 +263,7 @@ describe('Dataset JSDataverse Repository', () => {
}
const datasetExpected = datasetData(dataset.persistentId, dataset.version.id)

expect(dataset.getTitle()).to.deep.equal(datasetExpected.title)
expect(dataset.title).to.deep.equal(datasetExpected.title)
})
})
it('gets the dataset by persistentId when is locked', async () => {
You are viewing a condensed version of this merge commit. You can view the full changes here.