WinLanEm commited on
Commit
fd1b73f
·
verified ·
1 Parent(s): 8aeeb5e

нарисуй страницу вроде index где будут отображаться все активности, на нее можно попасть либо через sidebar на странице dashboard, либо через кнопку view all, на нем будут отображаться все виды активностей, есть опции фильтра выбор 3 видов активностей commit pull request task, каждую из отображаемых активностей можно посмотреть подробнее, поэтому на стране индекс сделай эту кнопку, а изначально на index странице у активности отображаются title, дата и From (то есть откуда с гит или jira asana), как-то так

Browse files
Files changed (5) hide show
  1. allactivities.html +263 -0
  2. approval.html +2 -2
  3. dashboard.html +14 -8
  4. index.html +2 -2
  5. manual.html +2 -2
allactivities.html ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>All Activities | DevPulse Radar</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
11
+ <style>
12
+ .vanta-bg {
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ z-index: -1;
19
+ opacity: 0.15;
20
+ }
21
+ .card-glass {
22
+ backdrop-filter: blur(10px);
23
+ background: rgba(255, 255, 255, 0.1);
24
+ border: 1px solid rgba(255, 255, 255, 0.1);
25
+ }
26
+ </style>
27
+ </head>
28
+ <body class="bg-gray-900 text-gray-100 min-h-screen">
29
+ <div id="vanta-bg" class="vanta-bg"></div>
30
+
31
+ <nav class="border-b border-gray-800 py-4 px-6 md:px-12">
32
+ <div class="flex justify-between items-center">
33
+ <div class="flex items-center space-x-2">
34
+ <i data-feather="activity" class="text-primary w-6 h-6"></i>
35
+ <span class="text-xl font-bold">DevPulse Radar</span>
36
+ </div>
37
+ <div>
38
+ <a href="dashboard.html" class="px-4 py-2 rounded-md hover:bg-gray-800 transition">
39
+ <i data-feather="arrow-left" class="w-4 h-4 inline mr-1"></i> Back to Dashboard
40
+ </a>
41
+ </div>
42
+ </div>
43
+ </nav>
44
+
45
+ <main class="container mx-auto px-6 md:px-12 py-8">
46
+ <div class="flex justify-between items-center mb-8">
47
+ <h1 class="text-3xl font-bold">All Activities</h1>
48
+ <div class="flex space-x-4">
49
+ <div class="relative">
50
+ <select id="filter-type" class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 appearance-none">
51
+ <option value="all">All Types</option>
52
+ <option value="commit">Commits</option>
53
+ <option value="pr">Pull Requests</option>
54
+ <option value="task">Tasks</option>
55
+ </select>
56
+ <i data-feather="chevron-down" class="absolute right-3 top-3 w-4 h-4 pointer-events-none"></i>
57
+ </div>
58
+ <div class="relative">
59
+ <input type="date" id="filter-date" class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2">
60
+ </div>
61
+ </div>
62
+ </div>
63
+
64
+ <div class="grid grid-cols-1 gap-4" id="activities-container">
65
+ <!-- Activity Item -->
66
+ <div class="card-glass p-4 rounded-lg hover:bg-gray-800/50 transition cursor-pointer" onclick="showActivityDetail(1)">
67
+ <div class="flex items-start space-x-3">
68
+ <div class="bg-primary/10 p-2 rounded-lg flex-shrink-0">
69
+ <i data-feather="git-commit" class="text-primary w-5 h-5"></i>
70
+ </div>
71
+ <div class="flex-1">
72
+ <div class="flex justify-between">
73
+ <h3 class="font-medium">Fixed login bug</h3>
74
+ <span class="text-sm text-gray-400">2 hours ago</span>
75
+ </div>
76
+ <p class="text-sm text-gray-400 mt-1">From GitHub</p>
77
+ </div>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Activity Item -->
82
+ <div class="card-glass p-4 rounded-lg hover:bg-gray-800/50 transition cursor-pointer" onclick="showActivityDetail(2)">
83
+ <div class="flex items-start space-x-3">
84
+ <div class="bg-purple-500/10 p-2 rounded-lg flex-shrink-0">
85
+ <i data-feather="git-pull-request" class="text-purple-500 w-5 h-5"></i>
86
+ </div>
87
+ <div class="flex-1">
88
+ <div class="flex justify-between">
89
+ <h3 class="font-medium">Feature/new-dashboard</h3>
90
+ <span class="text-sm text-gray-400">1 day ago</span>
91
+ </div>
92
+ <p class="text-sm text-gray-400 mt-1">From GitLab</p>
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <!-- Activity Item -->
98
+ <div class="card-glass p-4 rounded-lg hover:bg-gray-800/50 transition cursor-pointer" onclick="showActivityDetail(3)">
99
+ <div class="flex items-start space-x-3">
100
+ <div class="bg-green-500/10 p-2 rounded-lg flex-shrink-0">
101
+ <i data-feather="check-circle" class="text-green-500 w-5 h-5"></i>
102
+ </div>
103
+ <div class="flex-1">
104
+ <div class="flex justify-between">
105
+ <h3 class="font-medium">Complete auth flow</h3>
106
+ <span class="text-sm text-gray-400">3 days ago</span>
107
+ </div>
108
+ <p class="text-sm text-gray-400 mt-1">From Jira</p>
109
+ </div>
110
+ </div>
111
+ </div>
112
+
113
+ <!-- More activities would be loaded here -->
114
+ </div>
115
+ </main>
116
+
117
+ <!-- Activity Detail Modal -->
118
+ <div id="activityModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
119
+ <div class="bg-gray-800 rounded-xl border border-gray-700 p-6 max-w-2xl w-full mx-4">
120
+ <div class="flex justify-between items-start mb-6">
121
+ <h3 class="text-xl font-bold" id="modalTitle">Activity Details</h3>
122
+ <button onclick="closeModal()">
123
+ <i data-feather="x" class="w-6 h-6"></i>
124
+ </button>
125
+ </div>
126
+
127
+ <div class="space-y-4" id="modalContent">
128
+ <!-- Content will be dynamically loaded here -->
129
+ </div>
130
+ </div>
131
+ </div>
132
+
133
+ <script>
134
+ feather.replace();
135
+ VANTA.NET({
136
+ el: "#vanta-bg",
137
+ mouseControls: true,
138
+ touchControls: true,
139
+ gyroControls: false,
140
+ minHeight: 200.00,
141
+ minWidth: 200.00,
142
+ scale: 1.00,
143
+ scaleMobile: 1.00,
144
+ color: 0x6366f1,
145
+ backgroundColor: 0x111827,
146
+ points: 12.00,
147
+ maxDistance: 22.00,
148
+ spacing: 18.00
149
+ });
150
+
151
+ function showActivityDetail(activityId) {
152
+ // In a real app, this would fetch data from an API
153
+ const modal = document.getElementById('activityModal');
154
+ const modalTitle = document.getElementById('modalTitle');
155
+ const modalContent = document.getElementById('modalContent');
156
+
157
+ // Sample data - would be dynamic in a real app
158
+ const activities = {
159
+ 1: {
160
+ title: "Fixed login bug",
161
+ type: "commit",
162
+ description: "Fixed issue with login form validation not handling empty fields correctly",
163
+ date: "2 hours ago",
164
+ from: "GitHub",
165
+ repo: "main-repo",
166
+ commit: "#a1b2c3d"
167
+ },
168
+ 2: {
169
+ title: "Feature/new-dashboard",
170
+ type: "pr",
171
+ description: "Implemented new dashboard UI components with responsive design",
172
+ date: "1 day ago",
173
+ from: "GitLab",
174
+ pr: "#42",
175
+ branch: "feature/new-dashboard"
176
+ },
177
+ 3: {
178
+ title: "Complete auth flow",
179
+ type: "task",
180
+ description: "Finished implementing authentication flow including JWT validation",
181
+ date: "3 days ago",
182
+ from: "Jira",
183
+ task: "PROJ-123",
184
+ time: "4 hours"
185
+ }
186
+ };
187
+
188
+ const activity = activities[activityId];
189
+
190
+ modalTitle.textContent = activity.title;
191
+
192
+ let content = `
193
+ <div class="flex items-center space-x-2">
194
+ <span class="px-2 py-1 bg-gray-700 rounded text-sm">${activity.from}</span>
195
+ <span class="text-sm text-gray-400">${activity.date}</span>
196
+ </div>
197
+ <div class="bg-gray-700 rounded-lg p-4">
198
+ <p>${activity.description}</p>
199
+ </div>
200
+ `;
201
+
202
+ if (activity.type === 'commit') {
203
+ content += `
204
+ <div class="grid grid-cols-2 gap-4">
205
+ <div>
206
+ <p class="text-sm text-gray-400">Repository</p>
207
+ <p>${activity.repo}</p>
208
+ </div>
209
+ <div>
210
+ <p class="text-sm text-gray-400">Commit</p>
211
+ <p>${activity.commit}</p>
212
+ </div>
213
+ </div>
214
+ `;
215
+ } else if (activity.type === 'pr') {
216
+ content += `
217
+ <div class="grid grid-cols-2 gap-4">
218
+ <div>
219
+ <p class="text-sm text-gray-400">Pull Request</p>
220
+ <p>${activity.pr}</p>
221
+ </div>
222
+ <div>
223
+ <p class="text-sm text-gray-400">Branch</p>
224
+ <p>${activity.branch}</p>
225
+ </div>
226
+ </div>
227
+ `;
228
+ } else if (activity.type === 'task') {
229
+ content += `
230
+ <div class="grid grid-cols-2 gap-4">
231
+ <div>
232
+ <p class="text-sm text-gray-400">Task ID</p>
233
+ <p>${activity.task}</p>
234
+ </div>
235
+ <div>
236
+ <p class="text-sm text-gray-400">Time Spent</p>
237
+ <p>${activity.time}</p>
238
+ </div>
239
+ </div>
240
+ `;
241
+ }
242
+
243
+ modalContent.innerHTML = content;
244
+ modal.classList.remove('hidden');
245
+ }
246
+
247
+ function closeModal() {
248
+ document.getElementById('activityModal').classList.add('hidden');
249
+ }
250
+
251
+ // Filter functionality
252
+ document.getElementById('filter-type').addEventListener('change', function() {
253
+ // In a real app, this would filter the activities
254
+ console.log('Filter by:', this.value);
255
+ });
256
+
257
+ document.getElementById('filter-date').addEventListener('change', function() {
258
+ // In a real app, this would filter by date
259
+ console.log('Filter date:', this.value);
260
+ });
261
+ </script>
262
+ </body>
263
+ </html>
approval.html CHANGED
@@ -39,12 +39,12 @@
39
  </a>
40
  </li>
41
  <li>
42
- <a href="settings.html" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
43
  <i data-feather="settings" class="w-5 h-5"></i>
44
  <span>Settings</span>
45
  </a>
46
  </li>
47
- </ul>
48
  </div>
49
  </nav>
50
 
 
39
  </a>
40
  </li>
41
  <li>
42
+ <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
43
  <i data-feather="settings" class="w-5 h-5"></i>
44
  <span>Settings</span>
45
  </a>
46
  </li>
47
+ </ul>
48
  </div>
49
  </nav>
50
 
dashboard.html CHANGED
@@ -39,12 +39,18 @@
39
  <span>Manual Add</span>
40
  </a>
41
  </li>
42
- <li>
43
- <a href="settings.html" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
44
- <i data-feather="settings" class="w-5 h-5"></i>
45
- <span>Settings</span>
46
- </a>
47
- </li>
 
 
 
 
 
 
48
  </ul>
49
  </div>
50
  </nav>
@@ -92,8 +98,8 @@
92
  <div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
93
  <div class="flex justify-between items-center mb-6">
94
  <h3 class="text-xl font-bold">Recent Activity</h3>
95
- <button class="text-sm text-primary hover:underline">View All</button>
96
- </div>
97
  <div class="space-y-4">
98
  <!-- Activity Item -->
99
  <div class="flex space-x-4">
 
39
  <span>Manual Add</span>
40
  </a>
41
  </li>
42
+ <li>
43
+ <a href="allactivities.html" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
44
+ <i data-feather="list" class="w-5 h-5"></i>
45
+ <span>All Activities</span>
46
+ </a>
47
+ </li>
48
+ <li>
49
+ <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
50
+ <i data-feather="settings" class="w-5 h-5"></i>
51
+ <span>Settings</span>
52
+ </a>
53
+ </li>
54
  </ul>
55
  </div>
56
  </nav>
 
98
  <div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
99
  <div class="flex justify-between items-center mb-6">
100
  <h3 class="text-xl font-bold">Recent Activity</h3>
101
+ <a href="allactivities.html" class="text-sm text-primary hover:underline">View All</a>
102
+ </div>
103
  <div class="space-y-4">
104
  <!-- Activity Item -->
105
  <div class="flex space-x-4">
index.html CHANGED
@@ -68,8 +68,8 @@
68
  <div class="flex flex-col sm:flex-row justify-center gap-4">
69
  <a href="register.html" class="bg-primary hover:bg-primary/90 px-8 py-4 rounded-lg text-lg font-medium transition">Get Started</a>
70
  <a href="login.html" class="border border-gray-700 hover:bg-gray-800 px-8 py-4 rounded-lg text-lg font-medium transition">Login</a>
71
- <a href="activity.html" class="border border-gray-700 hover:bg-gray-800 px-8 py-4 rounded-lg text-lg font-medium transition">View All Activity</a>
72
- </div>
73
  </section>
74
 
75
  <section class="mt-24 grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto">
 
68
  <div class="flex flex-col sm:flex-row justify-center gap-4">
69
  <a href="register.html" class="bg-primary hover:bg-primary/90 px-8 py-4 rounded-lg text-lg font-medium transition">Get Started</a>
70
  <a href="login.html" class="border border-gray-700 hover:bg-gray-800 px-8 py-4 rounded-lg text-lg font-medium transition">Login</a>
71
+ <a href="allactivities.html" class="border border-gray-700 hover:bg-gray-800 px-8 py-4 rounded-lg text-lg font-medium transition">View All Activity</a>
72
+ </div>
73
  </section>
74
 
75
  <section class="mt-24 grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto">
manual.html CHANGED
@@ -39,12 +39,12 @@
39
  </a>
40
  </li>
41
  <li>
42
- <a href="settings.html" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
43
  <i data-feather="settings" class="w-5 h-5"></i>
44
  <span>Settings</span>
45
  </a>
46
  </li>
47
- </ul>
48
  </div>
49
  </nav>
50
 
 
39
  </a>
40
  </li>
41
  <li>
42
+ <a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-700 rounded-lg transition">
43
  <i data-feather="settings" class="w-5 h-5"></i>
44
  <span>Settings</span>
45
  </a>
46
  </li>
47
+ </ul>
48
  </div>
49
  </nav>
50