📦 EqualifyEverything / equalify-v2-dashboard-mocks

📄 8-audit_details-ran.html · 301 lines
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
293
294
295
296
297
298
299
300
301<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lucy's Review - Audit Details - Equalify</title>
</head>
<body>
    <header>
        <nav aria-label="Main">
            <ul>
                <li><a href="#">Audits</a></li>
                <li><a href="#">Logs</a></li>
                <li><a href="#">Account</a></li>
            </ul>
        </nav>
    </header>

    <main>
        <h1>Lucy's Review</h1>
        <div aria-live="assertive">Audit ran. Three blockers found.</div>
        <article>
            <h2>Overview</h2>
            <p>2 URLs in audit. Runs monthly. <a href="#">View Audit Logs</a></a></p>
        </article>
        <article>
            <h2>Admin Actions</h2>
            <nav aria-label="Admin Actions">
                <button>Run Audit</button>
                <button>Copy Audit URL</button>
                <a href="#">Edit Audit</a>    
            </nav>
        </article>
        <article>
            <h2>Progress</h2>
            <table>
                <thead>
                    <tr>
                        <th>Audit Snapshot</th>
                        <th>Fixed Blockers</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>11-1-24</td>
                        <td>0%</td>
                    </tr>
                </tbody>
            </table>
        </article>
        <article>
            <h2>Blockers</h2>
            <input type="checkbox" name="toggle" id="toggle_view_options"  />
            <script>
                document.addEventListener("DOMContentLoaded", function () {
                    const viewOptions = document.getElementById("view_options");
                    const toggleViewOptions = document.getElementById("toggle_view_options");

                    // Hide view options by default
                    viewOptions.style.display = "none";
                    viewOptions.setAttribute("aria-hidden", "true");

                    // Toggle visibility on checkbox change
                    toggleViewOptions.addEventListener("change", function () {
                        if (toggleViewOptions.checked) {
                            viewOptions.style.display = "block";
                            viewOptions.setAttribute("aria-hidden", "false");
                        } else {
                            viewOptions.style.display = "none";
                            viewOptions.setAttribute("aria-hidden", "true");
                        }
                    });
                });
            </script>
            <label for="toggle_view_options">
                Show View Options
            </label>
            <section id="view_options">
                <h3>View Options</h3>
                <form>
                    <div role="group" aria-labelledby="search-group">
                        <h4 id="search-group">Blocker Code</h4>
                        <label for="search">Enter Code:</label>
                        <input type="text" id="search">
                    </div>
                    
                    <div role="group" aria-labelledby="filter-blockers-by-url">
                        <h4 id="filter-blockers-by-url">Filter Blockers By URL</h4>
                        <table id="added_pages">
                            <thead>
                                <tr>
                                    <th role="columnheader">URL</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th role="rowheader"><input type="checkbox" id="checkbox-1"><label for="checkbox-1"> https://update.lib.berkeley.edu/</label></th>
                                </tr>
                                <tr>
                                    <th role="rowheader"><input type="checkbox" id="checkbox-2"><label for="checkbox-2">  https://www-stg.berkeley.edu</label></th>
                                </tr>
                            </tbody>
                        </table>
                        <script>
                            document.querySelectorAll('.select_all').forEach(selectAllCheckbox => {
                                selectAllCheckbox.addEventListener('change', function() {
                                    const parent = this.closest('div, table, details, section');
                                    const checkboxes = parent.querySelectorAll('input[type="checkbox"]:not(.select_all)');
                                    checkboxes.forEach(checkbox => checkbox.checked = this.checked);
                                });
                            });
                        </script>
                    </div>

                    <div role="group" aria-labelledby="include-type">
                        <h4 id="include-tyoe">Content Type</h4>
                        <select id="importer" aria-labelledby="include-type"> 
                            <option selected>HTML</option>
                            <option>PDF</option>
                        </select>
                    </div>
                    
                    <div role="group" aria-labelledby="include-tags">
                        <h4 id="include-tags">Include Issues with Tag</h4>

                        <input id="tag-select-all" type="checkbox" checked>
                        <label for="tag-select-all">Select All</label>
                    
                        <input id="tag-wcag-a" name="tag" type="checkbox" checked>
                        <label for="tag-wcag-a">WCAG 2.2 A</label>
                    
                        <input id="tag-wcag-aa" name="tag" type="checkbox" checked>
                        <label for="tag-wcag-aa">WCAG 2.2 AA</label>
                    
                        <input id="tag-wcag-aaa" name="tag" type="checkbox" checked>
                        <label for="tag-wcag-aaa">WCAG 2.2 AAA</label>
                    
                        <input id="tag-heading-elements" name="tag" type="checkbox" checked>
                        <label for="tag-heading-elements">Heading Elements</label>

                        <script>
                            document.addEventListener("DOMContentLoaded", function () {
                                const selectAllCheckbox = document.getElementById("tag-select-all");
                                const tagCheckboxes = document.querySelectorAll('div[aria-labelledby="include-tags"] input[type="checkbox"]:not(#tag-select-all)');
                        
                                selectAllCheckbox.addEventListener("change", function () {
                                    tagCheckboxes.forEach(checkbox => checkbox.checked = selectAllCheckbox.checked);
                                });
                        
                                // Update "Select All" state when any checkbox is manually changed
                                tagCheckboxes.forEach(checkbox => {
                                    checkbox.addEventListener("change", function () {
                                        selectAllCheckbox.checked = [...tagCheckboxes].every(cb => cb.checked);
                                    });
                                });
                            });
                        </script>
                    </div>
                    
                    <div role="group" aria-labelledby="include-status">
                        <h4 id="include-status">Include Blockers with Status</h4>
                        <input id="status-active" type="checkbox" checked>
                        <label for="status-active">Active</label>
                    
                        <input id="status-ignored" type="checkbox">
                        <label for="status-ignored">Ignored</label>
                    
                        <input id="status-equalified" type="checkbox" checked>
                        <label for="status-equalified">Equalified</label>
                    </div>
                    
                    <div role="group" aria-labelledby="sort-group">
                        <h4 id="sort-group">Sort</h4>
                        <input id="sort-az" name="sort" type="radio" checked>
                        <label for="sort-az">Alphabetically (A to Z)</label>
                    
                        <input id="sort-za" name="sort" type="radio">
                        <label for="sort-za">Alphabetically (Z to A)</label>
                    
                        <input id="sort-active-most" name="sort" type="radio">
                        <label for="sort-active-most">Active Blockers (Most to Least)</label>
                    
                        <input id="sort-active-least" name="sort" type="radio">
                        <label for="sort-active-least">Active Blockers (Least to Most)</label>                    
                    </div>
                    <button>Save View Options</button>
                </form>
            </section>
            <section>
                <h3>All Blockers - Hiding Ignored Blockers</h3>
                <div class="accordion">
                    <h4>
                        <button id="issue-empty-alt-text" type="button" aria-expanded="false" class="accordion-trigger">
                            Empty Alt Text (2 Active Blockers) - Tags: WCAG 2.2 AA, Images
                        </button>
                    </h4>
                    <div role="region" aria-labelledby="issue-empty-alt-text" style="display: none;">
                        <a href="#">More info on "Empty Alt Text" Issue</a>
                        <input id="all-repeat-link-text" type="checkbox" class="select_all"> <label for="all-repeat-link-text">Select All Blockers with "Empty Alt Text" Issue</label>
                        <table summary="Includes all blockers related to the Empty Alt Text issue. Blocker code is in the first column, page title and url of the page with the blocker are in the third and fourth column, blocker status is in the fifth column, the check that caught the blocker is in the sixth column, and the audit date is in the seventh collumn. Each row represents a new blocker.">
                            <thead>
                                <tr>
                                    <th>Blocker Code</th>
                                    <th>Page Title</th>
                                    <th>URL</th>
                                    <th>Status</th>
                                    <th>Audit Date</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th role="rowheader"><input id="blocker-3" type="checkbox"> <label for="blocker-3"><code>&lt;img class="weird_heading"&gt;</code></label></th>
                                    <td>Berkeley Library (Staging)</td>
                                    <td><code>https://update.lib.berkeley.edu/</code></td>
                                    <td>Active</td>
                                    <td>12-1-2024</td>
                                </tr>
                                <tr>
                                    <th role="rowheader"><input id="blocker-2" type="checkbox"> <label for="blocker-2"><code>&lt;img alt="" &gt;</code></th>
                                    <td>Berkeley Homepage (Staging)</td>
                                    <td><code>https://www-stg.berkeley.edu</code></td>
                                    <td>Active</td>
                                    <td>12-1-2024</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <h4>
                        <button id="issue-repeat-link-text" type="button" aria-expanded="false" class="accordion-trigger">
                            Repeat Link Text (1 Active Blocker) - Tags: Links, Benefits Screen Readers
                        </button>
                    </h4>
                    <div role="region" aria-labelledby="issue-repeat-link-text" style="display: none;">
                        <a href="#">More info on "Empty Alt Text" Issue</a>
                        <input id="all-empty-alt-text" type="checkbox" class="select_all"> <label for="all-empty-alt-text">Select All Blockers with "Empty Alt Text" Issue</label>
                        <table summary="Includes all blockers related to the Repeat Link Text issue. Blocker code is in the first column,  in the second, page title and url of the page with the blocker are in the third and fourth column, blocker status is in the fifth column, the check that caught the blocker is in the sixth column, and the audit date is in the seventh collumn. Each row represents a new blocker.">
                            <thead>
                                <tr>
                                    <th>Blocker Code</th>
                                    <th>Page Title</th>
                                    <th>URL</th>
                                    <th>Status</th>
                                    <th>Audit Date</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th role="rowheader"><input id="blocker-1" type="checkbox"><label for="blocker-1"><code>&lt;a class=&quot;hello this is a test&quot;&gt;Hello World&lt;/a&gt;&lt;a href=&quot;#&quot;&gt;Hello World&lt;/a&gt;</code></label></th>
                                    <td>Berkeley Homepage (Staging)</td>
                                    <td><code>https://www-stg.berkeley.edu</code></td>
                                    <td>Active</td>
                                    <td>12-1-2024</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
    
                </div>
                <script>
                // Accordion
                document.addEventListener("DOMContentLoaded", function () {
                    document.querySelectorAll(".accordion-trigger").forEach((button) => {
                        button.addEventListener("click", function () {
                            const panel = this.parentElement.nextElementSibling;
                            const isExpanded = this.getAttribute("aria-expanded") === "true";

                            // Toggle aria-expanded
                            this.setAttribute("aria-expanded", !isExpanded);

                            // Toggle visibility
                            if (!isExpanded) {
                                panel.style.display = "block";
                            } else {
                                panel.style.display = "none";
                            }
                        });
                    });
                });

                // Select All
                document.querySelectorAll('.select_all').forEach(selectAllCheckbox => {
                    selectAllCheckbox.addEventListener('change', function() {
                        const parent = this.closest('div, table, details');
                        const checkboxes = parent.querySelectorAll('input[type="checkbox"]:not(.select_all)');
                        checkboxes.forEach(checkbox => checkbox.checked = this.checked);
                    });
                });
                </script>
            </section>
            <section>
                <h3>Manage Selected Blockers</h3>
                <nav aria-label="Manage Selected Blockers">
                    <button onclick="window.location.href='9-audit_details-ignored_item.html';">Ignore Blockers</button>
                </nav>
            </section>
        </article>
    </main>

</body>
</html>