-
-
- This template is designed to quickly bootstrap projects.
-
-
-
- Start by customizing the components and backend to fit your needs.
- Happy coding!
-
-
-
- {loading ? "Loading" : <>{message}>}
-
-
-
-
-
-
-
- window.electron.openExternal(
- "https://github.com/ShakeefAhmedRakin/electron-react-ts-tailwind-shadcn-fastapi-template"
- )
- }
- >
- See Guide
+
+
+ Snapshot
-
+ >
+ ),
+ results: (
+ <>
+
+
+ Export PDF
+
+
+
+ Recalculate
+
+ >
+ ),
+ versions: (
+
+
+ Filter
+
+ ),
+ compare: null,
+ library: null,
+ io: null,
+ settings: null,
+ };
-
+ return (
+
+
+
{
+ setCurrentFormulaId(id);
+ setView("formula");
+ }}
+ onNewFormula={newFormula}
+ />
+
+
+
+ {view === "formula" && (
+
+ setView("results")}
+ />
+
+ )}
+ {view === "results" &&
}
+ {view === "versions" &&
}
+ {view === "compare" && (
+
+
+
+ )}
+ {view === "library" &&
}
+ {view === "io" &&
}
+ {view === "settings" &&
}
+
+
+
);
-};
-
-export default HomePage;
+}
From d88cc41503a1ef0cc34b2a773212c4f650e17e93 Mon Sep 17 00:00:00 2001
From: aushe02 <32467683+aushe02@users.noreply.github.com>
Date: Sat, 23 May 2026 09:52:35 -0400
Subject: [PATCH 2/4] UI setup
---
eslint.config.js | 4 ++--
src/pages/home/home.test.tsx | 2 +-
src/pages/home/home.tsx | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/eslint.config.js b/eslint.config.js
index 2a3a1ff..c431674 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -13,7 +13,7 @@ export default [
files: ['src/**/*.{ts,tsx}', 'electron/preload.ts'],
languageOptions: {
parser: tsParser,
- ecmaVersion: 2020,
+ ecmaVersion: 2022,
globals: sanitize(globals.browser),
},
plugins: {
@@ -35,7 +35,7 @@ export default [
files: ['electron/main.ts', 'vite.config.ts', 'vitest.config.ts'],
languageOptions: {
parser: tsParser,
- ecmaVersion: 2020,
+ ecmaVersion: 2022,
globals: sanitize(globals.node),
},
plugins: {
diff --git a/src/pages/home/home.test.tsx b/src/pages/home/home.test.tsx
index 1418af8..f80d3f0 100644
--- a/src/pages/home/home.test.tsx
+++ b/src/pages/home/home.test.tsx
@@ -1,5 +1,5 @@
import { describe, it, expect } from "vitest";
-import { render, screen } from "@testing-library/react";
+import { render } from "@testing-library/react";
import OpenPepApp from "./home";
describe("OpenPepApp", () => {
diff --git a/src/pages/home/home.tsx b/src/pages/home/home.tsx
index 17b4ada..cd012fd 100644
--- a/src/pages/home/home.tsx
+++ b/src/pages/home/home.tsx
@@ -1,4 +1,4 @@
-import { useState, useEffect } from "react";
+import React, { useState, useEffect } from "react";
import "@aushe02/openpep-storybook/tokens.css";
import {
Sidebar,
From 99581bb11d6954cc5d8d07221656e1d278c4f180 Mon Sep 17 00:00:00 2001
From: aushe02 <32467683+aushe02@users.noreply.github.com>
Date: Sat, 23 May 2026 09:53:16 -0400
Subject: [PATCH 3/4] UI setup
---
eslint.config.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eslint.config.js b/eslint.config.js
index c431674..b414eb5 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -14,7 +14,7 @@ export default [
languageOptions: {
parser: tsParser,
ecmaVersion: 2022,
- globals: sanitize(globals.browser),
+ globals: { ...sanitize(globals.browser), structuredClone: 'readonly' },
},
plugins: {
'@typescript-eslint': tsPlugin,
From 112a6a1a46e14559307bf816b2d70fbef1b36225 Mon Sep 17 00:00:00 2001
From: aushe02 <32467683+aushe02@users.noreply.github.com>
Date: Sat, 23 May 2026 10:00:29 -0400
Subject: [PATCH 4/4] Update pipelines
---
.github/workflows/ci.yml | 14 --------------
vitest.config.ts | 12 +++++++++++-
2 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b9ed2ec..d9112ab 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,20 +7,6 @@ on:
branches: [main, develop]
jobs:
- squash-check:
- name: Squash Check
- runs-on: ubuntu-latest
- if: github.event_name == 'pull_request' && github.base_ref == 'develop'
- steps:
- - name: Require single commit
- run: |
- COUNT=${{ github.event.pull_request.commits }}
- if [ "$COUNT" -ne 1 ]; then
- echo "PRs to develop must be squashed into a single commit. Found $COUNT commits."
- exit 1
- fi
- echo "Squash check passed ($COUNT commit)."
-
lint:
name: Lint
runs-on: ubuntu-latest
diff --git a/vitest.config.ts b/vitest.config.ts
index fd3095e..90abe02 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -8,11 +8,21 @@ const __dirname = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
plugins: [react()],
resolve: {
- alias: { "@": path.resolve(__dirname, "src") },
+ alias: {
+ "@": path.resolve(__dirname, "src"),
+ react: path.resolve(__dirname, "node_modules/react"),
+ "react-dom": path.resolve(__dirname, "node_modules/react-dom"),
+ },
+ dedupe: ["react", "react-dom"],
},
test: {
environment: "jsdom",
setupFiles: ["./src/test-setup.ts"],
+ server: {
+ deps: {
+ inline: ["@aushe02/openpep-storybook"],
+ },
+ },
coverage: {
provider: "v8",
reporter: ["text", "lcov"],