-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.html
More file actions
292 lines (272 loc) · 14.5 KB
/
gallery.html
File metadata and controls
292 lines (272 loc) · 14.5 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
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Olho Review Workspace</title>
<link rel="stylesheet" href="src/shared/renaissance-theme.css" />
<link rel="stylesheet" href="gallery.css" />
</head>
<body>
<div class="olho-app-shell gallery-shell">
<div class="olho-main-shell">
<header class="gallery-header olho-topbar">
<div class="page-title-wrap">
<p class="eyebrow"><img class="eyebrow-icon" src="icons/icon-32.png" alt="" aria-hidden="true" /> Olho</p>
<div class="title-row">
<h1>Review Workspace</h1>
<span id="itemCount" class="pill" aria-live="polite">0</span>
</div>
<p class="page-subtitle">Local review sessions, screenshots, reports, and recordings.</p>
</div>
<nav class="olho-nav olho-header-nav" aria-label="Olho sections">
<a class="olho-nav-link" href="popup.html">Capture</a>
<a class="olho-nav-link" href="record.html">Record</a>
<a class="olho-nav-link" href="gallery.html" aria-current="page">Memory</a>
<a class="olho-nav-link" href="export-report.html">Export</a>
<a class="olho-nav-link" href="options.html">Settings</a>
<a class="olho-nav-link" href="privacy.html">Privacy</a>
</nav>
</header>
<main class="layout">
<section class="panel content-panel" aria-labelledby="libraryTitle">
<div class="section-head section-head-library">
<h2 id="libraryTitle">Review Workspace</h2>
<div class="library-actions">
<input id="designReviewImportInput" type="file" accept="image/png,image/jpeg,image/webp" hidden />
<button id="importDesignReviewBtn" type="button" class="ghost">Import Design for Review</button>
<button id="refreshBtn" type="button" class="ghost icon-only-btn" aria-label="Refresh library">
<svg class="btn-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 7H4v4M4 11a8 8 0 1 0 2.3-5.7" fill="none" stroke="currentColor" stroke-width="1.7"/></svg>
</button>
</div>
</div>
<section class="review-workspace-summary" aria-labelledby="reviewWorkspaceSummaryTitle">
<div>
<h3 id="reviewWorkspaceSummaryTitle">Workspace overview</h3>
<p>Review cards track findings, severity, source type, and report readiness locally.</p>
</div>
<div class="review-stat-grid">
<article class="review-stat-card">
<span>Review items</span>
<strong id="reviewWorkspaceItemCount">0</strong>
</article>
<article class="review-stat-card">
<span>Reviewed</span>
<strong id="reviewWorkspaceReviewedCount">0</strong>
</article>
<article class="review-stat-card">
<span>Findings</span>
<strong id="reviewWorkspaceFindingCount">0</strong>
</article>
<article class="review-stat-card">
<span>Reports</span>
<strong id="reviewWorkspaceReportCount">0</strong>
</article>
</div>
</section>
<section class="memory-controls" aria-labelledby="viewsTitle">
<h3 id="viewsTitle">Views</h3>
<nav class="view-nav view-nav-row" aria-label="Memory views">
<button type="button" class="view-btn active" data-view="all">All</button>
<button type="button" class="view-btn" data-view="reviews">Reviews</button>
<button type="button" class="view-btn" data-view="screenshots">Screenshots</button>
<button type="button" class="view-btn" data-view="imports">Imports</button>
<button type="button" class="view-btn" data-view="edited">Edited</button>
<button type="button" class="view-btn" data-view="recordings">Recordings</button>
<button type="button" class="view-btn" data-view="favourites">Kept in Sight</button>
<button type="button" class="view-btn" data-view="trash">Out of Sight</button>
<button type="button" class="view-btn" data-view="storage">Storage Usage</button>
</nav>
<details class="sub-panel section-disclosure">
<summary>More views</summary>
<div class="view-nav view-nav-row aux-view-nav" role="group" aria-label="Additional memory views">
<button type="button" class="view-btn" data-view="recent">Recent</button>
<button type="button" class="view-btn" data-view="folders">Folders</button>
<button type="button" class="view-btn" data-view="tags">Tags</button>
</div>
</details>
<details class="sub-panel section-disclosure">
<summary>Manage folders and tags</summary>
<div class="folder-create">
<input id="newFolderName" type="text" placeholder="New folder" aria-label="New folder name" />
<button id="createFolderBtn" type="button" class="primary">Create</button>
</div>
<details class="sub-panel section-disclosure nested-disclosure">
<summary id="foldersTitle">Folders</summary>
<div id="folderList" class="folder-list" role="list"></div>
</details>
<details class="sub-panel section-disclosure nested-disclosure">
<summary id="tagsTitle">Tags</summary>
<div id="tagList" class="tag-list" role="list"></div>
</details>
</details>
</section>
<div id="filterToolbar" class="toolbar" aria-label="Search and filter controls">
<label class="field">
<span>Search</span>
<input id="searchInput" type="text" placeholder="Search by title" />
</label>
<label class="field">
<span>Type</span>
<select id="typeFilter">
<option value="all">All</option>
<option value="image">Screenshots</option>
<option value="video">Recordings</option>
</select>
</label>
<label class="field">
<span>Folder</span>
<select id="folderFilter"></select>
</label>
<label class="field">
<span>Tag</span>
<select id="tagFilter"></select>
</label>
<label class="field">
<span>Kept in Sight</span>
<select id="favouriteFilter">
<option value="all">All</option>
<option value="only">Only Kept in Sight</option>
<option value="none">Not Kept in Sight</option>
</select>
</label>
<label class="field">
<span>Sort</span>
<select id="sortSelect">
<option value="newest">Newest</option>
<option value="oldest">Oldest</option>
<option value="name">Name</option>
<option value="size">Size</option>
<option value="type">Type</option>
</select>
</label>
</div>
<div id="bulkToolbar" class="bulk-toolbar" hidden>
<label class="checkbox-wrap">
<input type="checkbox" id="selectAllToggle" />
<span>Select all visible</span>
</label>
<span id="selectionCount" class="selection-count" aria-live="polite">0 selected</span>
<button type="button" id="bulkZipBtn" class="ghost">Export ZIP</button>
<button type="button" id="bulkDeleteBtn" class="danger">Move Out of Sight</button>
<button type="button" id="bulkRestoreBtn" class="ghost" hidden>Restore to Sight</button>
<button type="button" id="bulkPermanentDeleteBtn" class="danger" hidden>Delete Permanently</button>
<button type="button" id="bulkClearSelectionBtn" class="ghost">Clear Selection</button>
<details id="bulkMoreActions" class="bulk-more section-disclosure">
<summary>Bulk More</summary>
<div class="bulk-more-actions">
<div id="bulkMoveGroup" class="bulk-inline-group">
<label class="field inline-field">
<span>Move selected</span>
<select id="bulkFolderSelect"></select>
</label>
<button type="button" id="bulkMoveBtn" class="ghost">Move</button>
</div>
<div id="bulkTagGroup" class="bulk-inline-group">
<label class="field inline-field">
<span>Tag selected</span>
<input id="bulkTagInput" type="text" placeholder="tag1, tag2" />
</label>
<button type="button" id="bulkTagBtn" class="ghost">Apply Tags</button>
</div>
<button type="button" id="bulkFavouriteBtn" class="ghost">Keep in Sight</button>
<button type="button" id="bulkUnfavouriteBtn" class="ghost">Remove Sight Mark</button>
<button type="button" id="bulkMetadataBtn" class="ghost">Metadata JSON</button>
</div>
</details>
</div>
<p id="selectionLive" class="sr-only" role="status" aria-live="polite"></p>
<section id="libraryView" aria-label="Library items">
<div id="emptyState" class="empty-state" hidden>
<h3>Nothing captured yet.</h3>
<p>Use Capture to add screenshots or recordings.</p>
<p>Your local library lives only on this browser.</p>
</div>
<div id="galleryGrid" class="gallery-grid" role="grid" aria-label="Local media library"></div>
</section>
<section id="storageView" class="hidden" aria-labelledby="storageTitle">
<h3 id="storageTitle">Storage Usage</h3>
<p class="muted">Data is stored locally in this browser profile. Clearing browser data may remove your library.</p>
<div id="usageStats" class="stats-grid"></div>
<div class="largest-section">
<h4>Largest Files</h4>
<div id="largestList" class="largest-list"></div>
</div>
<div class="storage-actions">
<button type="button" id="exportBeforeDeleteBtn" class="ghost btn-with-icon">
<svg class="btn-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v10M8 11l4 4 4-4M5 19h14" fill="none" stroke="currentColor" stroke-width="1.8"/></svg>
<span class="btn-label">Export Metadata Before Delete</span>
</button>
<button type="button" id="deleteAllBtn" class="danger btn-with-icon">
<svg class="btn-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 7h12M9 7V5h6v2M8 7l1 12h6l1-12" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
<span class="btn-label">Delete All Local Data</span>
</button>
</div>
</section>
</section>
<aside class="panel inspector-panel" id="selectionInspector" aria-labelledby="inspectorTitle">
<h2 id="inspectorTitle">Inspector</h2>
<p id="inspectorEmpty" class="muted">Select an item to see details.</p>
<div id="inspectorBody" hidden>
<div class="inspector-preview-wrap">
<img id="inspectorPreviewImage" class="inspector-preview" alt="" hidden />
<video id="inspectorPreviewVideo" class="inspector-preview" controls playsinline hidden></video>
</div>
<dl class="inspector-meta">
<div><dt>Title</dt><dd id="inspectorTitleValue">-</dd></div>
<div><dt>Type</dt><dd id="inspectorTypeValue">-</dd></div>
<div><dt>Date</dt><dd id="inspectorDateValue">-</dd></div>
<div><dt>Size</dt><dd id="inspectorSizeValue">-</dd></div>
<div><dt>Review type</dt><dd id="inspectorReviewTypeValue">-</dd></div>
<div><dt>Findings</dt><dd id="inspectorFindingsValue">-</dd></div>
<div><dt>Report</dt><dd id="inspectorReportValue">-</dd></div>
<div><dt>Tags</dt><dd id="inspectorTagsValue">-</dd></div>
<div><dt>Folder</dt><dd id="inspectorFolderValue">-</dd></div>
</dl>
<div class="inspector-actions" id="inspectorActions">
<button type="button" id="inspectorOpenBtn" class="ghost">Open</button>
<button type="button" id="inspectorReviewBtn" class="ghost">Open in Review Mode</button>
<button type="button" id="inspectorRenameBtn" class="ghost">Rename</button>
<button type="button" id="inspectorFavouriteBtn" class="ghost">Keep in Sight</button>
<button type="button" id="inspectorTagsBtn" class="ghost">Edit Tags</button>
<button type="button" id="inspectorMoveBtn" class="ghost">Move Folder</button>
<button type="button" id="inspectorDeleteBtn" class="danger">Move Out of Sight</button>
<button type="button" id="inspectorRestoreBtn" class="ghost" hidden>Restore</button>
<button type="button" id="inspectorPermanentDeleteBtn" class="danger" hidden>Delete Permanently</button>
</div>
</div>
</aside>
</main>
</div>
</div>
<dialog id="confirmDialog" aria-labelledby="confirmTitle" aria-describedby="confirmBody">
<h2 id="confirmTitle">Confirm action</h2>
<p id="confirmBody"></p>
<div class="dialog-actions">
<button type="button" id="confirmCancelBtn" class="ghost">Cancel</button>
<button type="button" id="confirmAcceptBtn" class="primary">Confirm</button>
</div>
</dialog>
<dialog id="inputDialog" aria-labelledby="inputDialogTitle" aria-describedby="inputDialogBody">
<h2 id="inputDialogTitle">Update value</h2>
<p id="inputDialogBody"></p>
<label class="field" for="inputDialogField">
<span>Value</span>
<input id="inputDialogField" type="text" />
</label>
<div class="dialog-actions">
<button type="button" id="inputDialogCancelBtn" class="ghost">Cancel</button>
<button type="button" id="inputDialogAcceptBtn" class="primary">Apply</button>
</div>
</dialog>
<dialog id="previewDialog" aria-labelledby="previewTitle">
<h2 id="previewTitle">Recording Preview</h2>
<video id="previewVideo" controls playsinline></video>
<div class="dialog-actions">
<button type="button" id="previewCloseBtn" class="primary">Close</button>
</div>
</dialog>
<div id="toast" class="toast" role="status" aria-live="polite" aria-atomic="true"></div>
<script type="module" src="gallery.js"></script>
</body>
</html>