diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 073df732e..b274a32cb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,6 +6,7 @@ repos:
rev: v4.4.0
hooks:
- id: trailing-whitespace
+ exclude: ^__snapshots__/
- id: end-of-file-fixer
- id: check-yaml
diff --git a/ui/.eslintrc.json b/ui/.eslintrc.json
index c0299d8ad..4e6fae071 100644
--- a/ui/.eslintrc.json
+++ b/ui/.eslintrc.json
@@ -1,15 +1,5 @@
{
- "root": true,
- "extends": ["next/core-web-vitals"],
- "overrides": [
- {
- "files": ["*.js"],
- "parser": "espree",
- "parserOptions": {
- "ecmaVersion": 2020
- }
- }
- ],
+ "extends": ["next", "next/core-web-vitals", "prettier"],
"rules": {
"react/display-name": "off",
"react-hooks/exhaustive-deps": "off"
diff --git a/ui/README.md b/ui/README.md
index ff41fa7be..475a08566 100644
--- a/ui/README.md
+++ b/ui/README.md
@@ -1,4 +1,10 @@
-This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
+# SCOAP# Repository
+
+www.repo.scoap3.org
+
+SCOAP3 is a one-of-its-kind partnership of over three-thousand libraries, key funding agencies and research centers in 43 countries and 3 intergovernmental organizations. Working with leading publishers, SCOAP3 has converted key journals in the field of high-energy physics to open access at no cost for authors. SCOAP3 centrally pays publishers for costs involved in providing their services, publishers, in turn, reduce subscription fees to all their customers, who can redirect these funds to contribute to SCOAP3. Each country contributes in a way commensurate to its scientific output in the field. In addition, existing open access journals are also centrally supported, removing any existing financial barrier for authors.
+
+SCOAP3 journals are open for any scientist to publish without any financial barriers. Copyright stays with authors, and a permissive CC-BY license allows text- and data-mining. SCOAP3 addresses open access mandates at no burden for authors. All articles appear in the SCOAP3 repository for further distribution, as well as being open access on publishers’ websites.
## Getting Started
@@ -15,7 +21,3 @@ bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-
-You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
-
-This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
diff --git a/ui/jest.config.mjs b/ui/jest.config.mjs
new file mode 100644
index 000000000..0448fb0c4
--- /dev/null
+++ b/ui/jest.config.mjs
@@ -0,0 +1,13 @@
+import nextJest from 'next/jest.js'
+
+const createJestConfig = nextJest({
+ dir: './',
+})
+
+/** @type {import('jest').Config} */
+const config = {
+ setupFilesAfterEnv: ['./jest.setup.ts'],
+ testEnvironment: 'jest-environment-jsdom',
+}
+
+export default createJestConfig(config)
diff --git a/ui/jest.setup.ts b/ui/jest.setup.ts
new file mode 100644
index 000000000..09a5a99b2
--- /dev/null
+++ b/ui/jest.setup.ts
@@ -0,0 +1,26 @@
+import '@testing-library/jest-dom';
+
+Object.defineProperty(window, 'matchMedia', {
+ writable: true,
+ value: jest.fn().mockImplementation(query => ({
+ matches: false,
+ media: query,
+ onchange: null,
+ addListener: jest.fn(), // Deprecated
+ removeListener: jest.fn(), // Deprecated
+ addEventListener: jest.fn(),
+ removeEventListener: jest.fn(),
+ dispatchEvent: jest.fn(),
+ })),
+});
+
+jest.mock("next/navigation", () => {
+ return {
+ useRouter: jest.fn(() => ({
+ push: jest.fn(),
+ })),
+ useSearchParams: jest.fn(() => ({
+ get: jest.fn(),
+ })),
+ };
+});
diff --git a/ui/package.json b/ui/package.json
index 8183b5d81..5c0dfef9b 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -2,14 +2,17 @@
"name": "ui",
"version": "0.1.0",
"private": true,
+ "license": "GPL-2.0",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "next lint"
+ "lint": "next lint && pre-commit run --all-files",
+ "test": "yarn lint && jest && yarn build"
},
"dependencies": {
"@ant-design/cssinjs": "^1.17.2",
+ "@testing-library/user-event": "^14.5.1",
"antd": "^5.10.1",
"better-react-mathjax": "^2.0.3",
"lodash.isequal": "^4.5.0",
@@ -22,12 +25,18 @@
"react-vis": "^1.12.1"
},
"devDependencies": {
+ "@testing-library/jest-dom": "^6.1.4",
+ "@testing-library/react": "^14.1.2",
+ "@types/jest": "^29.5.10",
"@types/lodash.isequal": "^4.5.8",
"@types/node": "^20",
"@types/react-html-parser": "^2.0.4",
"autoprefixer": "^10",
"eslint": "^8",
"eslint-config-next": "13.5.5",
+ "eslint-config-prettier": "^9.0.0",
+ "jest": "^29.7.0",
+ "jest-environment-jsdom": "^29.7.0",
"postcss": "^8",
"tailwindcss": "^3",
"typescript": "^5"
diff --git a/ui/src/__tests__/404.test.tsx b/ui/src/__tests__/404.test.tsx
new file mode 100644
index 000000000..97e1491f4
--- /dev/null
+++ b/ui/src/__tests__/404.test.tsx
@@ -0,0 +1,12 @@
+import { render, screen } from "@testing-library/react";
+
+import PageNotFound from "@/pages/404";
+
+describe("PageNotFound", () => {
+ it("renders 404 page", () => {
+ const { container } = render(
+ The page you are looking for could not be found. +
++ Search + + 4321 + Open Access + + articles: +
+ ++ + Pure three-dimensional gravity in anti-de Sitter space can be formulated as an SL(2 , R ) × SL(2 , R ) Chern-Simons theory, and the latter can be reduced to a WZW theory at the boundary. In this paper we show that AdS 3 gravity with free boundary conditions is described by a string at the boundary whose target spacetime is also AdS 3 . While boundary conditions in the standard construction of Coussaert, Henneaux, and van Driel are enforced through constraints on the WZW currents, we find that free boundary conditions are partially enforced through the string Virasoro constraints. + +
++ + Journal of High Energy Physics + + + (2015) + + + Pages 171-189 + +
++ Found + 10 + results. +
++ + The popular freeze-out paradigm for Dark Matter (DM) production, relies on DM-baryon couplings of the order of the weak interactions. However, different search strategies for DM have failed to provide a conclusive evidence of such (non-gravitational) interactions, while greatly reducing the parameter space of many representative models. This motivates the study of alternative mechanisms for DM genesis. In the freeze-in framework, the DM is slowly populated from the thermal bath while never reaching equilibrium. In this work, we analyse in detail the possibility of producing a frozen-in DM via a mediator particle which acts as a portal. We give analytical estimates of different freeze-in regimes and support them with full numerical analyses, taking into account the proper distribution functions of bath particles. Finally, we constrain the parameter space of generic models by requiring agreement with DM relic abundance observations. + +
++ + Journal of Cosmology and Astroparticle Physics + + + (2014) + + + Issue 1 + + ( + + Page 3 + + ) by + + Institute of Physics Publishing/SISSA + +
++ + DOI + : + + + 10.1088/1475-7516/2014/01/003 + + + + + arXiv + : + + + 1309.7348 + + + +
++ + We investigate all single-field, slow-roll inflationary models whose slow-roll parameters scale as 1/N in the limit of a large number of e-folds N. We proof that all such models belong to two universality classes, characterised by a single parameter. One class contains small field models like hilltop inflation, while the other class consists of large field models like chaotic inflation. We give the leading expressions for the spectral index and tensor-to-scalar ratio r, which are universal for each class, plus subleading corrections for a number of models. This predicts r either to be unobservably small, r < 0.01, or close to the present observational limit, r ≈ 0.07. + +
++ + Journal of Cosmology and Astroparticle Physics + + + (2014) + + + Issue 1 + + ( + + Page 7 + + ) by + + Institute of Physics Publishing/SISSA + +
++ + DOI + : + + + 10.1088/1475-7516/2014/01/007 + + + + + arXiv + : + + + 1309.1285 + + + +
++ + We reconstruct F(R) gravity models with exponential and power-law forms of the scale factor in which bounce cosmology can be realized. We explore the stability of the reconstructed models with analyzing the perturbations from the background solutions. Furthermore, we study an F(R) gravity model with a sum of exponentials form of the scale factor, where the bounce in the early universe as well as the late-time cosmic acceleration can be realized in a unified manner. As a result, we build a second order polynomial type model in terms of R and show that it could be stable. Moreover, when the scale factor is expressed by an exponential form, we derive F(R) gravity models of a polynomial type in case of the non-zero spatial curvature and that of a generic type in that of the zero spatial curvature. In addition, for an exponential form of the scale factor, an F(R) bigravity model realizing the bouncing behavior is reconstructed. It is found that in both the physical and reference metrics the bouncing phenomenon can occur, although in general the contraction and expansion rates are different each other. + +
++ + Journal of Cosmology and Astroparticle Physics + + + (2014) + + + Issue 1 + + ( + + Page 8 + + ) by + + Institute of Physics Publishing/SISSA + +
++ + DOI + : + + + 10.1088/1475-7516/2014/01/008 + + + + + arXiv + : + + + 1309.3748 + + + +
++ + This paper addresses a long standing problem - to identify the chiral ring and moduli space (i.e. as an algebraic variety) on the Coulomb branch of an $ \\mathcal{N} $ = 4 superconformal field theory in 2+1 dimensions. Previous techniques involved a computation of the metric on the moduli space and/or mirror symmetry. These methods are limited to sufficiently small moduli spaces, with enough symmetry, or to Higgs branches of sufficiently small gauge theories. We introduce a simple formula for the Hilbert series of the Coulomb branch, which applies to any good or ugly three-dimensional $ \\mathcal{N} $ = 4 gauge theory. The formula counts monopole operators which are dressed by classical operators, the Casimir invariants of the residual gauge group that is left unbroken by the magnetic flux. We apply our formula to several classes of gauge theories. Along the way we make various tests of mirror symmetry, successfully comparing the Hilbert series of the Coulomb branch with the Hilbert series of the Higgs branch of the mirror theory. + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 5 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)005 + + + + + arXiv + : + + + 1309.2657 + + + +
++ + We compute the $ \\mathcal{O} $ (1) contribution to holographic c − a for IIB supergravity on AdS 5 × S 5 / $ {{\\mathbb{Z}}_n} $ and on AdS 5 × T 1,1 / $ {{\\mathbb{Z}}_n} $ . In both cases, we find agreement with the dual field theory results, thus providing 1 /N 2 checks of AdS/CFT with reduced supersymmetry. Since the holographic computation involves a sum over shortened multiplets in the KK tower, we provide some details on the S 5 and T 1,1 spectra in a form that is convenient when considering their $ {{\\mathbb{Z}}_n} $ orbifolds. The computation for the even $ {{\\mathbb{Z}}_n} $ orbifolds of S 5 includes a sum over the multiplets in the twisted sector that is essential for obtaining agreement with the dual field theory. + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 2 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)002 + + + + + arXiv + : + + + 1310.2611 + + + +
++ + In the $ \\mathcal{N} $ = 1 supersymmetric coset minimal model based on $ \\left( {B_N^{(1)}\\oplus D_N^{(1) },\\ D_N^{(1) }} \\right) $ at level ( k , 1) studied recently, the standard $ \\mathcal{N} $ = 1 super stress tensor of spins $ \\left( {\\frac{3}{2},2} \\right) $ is reviewed. By considering the stress tensor in the coset $ \\left( {B_N^{(1) },\\ D_N^{(1) }} \\right) $ at level k , the higher spin-2 ′ Casimir current was obtained previously. By acting the above spin- $ \\frac{2}{3} $ current on the higher spin-2 ′ Casimir current, its superpartner, the higher spin- $ \\frac{5}{2} $ current, can be generated and combined as the first higher spin supercurrent with spins $ \\left( {{2^{\\prime }},\\frac{5}{2}} \\right) $ . By calculating the operator product expansions (OPE) between the higher spin supercurrent and itself, the next higher spin supercurrent can be generated with spins $ \\left( {\\frac{7}{2},4} \\right) $ . Moreover, the other higher spin supercurrent with spins $ \\left( {{4^{\\prime }},\\frac{9}{2}} \\right) $ can be generated by calculating the OPE between the first higher spin supercurrent with spins $ \\left( {{2^{\\prime }},\\frac{5}{2}} \\right) $ and the second higher spin supercurrent with spins $ \\left( {\\frac{7}{2},\\ 4} \\right) $ . Finally, the higher spin supercurrent, $ \\left( {\\frac{11 }{2},6} \\right) $ , can be extracted from the right hand side of OPE between the higher spin supercurrents, $ \\left( {{2^{\\prime }},\\frac{5}{2}} \\right) $ and $ \\left( {{4^{\\prime }},\\frac{9}{2}} \\right) $ . + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 7 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)007 + + + + + arXiv + : + + + 1310.6185 + + + +
++ + We compute the exact vacuum expectation value of 1/2 BPS circular Wilson loops of $ \\mathcal{N} $ = 4 U(N) super Yang-Mills in arbitrary irreducible representations. By localization arguments, the computation reduces to evaluating certain integrals in a Gaussian matrix model, which we do using the method of orthogonal polynomials. Our results are particularly simple for Wilson loops in antisymmetric representations; in this case, we observe that the final answers admit an expansion where the coefficients are positive integers, and can be written in terms of sums over skew Young diagrams. As an application of our results, we use them to discuss the exact Bremsstrahlung functions associated to the corresponding heavy probes. + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 20 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)020 + + + + + arXiv + : + + + 1311.2058 + + + +
++ + We comment on aspects of discrete anomaly conditions focussing particularly on R symmetries. We review the Green-Schwarz cancellation of discrete anomalies, providing a heuristic explanation why, in the heterotic string, only the “model-independent dilaton” transforms non-linearly under discrete symmetries; this argument suggests that, in other theories, multiple fields might play a role in anomaly cancellations, further weakening any anomaly constraints at low energies. We provide examples in open string theories of non-universal discrete anomalies at low energies. We then consider the fact that R symmetries are necessarily broken at low energies. We exhibit dynamical models, in which fields charged under the Standard Model gauge group (for example, a doublet and a triplet) gain roughly equal masses, but where the doublet and the triplet possess different discrete charges and the low-energy anomaly conditions fail. + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 11 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)011 + + + + + arXiv + : + + + 1212.4371 + + + +
++ + A generalized Hitchin equation was proposed as the BPS equation for a large class of four dimensional $ \\mathcal{N} $ = 1 theories engineered using M5 branes. In this paper, we show how to write down the spectral curve for the moduli space of generalized Hitchin equations, and extract interesting $ \\mathcal{N} $ = 1 dynamics out of it, such as deformed modui space, chiral ring relation, SUSY breaking, etc. Holomorphy plays a crucial role in our construction. + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 1 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)001 + + + + + arXiv + : + + + 1310.0467 + + + +
++ + Following recent experimental developments, in this study we re-evaluate if the interplay of high- and low-energy lepton flavour violating observables remains a viable probe to test the high-scale type-I supersymmetric seesaw. Our analysis shows that fully constrained supersymmetric scenarios no longer allow to explore this interplay, since recent LHC data precludes the possibility of having sizeable slepton mass differences for a slepton spectrum sufficiently light to be produced, and in association to BR( μ → e γ) within experimental reach. However, relaxing the strict universality of supersymmetric soft-breaking terms and fully exploring heavy neutrino dynamics, still allows to have slepton mass splittings $ \\mathcal{O}\\left( {\\mathrm{few}\\;\\%} \\right) $ , for slepton masses accessible at the LHC, with associated μ → e γ rates within future sensitivity. For these scenarios, we illustrate how the correlation between high- and low-energy lepton flavour violating observables allows to probe the high-scale supersymmetric seesaw. + +
++ + Journal of High Energy Physics + + + (2014) + + ( + + Page 15 + + ) by + + Springer/SISSA + +
++ + DOI + : + + + 10.1007/JHEP01(2014)015 + + + + + arXiv + : + + + 1309.7951 + + + +
++
{JSON.stringify(article, undefined, 2)}diff --git a/ui/src/components/detail/__tests__/DetailPageInfo.test.tsx b/ui/src/components/detail/__tests__/DetailPageInfo.test.tsx new file mode 100644 index 000000000..2afc9c171 --- /dev/null +++ b/ui/src/components/detail/__tests__/DetailPageInfo.test.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import { render, screen } from "@testing-library/react"; + +import DetailPageInfo from "../DetailPageInfo"; +import { record } from '@/mocks/record'; + +describe("DetailPageInfo", () => { + it("renders detail page info correctly", () => { + const { container } = render(
+ + Journal of High Energy Physics + + + (2015) + + + Pages 171-189 + +
+Please try again later or{" "} - router.push('/')}> + router.push('/')}> go to home page
diff --git a/ui/src/pages/index.tsx b/ui/src/pages/index.tsx index 69807b9c9..cc9255098 100644 --- a/ui/src/pages/index.tsx +++ b/ui/src/pages/index.tsx @@ -11,16 +11,12 @@ import { authToken, getApiUrl, getSearchUrl } from "@/utils/utils"; interface HomePageProps { count: number; facets: Facets; - query: Params; + activeTabKey?: string; } -const HomePage: React.FC