File size: 5,275 Bytes
17d8690
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289af61
279c973
17d8690
 
279c973
 
 
 
 
 
 
 
17d8690
 
 
 
 
 
 
 
 
279c973
17d8690
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomSidebar extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    width: 240px;
                    background-color: white;
                    height: calc(100vh - 60px);
                    position: sticky;
                    top: 60px;
                    border-right: 1px solid #e2e8f0;
                }
                
                .sidebar {
                    padding: 1.5rem 0;
                }
                
                .menu-item {
                    display: flex;
                    align-items: center;
                    padding: 0.75rem 1.5rem;
                    color: #4a5568;
                    cursor: pointer;
                    transition: all 0.2s;
                }
                
                .menu-item:hover {
                    background-color: #edf2f7;
                    color: #2d3748;
                }
                
                .menu-item.active {
                    background-color: #ebf8ff;
                    color: #3182ce;
                    border-left: 3px solid #3182ce;
                }
                
                .menu-item i {
                    margin-right: 0.75rem;
                }
                
                .menu-group {
                    margin: 1.5rem 0;
                }
                
                .menu-group-title {
                    padding: 0.5rem 1.5rem;
                    font-size: 0.75rem;
                    font-weight: 600;
                    text-transform: uppercase;
                    color: #718096;
                    letter-spacing: 0.05em;
                }
            </style>
            
            <div class="sidebar">
                <div class="menu-group">
                    <div class="menu-group-title">Test Management</div>
                    <a href="/test-cases.html" class="menu-item active">
                        <i data-feather="list"></i>
                        <span>Test Cases</span>
                    </a>
                    <a href="/sit-testing.html" class="menu-item">
                        <i data-feather="layers"></i>
                        <span>SIT Testing</span>
                    </a>
                    <a href="/uat-testing.html" class="menu-item">
                        <i data-feather="users"></i>
                        <span>UAT Testing</span>
                    </a>
                    <a href="/test-runs" class="menu-item">
                        <i data-feather="play"></i>
                        <span>Test Runs</span>
                    </a>
                    <a href="/test-plans" class="menu-item">
                        <i data-feather="calendar"></i>
                        <span>Test Plans</span>
                    </a>
                </div>
<div class="menu-group">
                    <div class="menu-group-title">Defects</div>
                    <a href="/defects" class="menu-item">
                        <i data-feather="alert-circle"></i>
                        <span>Defect Dashboard</span>
                    </a>
                    <a href="/defects/new" class="menu-item">
                        <i data-feather="plus-circle"></i>
                        <span>Create Defect</span>
                    </a>
                </div>
                
                <div class="menu-group">
                    <div class="menu-group-title">Reports</div>
                    <a href="/reports/coverage" class="menu-item">
                        <i data-feather="pie-chart"></i>
                        <span>Test Coverage</span>
                    </a>
                    <a href="/reports/execution" class="menu-item">
                        <i data-feather="bar-chart-2"></i>
                        <span>Execution Trends</span>
                    </a>
                    <a href="/reports/defects" class="menu-item">
                        <i data-feather="trending-up"></i>
                        <span>Defect Analysis</span>
                    </a>
                </div>
                
                <div class="menu-group">
                    <div class="menu-group-title">Settings</div>
                    <a href="/settings/projects" class="menu-item">
                        <i data-feather="folder"></i>
                        <span>Projects</span>
                    </a>
                    <a href="/settings/users" class="menu-item">
                        <i data-feather="users"></i>
                        <span>Users & Groups</span>
                    </a>
                    <a href="/settings/integrations" class="menu-item">
                        <i data-feather="settings"></i>
                        <span>Integrations</span>
                    </a>
                </div>
            </div>
        `;
        
        // Replace feather icons after component is rendered
        setTimeout(() => {
            if (window.feather) {
                window.feather.replace({ class: 'feather-inline' });
            }
        }, 0);
    }
}

customElements.define('custom-sidebar', CustomSidebar);