ShadowWolf1999 commited on
Commit
a85611d
·
verified ·
1 Parent(s): b5ad374

Create a modern, professional, interactive web page for **Test Case Management Demo**.

Browse files

The page should look like commercial QA/test management software (TestRail/Testmo style) and clearly present different types of test cases, including:

- UI Automation
- API Automation
- Manual Test Cases
- Phases: SIT, UAT, Regression
- Status: Pass, Fail, Pending

Files changed (7) hide show
  1. README.md +8 -5
  2. components/footer.js +77 -0
  3. components/header.js +100 -0
  4. components/sidebar.js +160 -0
  5. index.html +213 -19
  6. script.js +77 -0
  7. style.css +41 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Testcase Master Pro
3
- emoji: 🏢
4
- colorFrom: red
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: TestCase Master Pro 🚀
3
+ colorFrom: pink
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class TestFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ background-color: white;
9
+ border-top: 1px solid #e2e8f0;
10
+ padding: 2rem 0;
11
+ margin-top: 3rem;
12
+ }
13
+
14
+ .footer-container {
15
+ max-width: 1400px;
16
+ margin: 0 auto;
17
+ padding: 0 2rem;
18
+ }
19
+
20
+ .footer-content {
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: center;
24
+ text-align: center;
25
+ }
26
+
27
+ .footer-links {
28
+ display: flex;
29
+ gap: 1.5rem;
30
+ margin-bottom: 1rem;
31
+ }
32
+
33
+ .footer-link {
34
+ color: #64748b;
35
+ text-decoration: none;
36
+ transition: color 0.2s;
37
+ }
38
+
39
+ .footer-link:hover {
40
+ color: #3b82f6;
41
+ }
42
+
43
+ .footer-copyright {
44
+ color: #94a3b8;
45
+ font-size: 0.875rem;
46
+ }
47
+
48
+ @media (min-width: 768px) {
49
+ .footer-content {
50
+ flex-direction: row;
51
+ justify-content: space-between;
52
+ text-align: left;
53
+ }
54
+
55
+ .footer-links {
56
+ margin-bottom: 0;
57
+ }
58
+ }
59
+ </style>
60
+
61
+ <div class="footer-container">
62
+ <div class="footer-content">
63
+ <div class="footer-links">
64
+ <a href="#" class="footer-link">About</a>
65
+ <a href="#" class="footer-link">Documentation</a>
66
+ <a href="#" class="footer-link">Privacy</a>
67
+ <a href="#" class="footer-link">Terms</a>
68
+ <a href="#" class="footer-link">Contact</a>
69
+ </div>
70
+ <p class="footer-copyright">© 2023 TestCase Master Pro. All rights reserved.</p>
71
+ </div>
72
+ </div>
73
+ `;
74
+ }
75
+ }
76
+
77
+ customElements.define('test-footer', TestFooter);
components/header.js ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class TestHeader extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ width: 100%;
9
+ background-color: white;
10
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
11
+ }
12
+
13
+ .header-container {
14
+ max-width: 1400px;
15
+ margin: 0 auto;
16
+ padding: 1rem 2rem;
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ }
21
+
22
+ .logo {
23
+ font-size: 1.5rem;
24
+ font-weight: 700;
25
+ color: #3b82f6;
26
+ display: flex;
27
+ align-items: center;
28
+ }
29
+
30
+ .logo-icon {
31
+ margin-right: 0.5rem;
32
+ }
33
+
34
+ .nav-links {
35
+ display: flex;
36
+ gap: 1.5rem;
37
+ }
38
+
39
+ .nav-link {
40
+ color: #64748b;
41
+ font-weight: 500;
42
+ transition: color 0.2s;
43
+ }
44
+
45
+ .nav-link:hover {
46
+ color: #3b82f6;
47
+ }
48
+
49
+ .user-menu {
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 1rem;
53
+ }
54
+
55
+ .avatar {
56
+ width: 40px;
57
+ height: 40px;
58
+ border-radius: 50%;
59
+ background-color: #e2e8f0;
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ color: #64748b;
64
+ font-weight: 600;
65
+ }
66
+
67
+ @media (max-width: 768px) {
68
+ .nav-links {
69
+ display: none;
70
+ }
71
+
72
+ .mobile-menu-button {
73
+ display: block;
74
+ }
75
+ }
76
+ </style>
77
+
78
+ <div class="header-container">
79
+ <a href="/" class="logo">
80
+ <i data-feather="check-square" class="logo-icon"></i>
81
+ TestCase Master Pro
82
+ </a>
83
+
84
+ <div class="nav-links">
85
+ <a href="#" class="nav-link">Dashboard</a>
86
+ <a href="#" class="nav-link">Test Cases</a>
87
+ <a href="#" class="nav-link">Test Runs</a>
88
+ <a href="#" class="nav-link">Reports</a>
89
+ <a href="#" class="nav-link">Settings</a>
90
+ </div>
91
+
92
+ <div class="user-menu">
93
+ <div class="avatar">JD</div>
94
+ </div>
95
+ </div>
96
+ `;
97
+ }
98
+ }
99
+
100
+ customElements.define('test-header', TestHeader);
components/sidebar.js ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class TestSidebar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ }
9
+
10
+ .sidebar {
11
+ background-color: white;
12
+ border-radius: 0.75rem;
13
+ padding: 1.5rem;
14
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
15
+ height: fit-content;
16
+ }
17
+
18
+ .sidebar-title {
19
+ font-size: 1.125rem;
20
+ font-weight: 600;
21
+ color: #1e293b;
22
+ margin-bottom: 1.5rem;
23
+ display: flex;
24
+ align-items: center;
25
+ }
26
+
27
+ .sidebar-title i {
28
+ margin-right: 0.5rem;
29
+ }
30
+
31
+ .sidebar-menu {
32
+ list-style: none;
33
+ padding: 0;
34
+ margin: 0;
35
+ }
36
+
37
+ .sidebar-item {
38
+ margin-bottom: 0.5rem;
39
+ }
40
+
41
+ .sidebar-link {
42
+ display: flex;
43
+ align-items: center;
44
+ padding: 0.5rem 1rem;
45
+ border-radius: 0.375rem;
46
+ color: #64748b;
47
+ text-decoration: none;
48
+ transition: all 0.2s;
49
+ }
50
+
51
+ .sidebar-link:hover {
52
+ background-color: #f1f5f9;
53
+ color: #3b82f6;
54
+ }
55
+
56
+ .sidebar-link.active {
57
+ background-color: #eff6ff;
58
+ color: #3b82f6;
59
+ font-weight: 500;
60
+ }
61
+
62
+ .sidebar-link i {
63
+ margin-right: 0.75rem;
64
+ width: 20px;
65
+ height: 20px;
66
+ }
67
+
68
+ .sidebar-divider {
69
+ border-top: 1px solid #e2e8f0;
70
+ margin: 1rem 0;
71
+ }
72
+
73
+ .sidebar-subtitle {
74
+ font-size: 0.75rem;
75
+ font-weight: 600;
76
+ color: #64748b;
77
+ text-transform: uppercase;
78
+ letter-spacing: 0.05em;
79
+ margin: 1.5rem 0 0.5rem 1rem;
80
+ }
81
+
82
+ @media (max-width: 1024px) {
83
+ :host {
84
+ display: none;
85
+ }
86
+ }
87
+ </style>
88
+
89
+ <div class="sidebar">
90
+ <h3 class="sidebar-title">
91
+ <i data-feather="menu"></i>
92
+ Test Management
93
+ </h3>
94
+
95
+ <ul class="sidebar-menu">
96
+ <li class="sidebar-item">
97
+ <a href="#" class="sidebar-link active">
98
+ <i data-feather="home"></i>
99
+ Dashboard
100
+ </a>
101
+ </li>
102
+ <li class="sidebar-item">
103
+ <a href="#" class="sidebar-link">
104
+ <i data-feather="list"></i>
105
+ All Test Cases
106
+ </a>
107
+ </li>
108
+ </ul>
109
+
110
+ <p class="sidebar-subtitle">Test Types</p>
111
+ <ul class="sidebar-menu">
112
+ <li class="sidebar-item">
113
+ <a href="#" class="sidebar-link">
114
+ <i data-feather="monitor"></i>
115
+ UI Automation
116
+ </a>
117
+ </li>
118
+ <li class="sidebar-item">
119
+ <a href="#" class="sidebar-link">
120
+ <i data-feather="code"></i>
121
+ API Automation
122
+ </a>
123
+ </li>
124
+ <li class="sidebar-item">
125
+ <a href="#" class="sidebar-link">
126
+ <i data-feather="user"></i>
127
+ Manual Tests
128
+ </a>
129
+ </li>
130
+ </ul>
131
+
132
+ <div class="sidebar-divider"></div>
133
+
134
+ <p class="sidebar-subtitle">Test Phases</p>
135
+ <ul class="sidebar-menu">
136
+ <li class="sidebar-item">
137
+ <a href="#" class="sidebar-link">
138
+ <i data-feather="layers"></i>
139
+ SIT
140
+ </a>
141
+ </li>
142
+ <li class="sidebar-item">
143
+ <a href="#" class="sidebar-link">
144
+ <i data-feather="users"></i>
145
+ UAT
146
+ </a>
147
+ </li>
148
+ <li class="sidebar-item">
149
+ <a href="#" class="sidebar-link">
150
+ <i data-feather="refresh-cw"></i>
151
+ Regression
152
+ </a>
153
+ </li>
154
+ </ul>
155
+ </div>
156
+ `;
157
+ }
158
+ }
159
+
160
+ customElements.define('test-sidebar', TestSidebar);
index.html CHANGED
@@ -1,19 +1,213 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>TestCase Master Pro | QA Management</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script>
12
+ tailwind.config = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ primary: '#3b82f6',
17
+ secondary: '#10b981',
18
+ dark: '#1e293b',
19
+ light: '#f8fafc'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ </script>
25
+ </head>
26
+ <body class="bg-gray-50">
27
+ <test-header></test-header>
28
+
29
+ <div class="container mx-auto px-4 py-8">
30
+ <div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
31
+ <!-- Sidebar -->
32
+ <test-sidebar></test-sidebar>
33
+
34
+ <!-- Main Content -->
35
+ <div class="lg:col-span-3">
36
+ <div class="bg-white rounded-xl shadow-md p-6 mb-6">
37
+ <div class="flex justify-between items-center mb-6">
38
+ <h2 class="text-2xl font-bold text-dark">Test Case Dashboard</h2>
39
+ <button class="bg-primary hover:bg-primary-dark text-white px-4 py-2 rounded-lg flex items-center">
40
+ <i data-feather="plus" class="mr-2"></i> Add Test Case
41
+ </button>
42
+ </div>
43
+
44
+ <!-- Stats Cards -->
45
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8">
46
+ <div class="bg-blue-50 p-4 rounded-lg border border-blue-100">
47
+ <div class="flex items-center">
48
+ <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
49
+ <i data-feather="check-circle"></i>
50
+ </div>
51
+ <div>
52
+ <p class="text-sm text-gray-500">Passed</p>
53
+ <h3 class="text-xl font-bold">124</h3>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="bg-red-50 p-4 rounded-lg border border-red-100">
58
+ <div class="flex items-center">
59
+ <div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
60
+ <i data-feather="x-circle"></i>
61
+ </div>
62
+ <div>
63
+ <p class="text-sm text-gray-500">Failed</p>
64
+ <h3 class="text-xl font-bold">8</h3>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ <div class="bg-yellow-50 p-4 rounded-lg border border-yellow-100">
69
+ <div class="flex items-center">
70
+ <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
71
+ <i data-feather="clock"></i>
72
+ </div>
73
+ <div>
74
+ <p class="text-sm text-gray-500">Pending</p>
75
+ <h3 class="text-xl font-bold">32</h3>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ <div class="bg-green-50 p-4 rounded-lg border border-green-100">
80
+ <div class="flex items-center">
81
+ <div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
82
+ <i data-feather="database"></i>
83
+ </div>
84
+ <div>
85
+ <p class="text-sm text-gray-500">Total</p>
86
+ <h3 class="text-xl font-bold">164</h3>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
91
+
92
+ <!-- Test Case Types Tabs -->
93
+ <div class="mb-6">
94
+ <div class="border-b border-gray-200">
95
+ <nav class="-mb-px flex space-x-8">
96
+ <a href="#" class="border-primary text-primary whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">All Test Cases</a>
97
+ <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">UI Automation</a>
98
+ <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">API Automation</a>
99
+ <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">Manual Tests</a>
100
+ </nav>
101
+ </div>
102
+ </div>
103
+
104
+ <!-- Test Case Table -->
105
+ <div class="overflow-x-auto">
106
+ <table class="min-w-full divide-y divide-gray-200">
107
+ <thead class="bg-gray-50">
108
+ <tr>
109
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
110
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Title</th>
111
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
112
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Phase</th>
113
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
114
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
115
+ </tr>
116
+ </thead>
117
+ <tbody class="bg-white divide-y divide-gray-200">
118
+ <!-- Sample Test Case Rows -->
119
+ <tr>
120
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">TC-101</td>
121
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Login Page Validation</td>
122
+ <td class="px-6 py-4 whitespace-nowrap">
123
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">UI Automation</span>
124
+ </td>
125
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">SIT</td>
126
+ <td class="px-6 py-4 whitespace-nowrap">
127
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Pass</span>
128
+ </td>
129
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
130
+ <a href="#" class="text-primary hover:text-primary-dark mr-3"><i data-feather="edit-2" class="w-4 h-4"></i></a>
131
+ <a href="#" class="text-red-600 hover:text-red-900"><i data-feather="trash-2" class="w-4 h-4"></i></a>
132
+ </td>
133
+ </tr>
134
+ <tr>
135
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">TC-102</td>
136
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">User Registration API</td>
137
+ <td class="px-6 py-4 whitespace-nowrap">
138
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">API Automation</span>
139
+ </td>
140
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Regression</td>
141
+ <td class="px-6 py-4 whitespace-nowrap">
142
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Fail</span>
143
+ </td>
144
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
145
+ <a href="#" class="text-primary hover:text-primary-dark mr-3"><i data-feather="edit-2" class="w-4 h-4"></i></a>
146
+ <a href="#" class="text-red-600 hover:text-red-900"><i data-feather="trash-2" class="w-4 h-4"></i></a>
147
+ </td>
148
+ </tr>
149
+ <tr>
150
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">TC-103</td>
151
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Checkout Flow</td>
152
+ <td class="px-6 py-4 whitespace-nowrap">
153
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Manual Test</span>
154
+ </td>
155
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">UAT</td>
156
+ <td class="px-6 py-4 whitespace-nowrap">
157
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
158
+ </td>
159
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
160
+ <a href="#" class="text-primary hover:text-primary-dark mr-3"><i data-feather="edit-2" class="w-4 h-4"></i></a>
161
+ <a href="#" class="text-red-600 hover:text-red-900"><i data-feather="trash-2" class="w-4 h-4"></i></a>
162
+ </td>
163
+ </tr>
164
+ </tbody>
165
+ </table>
166
+ </div>
167
+
168
+ <!-- Pagination -->
169
+ <div class="flex items-center justify-between mt-6">
170
+ <div class="flex-1 flex justify-between sm:hidden">
171
+ <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a>
172
+ <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a>
173
+ </div>
174
+ <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
175
+ <div>
176
+ <p class="text-sm text-gray-700">
177
+ Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">24</span> results
178
+ </p>
179
+ </div>
180
+ <div>
181
+ <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
182
+ <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
183
+ <span class="sr-only">Previous</span>
184
+ <i data-feather="chevron-left" class="h-5 w-5"></i>
185
+ </a>
186
+ <a href="#" aria-current="page" class="z-10 bg-primary border-primary text-white relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
187
+ <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
188
+ <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
189
+ <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
190
+ <span class="sr-only">Next</span>
191
+ <i data-feather="chevron-right" class="h-5 w-5"></i>
192
+ </a>
193
+ </nav>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ </div>
200
+ </div>
201
+
202
+ <test-footer></test-footer>
203
+
204
+ <!-- Components -->
205
+ <script src="components/header.js"></script>
206
+ <script src="components/sidebar.js"></script>
207
+ <script src="components/footer.js"></script>
208
+
209
+ <script src="script.js"></script>
210
+ <script>feather.replace();</script>
211
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
212
+ </body>
213
+ </html>
script.js ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // Initialize tooltips
3
+ const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
4
+ tooltipTriggerList.map(function (tooltipTriggerEl) {
5
+ return new bootstrap.Tooltip(tooltipTriggerEl);
6
+ });
7
+
8
+ // Toggle mobile menu
9
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
10
+ const mobileMenu = document.getElementById('mobile-menu');
11
+
12
+ if(mobileMenuButton && mobileMenu) {
13
+ mobileMenuButton.addEventListener('click', function() {
14
+ mobileMenu.classList.toggle('hidden');
15
+ });
16
+ }
17
+
18
+ // Sample data for charts (would be replaced with real data in production)
19
+ const testStatusData = {
20
+ labels: ['Passed', 'Failed', 'Pending'],
21
+ datasets: [{
22
+ data: [124, 8, 32],
23
+ backgroundColor: [
24
+ '#10B981',
25
+ '#EF4444',
26
+ '#F59E0B'
27
+ ],
28
+ hoverOffset: 4
29
+ }]
30
+ };
31
+
32
+ // Initialize charts (example with Chart.js)
33
+ if(typeof Chart !== 'undefined') {
34
+ const ctx = document.getElementById('testStatusChart');
35
+ if(ctx) {
36
+ new Chart(ctx, {
37
+ type: 'doughnut',
38
+ data: testStatusData,
39
+ options: {
40
+ responsive: true,
41
+ plugins: {
42
+ legend: {
43
+ position: 'bottom',
44
+ }
45
+ }
46
+ }
47
+ });
48
+ }
49
+ }
50
+
51
+ // Filter functionality for test cases
52
+ const filterButtons = document.querySelectorAll('.filter-btn');
53
+ const testCaseRows = document.querySelectorAll('tbody tr');
54
+
55
+ filterButtons.forEach(button => {
56
+ button.addEventListener('click', function() {
57
+ const filterValue = this.getAttribute('data-filter');
58
+
59
+ testCaseRows.forEach(row => {
60
+ if(filterValue === 'all') {
61
+ row.style.display = '';
62
+ } else {
63
+ const rowType = row.querySelector('td:nth-child(3) span').textContent.toLowerCase();
64
+ if(rowType.includes(filterValue)) {
65
+ row.style.display = '';
66
+ } else {
67
+ row.style.display = 'none';
68
+ }
69
+ }
70
+ });
71
+
72
+ // Update active button
73
+ filterButtons.forEach(btn => btn.classList.remove('active'));
74
+ this.classList.add('active');
75
+ });
76
+ });
77
+ });
style.css CHANGED
@@ -1,28 +1,51 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Inter', sans-serif;
5
+ }
6
+
7
+ .container {
8
+ max-width: 1400px;
9
+ }
10
+
11
+ .shadow-md {
12
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
13
  }
14
 
15
+ .rounded-xl {
16
+ border-radius: 0.75rem;
 
17
  }
18
 
19
+ /* Custom scrollbar */
20
+ ::-webkit-scrollbar {
21
+ width: 8px;
22
+ height: 8px;
 
23
  }
24
 
25
+ ::-webkit-scrollbar-track {
26
+ background: #f1f1f1;
27
+ border-radius: 10px;
 
 
 
28
  }
29
 
30
+ ::-webkit-scrollbar-thumb {
31
+ background: #c1c1c1;
32
+ border-radius: 10px;
33
  }
34
+
35
+ ::-webkit-scrollbar-thumb:hover {
36
+ background: #a1a1a1;
37
+ }
38
+
39
+ /* Animation for status badges */
40
+ @keyframes pulse {
41
+ 0%, 100% {
42
+ opacity: 1;
43
+ }
44
+ 50% {
45
+ opacity: 0.5;
46
+ }
47
+ }
48
+
49
+ .bg-yellow-100.text-yellow-800 {
50
+ animation: pulse 2s infinite;
51
+ }