Skip to content

Commit

Permalink
Merge pull request #126 from NYPL/main
Browse files Browse the repository at this point in the history
Merge main into qa
  • Loading branch information
dgcohen authored Mar 5, 2024
2 parents 5c01d88 + d72c938 commit 98e79f9
Show file tree
Hide file tree
Showing 52 changed files with 12,042 additions and 10,435 deletions.
26 changes: 25 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [1.0.0] 2024-03-04

## Release Notes

- This version represents the first public release of the Research Catalog refactor.
- This first public release will include the new Homepage and Advanced Search page, the Header and Footer, as well as the Feedback form (SCC-3614).
- Other pages will fall back to their currently live DFE versions.

### My Account

- My Account Header (SCC-3924)
- Holds API routes (SCC-3953)
- Settings API routes (SCC-3954)
- Checkout renewal API route (SCC-3951)

### Added

- Feedback Box (SCC-3614)
- Tests for existing API routes (SCC-3967)

### Removals

- Removal of client-side item sorting (SCC-3984)

## [0.1.1] 2024-02-14

### Added

Expand Down
68 changes: 68 additions & 0 deletions __test__/fixtures/accountFixtures.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
export const mockPatron = {
notificationPreference: "Email",
name: "NONNA, STREGA",
barcode: "23333121538324",
expirationDate: "2025-03-28",
primaryEmail: "[email protected]",
emails: ["[email protected]", "[email protected]"],
primaryPhone: "123-456-7890",
phones: [
{
number: "123-456-7890",
type: "t",
},
],
homeLibrary: "Stavros Niarchos Foundation Library (SNFL)",
id: 2772226,
}
export const mockCheckouts = [
{
id: "65060571",
callNumber: "972.93 D",
barcode: "33333432264691",
dueDate: "2024-02-09T09:00:00Z",
patron: "2772226",
title: "The Dominican Republic reader : history, culture, politics",
isResearch: false,
bibId: "21678146",
isNyplOwned: true,
},
{
id: "65060570",
callNumber: "Spa FIC ALVAREZ",
barcode: "33333455520789",
dueDate: "2024-02-09T09:00:00Z",
patron: "2772226",
title: "En el tiempo de las mariposas",
isResearch: false,
bibId: "17699134",
isNyplOwned: true,
},
]

export const mockHolds = [
{
patron: "2772226",
id: "48636910",
pickupByDate: "2024-02-15T09:00:00Z",
canFreeze: false,
frozen: false,
status: "Requested item ready for pickup.",
pickupLocation: "SNFL (formerly Mid-Manhattan)",
title:
"Quit like a woman : the radical choice to not drink in a culture obsessed with alcohol",
isResearch: false,
bibId: "22002760",
isNyplOwned: false,
},
]
export const mockFines = {
total: 14.99,
entries: [
{
detail: "Replacement",
amount: 14.99,
date: "2023-06-15T17:34:46Z",
},
],
}
Loading

0 comments on commit 98e79f9

Please sign in to comment.