Skip to content

Commit dda60f9

Browse files
chore: remove comments from codebase (CCExtractor#355)
* chore: remove comments from codebase * chore: remove unused workflow
1 parent 7c2e6a7 commit dda60f9

19 files changed

Lines changed: 6 additions & 100 deletions

File tree

.github/workflows/comment-jest-coverage.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

backend/controllers/complete_tasks.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ func BulkCompleteTaskHandler(w http.ResponseWriter, r *http.Request) {
5252

5353
logStore := models.GetLogStore()
5454

55-
// Create a *single* job for all UUIDs
5655
job := Job{
5756
Name: "Bulk Complete Tasks",
5857
Execute: func() error {

backend/controllers/controllers_test.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,19 @@ func Test_OAuthHandler(t *testing.T) {
5454

5555
func Test_OAuthCallbackHandler(t *testing.T) {
5656
app := setup()
57-
// This part of the test requires mocking the OAuth provider which can be complex. Simplified for demonstration.
5857
req, err := http.NewRequest("GET", "/auth/callback?code=testcode", nil)
5958
assert.NoError(t, err)
6059

6160
rr := httptest.NewRecorder()
6261
handler := http.HandlerFunc(app.OAuthCallbackHandler)
6362
handler.ServeHTTP(rr, req)
6463

65-
// Since actual OAuth flow can't be tested in unit test, we are focusing on ensuring no panic
6664
assert.NotEqual(t, http.StatusInternalServerError, rr.Code)
6765
}
6866

6967
func Test_UserInfoHandler(t *testing.T) {
7068
app := setup()
7169

72-
// Create a request object to pass to the session store
7370
req, err := http.NewRequest("GET", "/api/user", nil)
7471
assert.NoError(t, err)
7572

@@ -80,7 +77,7 @@ func Test_UserInfoHandler(t *testing.T) {
8077
"uuid": "uuid-test",
8178
"encryption_secret": "secret-test",
8279
}
83-
session.Save(req, httptest.NewRecorder()) // Save the session
80+
session.Save(req, httptest.NewRecorder())
8481

8582
rr := httptest.NewRecorder()
8683
handler := http.HandlerFunc(app.UserInfoHandler)
@@ -125,7 +122,6 @@ func Test_LogoutHandler(t *testing.T) {
125122
}
126123

127124
func Test_AddTaskHandler_WithDueDate(t *testing.T) {
128-
// Initialize job queue
129125
GlobalJobQueue = NewJobQueue()
130126

131127
requestBody := map[string]interface{}{
@@ -151,7 +147,6 @@ func Test_AddTaskHandler_WithDueDate(t *testing.T) {
151147
}
152148

153149
func Test_AddTaskHandler_WithoutDueDate(t *testing.T) {
154-
// Initialize job queue
155150
GlobalJobQueue = NewJobQueue()
156151

157152
requestBody := map[string]interface{}{
@@ -197,7 +192,6 @@ func Test_AddTaskHandler_MissingDescription(t *testing.T) {
197192
assert.Contains(t, rr.Body.String(), "Description is required")
198193
}
199194

200-
// Task Dependencies Tests
201195
func Test_AddTaskHandler_WithDependencies(t *testing.T) {
202196
GlobalJobQueue = NewJobQueue()
203197

backend/controllers/delete_task.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ func DeleteTaskHandler(w http.ResponseWriter, r *http.Request) {
4747
return
4848
}
4949

50-
// if err := tw.DeleteTaskInTaskwarrior(email, encryptionSecret, uuid, taskuuid); err != nil {
51-
// http.Error(w, err.Error(), http.StatusInternalServerError)
52-
// return
53-
// }
5450
logStore := models.GetLogStore()
5551
job := Job{
5652
Name: "Delete Task",

backend/controllers/get_logs.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ func SyncLogsHandler(w http.ResponseWriter, r *http.Request) {
3939
logStore := models.GetLogStore()
4040
logs := logStore.GetLogs(last)
4141

42-
// Return logs as JSON
4342
w.Header().Set("Content-Type", "application/json")
4443
if err := json.NewEncoder(w).Encode(logs); err != nil {
4544
http.Error(w, "Failed to encode logs", http.StatusInternalServerError)

frontend/src/components/HomeComponents/BottomBar/BottomBar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const BottomBar: React.FC<BottomBarProps> = ({
2424
}) => {
2525
return (
2626
<header className="lg:hidden fixed bottom-0 w-full bg-white border-t-[1px] dark:border-b-slate-700 dark:bg-background shadow-lg flex justify-between items-center p-4 z-40">
27-
{/* Nav Links */}
2827
<NavigationMenu className="mx-auto">
2928
<div className="flex space-x-4 mr-2">
3029
<nav className="md:flex gap-2 justify-center flex-2">
@@ -51,7 +50,6 @@ const BottomBar: React.FC<BottomBarProps> = ({
5150
</nav>
5251
</div>
5352

54-
{/* Filters */}
5553
<Popover>
5654
<PopoverTrigger asChild>
5755
<Button variant="ghost" className="w-auto px-3" aria-label="Filter">

frontend/src/components/HomeComponents/Hero/Hero.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export const Hero = (props: Props) => {
9494
</div>
9595
</div>
9696

97-
{/* Shadow effect */}
9897
<div className="shadow"></div>
9998

10099
<ToastNotification />

frontend/src/components/HomeComponents/Navbar/NavbarMobile.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ export const NavbarMobile = (
221221
<Dialog open={isDevLogsOpen} onOpenChange={setIsDevLogsOpen}>
222222
<DialogTrigger>
223223
<div
224-
// onClick={() => {
225-
// setIsDevLogsOpen(true);
226-
// props.setIsOpen(false);
227-
// }}
228224
className={`w-[130px] cursor-pointer border ${buttonVariants({
229225
variant: 'secondary',
230226
})}`}

frontend/src/components/HomeComponents/Navbar/__tests__/navbar-utils.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// import { tasksCollection } from '@/lib/controller';
21
import { Task } from '@/components/utils/types';
32
import { handleLogout, deleteAllTasks } from '../navbar-utils';
43

frontend/src/components/HomeComponents/Navbar/navbar-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export const deleteAllTasks = async (props: Props) => {
6464
});
6565

6666
try {
67-
// Count tasks first
6867
const taskCount = await db.tasks.where('email').equals(props.email).count();
6968

7069
// If no tasks, show Red toast

0 commit comments

Comments
 (0)