From 82024f998f5f401c68c3699510e7f7fc7bbc8302 Mon Sep 17 00:00:00 2001
From: Mohamed Rizwan <mohamedrizwan399@gmail.com>
Date: Fri, 8 Aug 2025 02:39:47 +0530
Subject: [PATCH 1/2] #TRAPWLS-19 code optimization is done and bug fixed

---
 .../IssueCrud/IssueCreationPage.jsx             | 17 ++++++++---------
 src/homePage/Demo.jsx                           |  2 +-
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/IssueManagement/IssueCrud/IssueCreationPage.jsx b/src/IssueManagement/IssueCrud/IssueCreationPage.jsx
index 3c6352f..7690eac 100644
--- a/src/IssueManagement/IssueCrud/IssueCreationPage.jsx
+++ b/src/IssueManagement/IssueCrud/IssueCreationPage.jsx
@@ -100,6 +100,11 @@ export const IssueCreationPage = () => {
             }
 
             if (insertbool) {
+                const isIdAlreadyExists = issues?.find(issue => issue?.id === id);
+                if(isIdAlreadyExists !== undefined && isIdAlreadyExists?.id === id) {
+                    alert("ID is already Exists. Check your created issues list to edit or create new issue using different Id.")
+                    return;
+                }
                 setissues([...issues, issue]);
             } else {
                 const editable = JSON.parse(localStorage.getItem("issueData"));
@@ -140,14 +145,8 @@ export const IssueCreationPage = () => {
                     }<br></br><br></br>
 
                     End date:&emsp;&emsp;&emsp;
-                    <select id="selectend" onChange={(e)=>setEndDate(e.target.value)} value={enddate}>
-                        <option></option>
-                        <option>OCT 1</option>
-                        <option>OCT 2</option>
-                        <option>OCT 3</option>
-                        <option>OCT 3</option>
-                        <option>OCT 5</option>
-                    </select>
+                    <input id="selectend" type="date" onChange={(e)=>setEndDate(e.target.value)} value={enddate}/>
+
                     {errorenddate?
                         <label>Select End Date for this issue*</label>:""
                     }<br></br><br></br>
@@ -181,7 +180,7 @@ export const IssueCreationPage = () => {
                         <option></option>
                         <option>OPEN</option>
                         <option>INPROGRESS</option>
-                        <option>CLOSED</option>
+                        {!insertbool && <option>CLOSED</option>}
                     </select>
                     {errorstatus?
                         <label>Please select the status*</label>:""
diff --git a/src/homePage/Demo.jsx b/src/homePage/Demo.jsx
index 8e0adda..26bc2e1 100644
--- a/src/homePage/Demo.jsx
+++ b/src/homePage/Demo.jsx
@@ -31,7 +31,7 @@ class Demo extends React.Component{
             <div className="othertask-container">
                 <div className="instantChange-container">
                     Enter your Name: <input type="text" onChange={e => this.inputchange(e, "name")} />
-                    Enter your Age: <input type="number" onChange={e => this.inputchange(e, "age")} />
+                    Enter your Age: <input type="range" min="1" max="99" onChange={e => this.inputchange(e, "age")} />
 
                     <h1>Name: {name}<br/> Your Age: {age}</h1>
                 </div>

From 0f27d507e4efbc5c35cd8960c34df6fa4e59add0 Mon Sep 17 00:00:00 2001
From: Mohamed Rizwan <mohamedrizwan399@gmail.com>
Date: Fri, 8 Aug 2025 02:42:13 +0530
Subject: [PATCH 2/2] #TRAPWLS-19 versions upgraded

---
 package.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 4f378b9..70ba1f1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "javascript-crud-with-sampletasks",
-  "version": "1.0",
+  "version": "2.0.0",
   "homepage": "https://mohamedrizwan399.github.io/CRUDJavaScriptSampleProject",
   "private": true,
   "dependencies": {
@@ -11,7 +11,7 @@
     "axios": "^1.7.7",
     "cors": "^2.8.5",
     "firebase": "^11.0.1",
-    "gh-pages": "^6.2.0",
+    "gh-pages": "^6.3.0",
     "jest": "^27.5.1",
     "jwt-decode": "^3.1.2",
     "nodemon": "^3.1.7",
