Skip to content

feat: UI UX Update to react #219

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

Draft
wants to merge 145 commits into
base: dev
Choose a base branch
from
Draft

feat: UI UX Update to react #219

wants to merge 145 commits into from

Conversation

Fr4nc3
Copy link
Collaborator

@Fr4nc3 Fr4nc3 commented May 19, 2025

Purpose

  • New React frontend environment

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code
npm run test
# or manually test by navigating to the tuition assistance form and submitting completed grades

What to Check

Verify that the following are valid:

  • Completed grades can be submitted without error.
  • The form behaves as expected across different browsers.
  • No regressions in other parts of the tuition assistance workflow.

@Fr4nc3 Fr4nc3 requested a review from marktayl1 May 19, 2025 13:13
@Fr4nc3 Fr4nc3 changed the base branch from dev to main May 19, 2025 13:14
* @returns Promise with the response containing session and plan IDs
*/
static async submitInputTask(description: string): Promise<InputTaskResponse> {
const sessionId = this.generateSessionId();

Check failure

Code scanning / CodeQL

Insecure randomness High

This uses a cryptographically insecure random number generated at
Math.random()
in a security context.

Copilot Autofix

AI 6 days ago

To fix the issue, replace the use of Math.random() with a cryptographically secure random number generator. For JavaScript in the browser, crypto.getRandomValues can be used to generate secure random values. This ensures that the session ID is unpredictable and resistant to attacks.

The generateSessionId() method should be updated to use crypto.getRandomValues to generate the random component of the session ID. Specifically:

  1. Import the crypto module if necessary (for Node.js environments).
  2. Replace Math.random() with crypto.getRandomValues(new Uint32Array(1))[0] to generate a secure random number.
  3. Ensure the random number is formatted appropriately (e.g., within the desired range).
Suggested changeset 1
src/frontend_react/src/services/TaskService.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/src/frontend_react/src/services/TaskService.tsx b/src/frontend_react/src/services/TaskService.tsx
--- a/src/frontend_react/src/services/TaskService.tsx
+++ b/src/frontend_react/src/services/TaskService.tsx
@@ -1,2 +1,3 @@
 import { PlanWithSteps, PlanStatus } from '../models';
+import { crypto } from 'crypto';
 import { Task } from '../models/taskList';
@@ -87,3 +88,3 @@
         const timestamp = new Date().getTime();
-        const random = Math.floor(Math.random() * 10000);
+        const random = crypto.getRandomValues(new Uint32Array(1))[0] % 10000;
         return `sid_${timestamp}_${random}`;
EOF
@@ -1,2 +1,3 @@
import { PlanWithSteps, PlanStatus } from '../models';
import { crypto } from 'crypto';
import { Task } from '../models/taskList';
@@ -87,3 +88,3 @@
const timestamp = new Date().getTime();
const random = Math.floor(Math.random() * 10000);
const random = crypto.getRandomValues(new Uint32Array(1))[0] % 10000;
return `sid_${timestamp}_${random}`;
Copilot is powered by AI and may make mistakes. Always verify output.
Copilot

This comment was marked as outdated.

Copilot

This comment was marked as outdated.

Eunsoo Lee and others added 19 commits June 16, 2025 17:23
- Disabled input field option
- Chat icon in PlanPage
- AI-generated type fixed
- Fluent foreground color on user message light mode
- Scroll to bottom on load and new message
- Task / Subtask visual haul
- Carats in PanelLeft fixed
- Shortened task titles
- Removed Content panel title icons
- Sample data... visual haul
- Progress ring is now a Coral component
- Favicon added
- Left Nav accessibility issue resolved
- "New Task" focuses input
- Potential fix for Approve and Reject button wrapping
- Guess to Guest typo resolved
- Progress ring background color fix
- Aligned progress list tracker to Figma designs
@Fr4nc3 Fr4nc3 changed the title Feature/UI ux refresh feat: UI UX Update to react Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants