From 74b3e47c19801b7774c752ffe7d570b3e6079088 Mon Sep 17 00:00:00 2001 From: austinchima Date: Wed, 1 Jul 2026 23:05:40 -0300 Subject: [PATCH 1/2] feat: update dependencies and enhance accessibility in UI components - Added Microsoft.OpenApi package to Precept.Api project. - Updated font links in index.html to include Fira Code. - Added @types/react to package.json and package-lock.json for improved TypeScript support. - Enhanced accessibility by adding aria-labels and titles to various input elements across AppTracker, Settings, and StoryBank pages. - Updated button elements to include type attributes for better semantics and accessibility. These changes improve the overall functionality and user experience of the application. --- .hintrc | 5 +++++ Precept.Api/Precept.Api.csproj | 1 + Precept.Web/index.html | 2 +- Precept.Web/package-lock.json | 18 +++++++++++++++ Precept.Web/package.json | 1 + .../src/components/ui/8bit-not-found1.tsx | 2 +- Precept.Web/src/index.css | 4 ++-- Precept.Web/src/pages/AppTracker.tsx | 17 ++++++++------ Precept.Web/src/pages/Dashboard.tsx | 1 + Precept.Web/src/pages/HomePage.tsx | 6 +++-- Precept.Web/src/pages/Landing.tsx | 22 +++++++++++++------ Precept.Web/src/pages/Settings.tsx | 10 ++++----- Precept.Web/src/pages/StoryBank.tsx | 16 +++++++------- 13 files changed, 72 insertions(+), 33 deletions(-) create mode 100644 .hintrc diff --git a/.hintrc b/.hintrc new file mode 100644 index 0000000..aa8de6b --- /dev/null +++ b/.hintrc @@ -0,0 +1,5 @@ +{ + "extends": [ + "development" + ] +} \ No newline at end of file diff --git a/Precept.Api/Precept.Api.csproj b/Precept.Api/Precept.Api.csproj index e700cdf..e4d2419 100644 --- a/Precept.Api/Precept.Api.csproj +++ b/Precept.Api/Precept.Api.csproj @@ -12,6 +12,7 @@ + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Precept.Web/index.html b/Precept.Web/index.html index 88fca2c..240e9b6 100644 --- a/Precept.Web/index.html +++ b/Precept.Web/index.html @@ -6,7 +6,7 @@ - + diff --git a/Precept.Web/package-lock.json b/Precept.Web/package-lock.json index 059bed2..c17dcf0 100644 --- a/Precept.Web/package-lock.json +++ b/Precept.Web/package-lock.json @@ -35,6 +35,7 @@ "@types/canvas-confetti": "^1.9.0", "@types/express": "^4.17.21", "@types/node": "^22.14.0", + "@types/react": "^19.2.17", "autoprefixer": "^10.4.21", "esbuild": "^0.25.0", "tailwindcss": "^4.1.14", @@ -1672,6 +1673,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/react": { + "version": "19.2.17", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz", + "integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, "node_modules/@types/send": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", @@ -2002,6 +2013,13 @@ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", "license": "MIT" }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "devOptional": true, + "license": "MIT" + }, "node_modules/d3-array": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", diff --git a/Precept.Web/package.json b/Precept.Web/package.json index 8cd2694..2aa9ea6 100644 --- a/Precept.Web/package.json +++ b/Precept.Web/package.json @@ -38,6 +38,7 @@ "@types/canvas-confetti": "^1.9.0", "@types/express": "^4.17.21", "@types/node": "^22.14.0", + "@types/react": "^19.2.17", "autoprefixer": "^10.4.21", "esbuild": "^0.25.0", "tailwindcss": "^4.1.14", diff --git a/Precept.Web/src/components/ui/8bit-not-found1.tsx b/Precept.Web/src/components/ui/8bit-not-found1.tsx index 5673bc8..47cca35 100644 --- a/Precept.Web/src/components/ui/8bit-not-found1.tsx +++ b/Precept.Web/src/components/ui/8bit-not-found1.tsx @@ -139,7 +139,7 @@ export default function NotFound1({ ( @@ -329,13 +329,13 @@ export default function StoryBank() {
- setCategory(e.target.value as StoryCategory)} style={inputStyle}> {CATEGORIES.slice(1).map((c) => )}
- setSourceProject(e.target.value)} placeholder="e.g. Apollo" style={inputStyle} /> + setSourceProject(e.target.value)} placeholder="e.g. Apollo" style={inputStyle} />
@@ -361,7 +361,7 @@ export default function StoryBank() {
-