-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
221 lines (200 loc) Β· 9.49 KB
/
Copy pathindex.html
File metadata and controls
221 lines (200 loc) Β· 9.49 KB
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
ο»Ώ<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>πΏ Branch Manager</title>
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="app">
<!-- Header -->
<header class="header">
<div class="header-content">
<div class="logo">
<span class="logo-icon">πΏ</span>
<h1>Branch Manager</h1>
</div>
<div class="header-status">
<span class="status-dot" id="statusDot"></span>
<span id="connectionStatus">Not Connected</span>
</div>
</div>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Connection Panel -->
<section class="panel connection-panel" id="connectionPanel">
<h2 class="panel-title">
<span class="icon">π</span>
Azure DevOps Connection
</h2>
<div class="form-grid form-grid-3">
<div class="form-group">
<label for="organizationInput">Organization Name</label>
<input type="text" id="organizationInput" placeholder="e.g., mycompany">
<span class="form-hint">Your Azure DevOps organization name (from dev.azure.com/<org>)</span>
</div>
<div class="form-group">
<label for="patInput">Personal Access Token</label>
<input type="password" id="patInput" placeholder="Enter your PAT">
<span class="form-hint">PAT with Code (Read & Write) permissions</span>
</div>
<div class="form-group form-group-btn">
<label> </label>
<button id="connectBtn" class="btn btn-primary btn-connect">
<span class="btn-icon">π</span>
Connect
</button>
</div>
</div>
<div id="connectionError" class="error-message hidden"></div>
</section>
<!-- Selection Panel -->
<section class="panel selection-panel hidden" id="selectionPanel">
<h2 class="panel-title">
<span class="icon">π</span>
Select Repository
</h2>
<div class="form-grid">
<div class="form-group">
<label for="projectSelect">Project</label>
<div class="select-wrapper">
<select id="projectSelect" disabled>
<option value="">Loading projects...</option>
</select>
<span class="select-arrow">βΌ</span>
</div>
</div>
<div class="form-group">
<label for="repoSelect">Repository</label>
<div class="select-wrapper">
<select id="repoSelect" disabled>
<option value="">Select a project first</option>
</select>
<span class="select-arrow">βΌ</span>
</div>
</div>
</div>
</section>
<!-- Filter Panel -->
<section class="panel filter-panel hidden" id="filterPanel">
<h2 class="panel-title">
<span class="icon">π</span>
Filter & Sort
</h2>
<div class="form-grid form-grid-4">
<div class="form-group">
<label for="filterInput">Branch Filter</label>
<input type="text" id="filterInput" placeholder="e.g., feature/* or EPAC/*">
</div>
<div class="form-group">
<label for="sortSelect">Sort By</label>
<div class="select-wrapper">
<select id="sortSelect">
<option value="CommitDate">Commit Date</option>
<option value="AuthorDate">Author Date</option>
<option value="Name">Name</option>
</select>
<span class="select-arrow">βΌ</span>
</div>
</div>
<div class="form-group">
<label for="orderSelect">Order</label>
<div class="select-wrapper">
<select id="orderSelect">
<option value="desc">Newest First</option>
<option value="asc">Oldest First</option>
</select>
<span class="select-arrow">βΌ</span>
</div>
</div>
<div class="form-group">
<label for="ageFilter">Older Than (days)</label>
<input type="number" id="ageFilter" placeholder="e.g., 30" min="0">
</div>
</div>
<div class="button-row">
<button id="loadBranchesBtn" class="btn btn-primary" disabled>
<span class="btn-icon">π</span>
Load Branches
</button>
<button id="clearFiltersBtn" class="btn btn-secondary">
<span class="btn-icon">β</span>
Clear Filters
</button>
</div>
</section>
<!-- Branches Panel -->
<section class="panel branches-panel hidden" id="branchesPanel">
<div class="panel-header">
<h2 class="panel-title">
<span class="icon">π³</span>
Branches
<span id="branchCount" class="badge">0</span>
</h2>
<div class="panel-actions">
<button id="selectAllBtn" class="btn btn-small btn-ghost" disabled>Select All</button>
<button id="selectNoneBtn" class="btn btn-small btn-ghost" disabled>Select None</button>
<button id="deleteSelectedBtn" class="btn btn-small btn-danger" disabled>
<span class="btn-icon">ποΈ</span>
Delete Selected (<span id="selectedCount">0</span>)
</button>
</div>
</div>
<div id="branchesContainer" class="branches-container">
<div class="empty-state">
<div class="empty-icon">π</div>
<p>Select a project and repository to view branches</p>
</div>
</div>
</section>
<!-- Action Log Panel -->
<section class="panel log-panel" id="logPanel">
<div class="panel-header">
<h2 class="panel-title">
<span class="icon">π</span>
Action Log
</h2>
<button id="clearLogBtn" class="btn btn-small btn-ghost">Clear</button>
</div>
<div id="logContainer" class="log-container">
<div class="log-entry log-info">
<span class="log-time">--:--:--</span>
<span class="log-message">Branch Manager initialized. Select a project to begin.</span>
</div>
</div>
</section>
</main>
<!-- Delete Confirmation Modal -->
<div id="deleteModal" class="modal hidden">
<div class="modal-backdrop"></div>
<div class="modal-content">
<div class="modal-header">
<h3>β οΈ Confirm Deletion</h3>
</div>
<div class="modal-body">
<p>You are about to delete <strong id="deleteCount">0</strong> branch(es):</p>
<div id="deleteBranchList" class="delete-branch-list"></div>
<div class="warning-box">
<strong>β οΈ Warning:</strong> This action cannot be undone!
</div>
</div>
<div class="modal-footer">
<button id="cancelDeleteBtn" class="btn btn-secondary">Cancel</button>
<button id="confirmDeleteBtn" class="btn btn-danger">Delete Branches</button>
</div>
</div>
</div>
<!-- Loading Overlay -->
<div id="loadingOverlay" class="loading-overlay hidden">
<div class="loading-spinner"></div>
<p id="loadingText">Loading...</p>
</div>
</div>
<script src="app.js"></script>
</body>
</html>