Skip to content

Commit b9a43ca

Browse files
committed
Add AI Assistance Disclosure comments across multiple files and add AI usage logs
1 parent bc6e5cd commit b9a43ca

File tree

16 files changed

+428
-0
lines changed

16 files changed

+428
-0
lines changed

ai/usage-log-template.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Entry 1
2+
3+
### Date/Time:
4+
YYYY-MM-DD HH:MM
5+
6+
### Tool:
7+
(e.g., ChatGPT, GitHub Copilot)
8+
9+
### Prompt/Command:
10+
(copy the main prompt or describe the request)
11+
12+
### Output Summary:
13+
(short summary of what the AI produced)
14+
15+
### Action Taken:
16+
- [ ] Accepted as-is
17+
- [ ] Modified
18+
- [ ] Rejected
19+
20+
### Author Notes:
21+
(what you changed, why, and how you verified correctness)
22+
23+
---

ai/usage-log.md

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
# AI Usage Log Template
2+
3+
4+
## Entry 1
5+
6+
### Date/Time:
7+
2025-11-13 18:00
8+
9+
### Tool:
10+
ChatGPT
11+
12+
### Prompt/Command:
13+
"You are helping to create original programming questions for a coding platform. For each topic and difficulty level, generate a unique question that includes:
14+
15+
Title: A clear, descriptive name
16+
17+
Topic: One of: Arrays, LinkedList, Binary Tree, Graphs, Dynamic Programming, Trees, Greedy, Two Pointers, Sorting, Recursion, Strings
18+
19+
Difficulty: Easy, Medium, or Hard
20+
21+
Description: A clear explanation of the problem in markdown format (no \n escapes, use actual line breaks). Include examples.
22+
23+
Test Cases: In JSON format with "input" and "output" for each case
24+
25+
Guidelines:
26+
27+
Do NOT copy or adapt problems from LeetCode, Kattis, or other known platforms
28+
29+
Ensure the problem is well-scoped and appropriate for the difficulty level
30+
31+
Use clear and simple input/output formats
32+
33+
Avoid using images or external references
34+
35+
Make descriptions readable with proper markdown formatting (headers, lists, code blocks)
36+
37+
Example Output Format:
38+
39+
Title: Count Even Numbers
40+
Topic: Arrays
41+
Difficulty: Easy
42+
Description: Given an array of integers, return the count of even numbers.
43+
44+
Example
45+
Input: [1, 2, 3, 4]
46+
Output: 2
47+
48+
Test Cases:
49+
50+
json
51+
{
52+
"cases": [
53+
{
54+
"input": "[1, 2, 3, 4]",
55+
"output": "2"
56+
},
57+
{
58+
"input": "[0, -2, 5]",
59+
"output": "2"
60+
}
61+
]
62+
}
63+
64+
Please start with LinkedList for easy, medium and hard, all 3."
65+
66+
Subsequent prompts are just something like: "Proceed with "Trees", "Greedy""
67+
68+
### Output Summary:
69+
Questions generated with the prompt descriptions. E.g:
70+
"Sure! Here are three original LinkedList problems (Easy, Medium, and Hard) written in the requested format:..."
71+
72+
73+
### Action Taken:
74+
- [ ] Accepted as-is
75+
- [X] Modified
76+
- [ ] Rejected
77+
78+
### Author Notes:
79+
Questions are reformatted and added to the question database via the admin panel.
80+
Full chat link: https://chatgpt.com/share/69161d34-ad98-8002-916b-c69a9edfdbca
81+
82+
---
83+
84+
## Entry 2
85+
86+
### Date/Time:
87+
2025-09 to 2025-10
88+
89+
### Tool:
90+
GitHub Copilot
91+
92+
### Prompt/Command:
93+
Code completion and suggestions while implementing authentication system, including:
94+
- JWT token generation and verification
95+
- Password hashing and validation
96+
- User registration and login endpoints
97+
- Email verification flow
98+
- Password reset functionality
99+
100+
### Output Summary:
101+
Copilot provided code completion suggestions for authentication controller methods, middleware functions, and route handlers. Suggested boilerplate code for JWT operations and API calls.
102+
103+
### Action Taken:
104+
- [ ] Accepted as-is
105+
- [X] Modified
106+
- [ ] Rejected
107+
108+
### Author Notes:
109+
I designed the authentication architecture and security requirements. Used Copilot for code completion only. Reviewed all code for security vulnerabilities, implemented password strength requirements (12+ chars, uppercase, lowercase, numbers, special chars), designed error handling strategy, and made all integration decisions.
110+
111+
---
112+
113+
## Entry 3
114+
115+
### Date/Time:
116+
2025-09 to 2025-11
117+
118+
### Tool:
119+
GitHub Copilot
120+
121+
### Prompt/Command:
122+
React component generation for authentication UI:
123+
- Login form with validation
124+
- Signup form with password confirmation
125+
- Forgot password modal
126+
- Resend verification modal
127+
- User profile dropdown
128+
129+
### Output Summary:
130+
Copilot provided code completion for React component implementations. Suggested boilerplate code for hooks, form handling, and animation configurations.
131+
132+
### Action Taken:
133+
- [ ] Accepted as-is
134+
- [X] Modified
135+
- [ ] Rejected
136+
137+
### Author Notes:
138+
I designed the UI/UX requirements and component structure. Used Copilot for code completion only. Implemented validation logic, designed service integration, and made all accessibility and responsive design decisions.
139+
140+
---
141+
142+
## Entry 4
143+
144+
### Date/Time:
145+
2025-09 to 2025-11
146+
147+
### Tool:
148+
GitHub Copilot
149+
150+
### Prompt/Command:
151+
Frontend service layer implementation:
152+
- Authentication service with JWT token management
153+
- User profile service with axios interceptors
154+
- Token refresh logic with request queueing
155+
- Form validation utilities
156+
157+
### Output Summary:
158+
Copilot provided code completion for service class methods and axios setup. Suggested boilerplate code for API calls and standard interceptor patterns.
159+
160+
### Action Taken:
161+
- [ ] Accepted as-is
162+
- [X] Modified
163+
- [ ] Rejected
164+
165+
### Author Notes:
166+
I designed the token management strategy and service architecture. Used Copilot for code completion only. Implemented race condition prevention, designed cleanup procedures, customized error handling, and verified the complete token refresh flow.
167+
168+
---
169+
170+
## Entry 5
171+
172+
### Date/Time:
173+
2025-09 to 2025-11
174+
175+
### Tool:
176+
GitHub Copilot
177+
178+
### Prompt/Command:
179+
User profile management implementation:
180+
- Get user profile by username
181+
- Update profile (username, password)
182+
- Delete account with password confirmation
183+
- Difficulty tracking (easy/medium/hard question counts)
184+
185+
### Output Summary:
186+
Copilot provided code completion for controller method implementations. Suggested boilerplate code for database operations and request handling.
187+
188+
### Action Taken:
189+
- [ ] Accepted as-is
190+
- [X] Modified
191+
- [ ] Rejected
192+
193+
### Author Notes:
194+
I designed the profile management features and security model. Used Copilot for code completion only. Implemented owner verification logic, designed the security requirements (password confirmation), created difficulty_counts data structure, and handled all edge cases.
195+
196+
---
197+
198+
## Entry 6
199+
200+
### Date/Time:
201+
2025-09 to 2025-11
202+
203+
### Tool:
204+
GitHub Copilot
205+
206+
### Prompt/Command:
207+
Middleware implementation for authentication and authorization:
208+
- JWT token verification middleware
209+
- Admin role checking middleware
210+
- Request user context injection
211+
212+
### Output Summary:
213+
Copilot provided code completion for Express middleware functions. Suggested boilerplate code for JWT verification and standard error responses.
214+
215+
### Action Taken:
216+
- [ ] Accepted as-is
217+
- [X] Modified
218+
- [ ] Rejected
219+
220+
### Author Notes:
221+
I designed the authentication and authorization strategy. Used Copilot for code completion only. Validated JWT logic, implemented error response format, designed middleware chain structure, and verified security requirements are met.
222+
223+
---
224+
225+
## Entry 7
226+
227+
### Date/Time:
228+
2025-09 to 2025-11
229+
230+
### Tool:
231+
GitHub Copilot
232+
233+
### Prompt/Command:
234+
User interface styling and animations:
235+
- CSS for authentication pages
236+
- Framer Motion animations for forms and modals
237+
- Responsive design patterns
238+
- Loading states and transitions
239+
240+
### Output Summary:
241+
Copilot provided code completion for CSS and animation configurations. Suggested boilerplate styling patterns and standard Framer Motion setups.
242+
243+
### Action Taken:
244+
- [ ] Accepted as-is
245+
- [X] Modified
246+
- [ ] Rejected
247+
248+
### Author Notes:
249+
Ensured that the UI generated matches with the product design and theme.
250+
251+
---
252+
253+
## Entry 8
254+
255+
### Date/Time:
256+
2025-09 to 2025-11
257+
258+
### Tool:
259+
GitHub Copilot
260+
261+
### Prompt/Command:
262+
Form validation logic implementation:
263+
- Email format validation
264+
- Username format validation (alphanumeric, length)
265+
- Password strength validation (12+ chars, complexity)
266+
- Form error message generation
267+
268+
### Output Summary:
269+
Copilot provided code completion for validation functions. Suggested boilerplate regex patterns and standard validation logic.
270+
271+
### Action Taken:
272+
- [ ] Accepted as-is
273+
- [X] Modified
274+
- [ ] Rejected
275+
276+
### Author Notes:
277+
I defined the validation requirements and security policies. Used Copilot for code completion only. Implemented password strength requirements, customized error messages, designed real-time feedback approach, and verified validation meets security standards.
278+
279+
---
280+
281+
## Entry 9
282+
283+
### Date/Time:
284+
2025-09 to 2025-11
285+
286+
### Tool:
287+
GitHub Copilot
288+
289+
### Prompt/Command:
290+
Express route definitions and API structure:
291+
- RESTful route organization for auth endpoints
292+
- User profile routes with username parameters
293+
- Difficulty tracking routes
294+
- Token management routes
295+
296+
### Output Summary:
297+
Copilot provided code completion for Express router setup. Suggested boilerplate code for route definitions and standard HTTP method patterns.
298+
299+
### Action Taken:
300+
- [ ] Accepted as-is
301+
- [X] Modified
302+
- [ ] Rejected
303+
304+
### Author Notes:
305+
I designed the API structure and endpoint organization. Used Copilot for code completion only. Organized routes by feature domain, implemented validation rules, verified mappings, and determined authentication requirements for each endpoint.
306+
307+
---

feature-login-signup-ui/frontend/src/components/ForgotPasswordModal.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* AI Assistance Disclosure:
3+
* Tool: GitHub Copilot, date: Sept-Oct 2025
4+
* Scope: Used extensively for modal structure, animations, and form handling
5+
* Author review: I designed the UX flow and reviewed all generated code
6+
*/
7+
18
import React, { useState } from 'react';
29
import { motion, AnimatePresence } from 'framer-motion';
310
import authService from '../services/authService';

feature-login-signup-ui/frontend/src/components/LoginForm.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* AI Assistance Disclosure:
3+
* Tool: GitHub Copilot, date: Sept-Oct 2025
4+
* Scope: Used extensively for form implementation and animations
5+
* Author review: I designed the auth flow and reviewed all code
6+
*/
7+
18
import React, { useState } from 'react';
29
import { motion } from 'framer-motion';
310
import authService from '../services/authService';

feature-login-signup-ui/frontend/src/components/ResendVerificationModal.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* AI Assistance Disclosure:
3+
* Tool: GitHub Copilot, date: Sept-Oct 2025
4+
* Scope: Used extensively for modal implementation and form handling
5+
* Author review: I designed the verification flow and reviewed all code
6+
*/
7+
18
import React, { useState } from 'react';
29
import { motion, AnimatePresence } from 'framer-motion';
310
import authService from '../services/authService';

feature-login-signup-ui/frontend/src/components/SignupForm.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* AI Assistance Disclosure:
3+
* Tool: GitHub Copilot, date: Sept-Oct 2025
4+
* Scope: Used for form structure and animations
5+
* Author review: I designed the signup flow and security requirements and reviewed all generated code
6+
*/
7+
18
import React, { useState } from 'react';
29
import { motion } from 'framer-motion';
310
import authService from '../services/authService';

feature-login-signup-ui/frontend/src/components/UserProfileDropdown.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* AI Assistance Disclosure:
3+
* Tool: GitHub Copilot, date: Sept-Oct 2025
4+
* Scope: Used for dropdown logic and event handling
5+
* Author review: I reviewed all functionality and generated code
6+
*/
7+
18
import React, { useState, useRef, useEffect } from 'react';
29
import { useNavigate } from 'react-router-dom';
310
import { motion, AnimatePresence } from 'framer-motion';

feature-login-signup-ui/frontend/src/pages/UserProfile.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* AI Assistance Disclosure:
3+
* Tool: GitHub Copilot, date: Sept-Oct 2025
4+
* Scope: Used extensively for profile page, tabbed interface, and form handling
5+
* Author review: I designed the profile features and data model and reviewed all generated code
6+
*/
7+
18
import React, { useState, useEffect } from 'react';
29
import { useParams, useNavigate } from 'react-router-dom';
310
import authService from '../services/authService';

0 commit comments

Comments
 (0)