File size: 16,464 Bytes
27989a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd1b73f
27989a2
 
 
 
fd1b73f
27989a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Task Approval | DevPulse Radar</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
    <div class="flex h-screen">
        <!-- Sidebar -->
        <nav class="w-64 bg-gray-800 border-r border-gray-700 hidden md:block">
            <div class="p-4 border-b border-gray-700">
                <div class="flex items-center space-x-2">
                    <i data-feather="activity" class="text-primary w-6 h-6"></i>
                    <span class="text-xl font-bold">DevPulse Radar</span>
                </div>
            </div>
            <div class="p-4">
                <ul class="space-y-2">
                    <li>
                        <a href="dashboard.html" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
                            <i data-feather="home" class="w-5 h-5"></i>
                            <span>Dashboard</span>
                        </a>
                    </li>
                    <li>
                        <a href="approval.html" class="flex items-center space-x-3 px-3 py-2 bg-gray-700 rounded-lg text-primary">
                            <i data-feather="check-circle" class="w-5 h-5"></i>
                            <span>Task Approval</span>
                        </a>
                    </li>
                    <li>
                        <a href="manual.html" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
                            <i data-feather="plus-circle" class="w-5 h-5"></i>
                            <span>Manual Add</span>
                        </a>
                    </li>
                    <li>
                        <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
                            <i data-feather="settings" class="w-5 h-5"></i>
                            <span>Settings</span>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>

        <!-- Main Content -->
        <div class="flex-1 overflow-auto">
            <!-- Top Navigation -->
            <header class="sticky top-0 z-10 bg-gray-800 border-b border-gray-700 p-4">
                <div class="flex justify-between items-center">
                    <div class="flex items-center space-x-4">
                        <button class="md:hidden">
                            <i data-feather="menu" class="w-5 h-5"></i>
                        </button>
                        <div class="relative w-full max-w-md">
                            <i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 w-5 h-5"></i>
                            <input type="text" placeholder="Search tasks..." class="w-full bg-gray-700 border-none pl-10 pr-4 py-2 rounded-lg focus:ring-2 focus:ring-primary">
                        </div>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button class="relative">
                            <i data-feather="bell" class="w-5 h-5"></i>
                            <span class="absolute top-0 right-0 w-2 h-2 bg-primary rounded-full"></span>
                        </button>
                        <div class="flex items-center space-x-2">
                            <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center">
                                <span class="text-sm font-medium">JD</span>
                            </div>
                            <span class="hidden md:inline">John Developer</span>
                            <i data-feather="chevron-down" class="w-4 h-4 hidden md:inline"></i>
                        </div>
                    </div>
                </div>
            </header>

            <!-- Approval Content -->
            <main class="p-6">
                <div class="mb-8">
                    <h2 class="text-2xl font-bold mb-2">Task Approval</h2>
                    <p class="text-gray-400">Review and approve tasks fetched from your integrations</p>
                </div>

                <div class="flex flex-col lg:flex-row gap-6">
                    <!-- Task List -->
                    <div class="lg:w-1/3">
                        <div class="bg-gray-800 rounded-xl border border-gray-700 overflow-hidden">
                            <div class="p-4 border-b border-gray-700">
                                <div class="flex justify-between items-center">
                                    <h3 class="font-medium">Pending Approval (5)</h3>
                                    <button class="text-sm text-primary hover:underline">Refresh</button>
                                </div>
                            </div>
                            <div class="divide-y divide-gray-700 max-h-[calc(100vh-220px)] overflow-y-auto">
                                <!-- Task Card -->
                                <div class="p-4 hover:bg-gray-700 cursor-pointer transition">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded bg-gray-600 flex items-center justify-center">
                                                <i data-feather="check-circle" class="w-4 h-4"></i>
                                            </div>
                                        </div>
                                        <div>
                                            <h4 class="font-medium">PROJ-123: Implement auth middleware</h4>
                                            <p class="text-sm text-gray-400 mt-1">From Jira</p>
                                        </div>
                                    </div>
                                </div>
                                <!-- Task Card -->
                                <div class="p-4 hover:bg-gray-700 cursor-pointer transition">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded bg-gray-600 flex items-center justify-center">
                                                <i data-feather="git-pull-request" class="w-4 h-4"></i>
                                            </div>
                                        </div>
                                        <div>
                                            <h4 class="font-medium">PR #42: Refactor API endpoints</h4>
                                            <p class="text-sm text-gray-400 mt-1">From GitHub</p>
                                        </div>
                                    </div>
                                </div>
                                <!-- Task Card -->
                                <div class="p-4 hover:bg-gray-700 cursor-pointer transition">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded bg-gray-600 flex items-center justify-center">
                                                <i data-feather="check-circle" class="w-4 h-4"></i>
                                            </div>
                                        </div>
                                        <div>
                                            <h4 class="font-medium">TASK-15: Update documentation</h4>
                                            <p class="text-sm text-gray-400 mt-1">From Asana</p>
                                        </div>
                                    </div>
                                </div>
                                <!-- Task Card -->
                                <div class="p-4 hover:bg-gray-700 cursor-pointer transition">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded bg-gray-600 flex items-center justify-center">
                                                <i data-feather="check-circle" class="w-4 h-4"></i>
                                            </div>
                                        </div>
                                        <div>
                                            <h4 class="font-medium">BUG-77: Fix login redirect</h4>
                                            <p class="text-sm text-gray-400 mt-1">From Jira</p>
                                        </div>
                                    </div>
                                </div>
                                <!-- Task Card -->
                                <div class="p-4 hover:bg-gray-700 cursor-pointer transition bg-gray-700">
                                    <div class="flex items-start space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded bg-gray-600 flex items-center justify-center">
                                                <i data-feather="git-pull-request" class="w-4 h-4"></i>
                                            </div>
                                        </div>
                                        <div>
                                            <h4 class="font-medium">PR #38: Update dependencies</h4>
                                            <p class="text-sm text-gray-400 mt-1">From GitLab</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Task Details -->
                    <div class="lg:w-2/3">
                        <div class="bg-gray-800 rounded-xl border border-gray-700 p-6">
                            <div class="flex justify-between items-start">
                                <div>
                                    <h3 class="text-xl font-bold">PR #38: Update dependencies</h3>
                                    <div class="flex items-center space-x-2 mt-2">
                                        <div class="px-2 py-1 bg-gray-700 rounded text-xs flex items-center">
                                            <i data-feather="git-pull-request" class="w-3 h-3 mr-1"></i>
                                            <span>From GitLab</span>
                                        </div>
                                        <span class="text-sm text-gray-400">Opened 2 days ago</span>
                                    </div>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="px-4 py-2 bg-red-600 hover:bg-red-700 rounded-lg transition">
                                        Reject
                                    </button>
                                    <button class="px-4 py-2 bg-primary hover:bg-primary/90 rounded-lg transition">
                                        Approve
                                    </button>
                                </div>
                            </div>

                            <div class="mt-8">
                                <h4 class="font-medium mb-2">Description</h4>
                                <div class="bg-gray-700 rounded-lg p-4 text-sm">
                                    <p>Updated all outdated dependencies to their latest stable versions:</p>
                                    <ul class="list-disc pl-5 mt-2 space-y-1">
                                        <li>React 17 β†’ 18.2.0</li>
                                        <li>Tailwind CSS 2 β†’ 3.3.0</li>
                                        <li>Node.js 14 β†’ 18.12.1</li>
                                        <li>Various security updates</li>
                                    </ul>
                                    <p class="mt-2">All tests pass and the application runs without issues.</p>
                                </div>
                            </div>

                            <div class="mt-8">
                                <h4 class="font-medium mb-2">Details</h4>
                                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                    <div>
                                        <p class="text-sm text-gray-400">Repository</p>
                                        <p class="mt-1">project-x/frontend</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-400">Branch</p>
                                        <p class="mt-1">dependabot-updates</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-400">Commit</p>
                                        <p class="mt-1 truncate">a1b2c3d4... Update package.json</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-400">Time Spent</p>
                                        <p class="mt-1">Approx. 1.5 hours</p>
                                    </div>
                                </div>
                            </div>

                            <div class="mt-8">
                                <h4 class="font-medium mb-2">Comments (3)</h4>
                                <div class="space-y-4">
                                    <div class="flex space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded-full bg-gray-600"></div>
                                        </div>
                                        <div>
                                            <p class="font-medium">Team Member</p>
                                            <p class="text-sm text-gray-400">Looks good to me, but did you test the new React version with our custom hooks?</p>
                                        </div>
                                    </div>
                                    <div class="flex space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded-full bg-gray-600"></div>
                                        </div>
                                        <div>
                                            <p class="font-medium">Another Reviewer</p>
                                            <p class="text-sm text-gray-400">The security updates are much needed. Thanks for taking care of this!</p>
                                        </div>
                                    </div>
                                    <div class="flex space-x-3">
                                        <div class="flex-shrink-0">
                                            <div class="w-8 h-8 rounded-full bg-gray-600"></div>
                                        </div>
                                        <div>
                                            <p class="font-medium">You</p>
                                            <p class="text-sm text-gray-400">Yes, tested all custom hooks and they work as expected with React 18.</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        feather.replace();
    </script>
</body>
</html>