Skip to content
wiki.fftac.org

Page Run A Prompt - Source Excerpt 12

Back to Page Run A Prompt

Summary

This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/page-run-a-prompt.php so readers can inspect the evidence without opening the full source file.

**Source path:** Spiralist/wp-content/themes/spiralist/page-run-a-prompt.php

<span data-persona-lab-history-count><?php echo esc_html($ui_text('page.run_prompt.lab.history_empty_count', 'No snapshots')); ?></span>
                        </div>
                        <div class="spiralist-persona-lab-history__actions">
                            <button class="spiralist-button spiralist-button--secondary" type="button" data-persona-lab-history-save><?php echo esc_html($ui_text('page.run_prompt.lab.history_save', 'Save Current')); ?></button>
                            <button class="spiralist-button spiralist-button--secondary" type="button" data-persona-lab-history-clear hidden><?php echo esc_html($ui_text('page.run_prompt.lab.history_clear', 'Clear History')); ?></button>
                        </div>
                        <div class="spiralist-persona-lab-history__filters" data-persona-lab-history-filters>
                            <label>
                                <span><?php echo esc_html($ui_text('page.run_prompt.lab.history_search', 'Search')); ?></span>
                                <input type="search" maxlength="160" data-persona-lab-history-search placeholder="<?php echo esc_attr($ui_text('page.run_prompt.lab.history_search_placeholder', 'Find title, lens, source, or prompt text')); ?>" />
                            </label>
                            <label>
                                <span><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter', 'Filter')); ?></span>
                                <select data-persona-lab-history-filter>
                                    <option value="all"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_all', 'All snapshots')); ?></option>
                                    <option value="package-exports"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_exports', 'Package exports')); ?></option>
                                    <option value="profile-saves"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_saves', 'Profile saves')); ?></option>
                                    <option value="restores-reviews"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_reviews', 'Restores and reviews')); ?></option>
                                    <option value="big-five-hexaco"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_hexaco', 'Big Five + HEXACO')); ?></option>
                                    <option value="clique-risk-audit"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_clique', 'Clique-risk audit')); ?></option>
                                    <option value="playful-friction"><?php echo esc_html($ui_text('page.run_prompt.lab.history_filter_playful', 'Playful friction')); ?></option>
                                </select>
                            </label>
                        </div>
                        <div class="spiralist-persona-lab-history__grid" data-persona-lab-history-list></div>
                        <p class="spiralist-persona-lab-history__empty spiralist-muted" data-persona-lab-history-empty data-history-empty-text="<?php echo esc_attr($ui_text('page.run_prompt.lab.history_empty', 'No local snapshots yet.')); ?>" data-history-no-match-text="<?php echo esc_attr($ui_text('page.run_prompt.lab.history_no_match', 'No matching local snapshots.')); ?>"><?php echo esc_html($ui_text('page.run_prompt.lab.history_empty', 'No local snapshots yet.')); ?></p>
                        <p class="spiralist-persona-lab-history__status spiralist-muted" data-persona-lab-history-status></p>
                    </div>
                    <div class="spiralist-persona-lab-inspector" data-persona-lab-inspector>
                        <div>
                            <p class="spiralist-section-tag"><?php echo esc_html($ui_text('page.run_prompt.lab.inspector_tag', 'Spiralist AI Package Inspector')); ?></p>
                            <h4 class="spiralist-card-title"><?php echo esc_html($ui_text('page.run_prompt.lab.inspector_title', 'Validate an Advanced Persona package.')); ?></h4>
                        </div>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.inspector_file', 'Package file')); ?></span>
                            <input type="file" accept=".uaix,.zip,.txt" data-persona-lab-inspector-file />
                        </label>
                        <label>
                            <span><?php echo esc_html($ui_text('page.run_prompt.lab.compare_file', 'Compare package')); ?></span>
                            <input type="file" accept=".uaix,.zip,.txt" data-persona-lab-compare-file />
                        </label>
                        <div class="spiralist-persona-lab-inspector__actions">
                            <button class="spiralist-button spiralist-button--secondary" type="button" data-persona-lab-profile-restore disabled><?php echo esc_html($ui_text('page.run_prompt.lab.profile_restore', 'Load Profile Prompt')); ?></button>
                            <button class="spiralist-button spiralist-button--secondary" type="button" data-persona-lab-review-stage disabled><?php echo esc_html($ui_text('page.run_prompt.lab.review_stage', 'Stage Review Prompt')); ?></button>
                            <button class="spiralist-button spiralist-button--secondary" type="button" data-persona-lab-review-save disabled><?php echo esc_html($ui_text('page.run_prompt.lab.review_save', 'Save Review Draft')); ?></button>
                            <button class="spiralist-button spiralist-button--secondary" type="button" data-persona-lab-compare-stage disabled><?php echo esc_html($ui_text('page.run_prompt.lab.compare_stage', 'Stage Compare Review')); ?></button>
                        </div>
                        <div class="spiralist-persona-lab-review-controls" data-persona-lab-review-controls>
                            <label>
                                <span><?php echo esc_html($ui_text('page.run_prompt.lab.review_decision', 'Review decision')); ?></span>
                                <select data-persona-lab-review-decision>
                                    <option value="undecided"><?php echo esc_html($ui_text('page.run_prompt.lab.review_decision_undecided', 'Undecided')); ?></option>
                                    <option value="accept-local"><?php echo esc_html($ui_text('page.run_prompt.lab.review_decision_accept', 'Accept for local use')); ?></option>
                                    <option value="rewrite-required"><?php echo esc_html($ui_text('page.run_prompt.lab.review_decision_rewrite', 'Needs rewrite')); ?></option>
                                    <option value="reject"><?php echo esc_html($ui_text('page.run_prompt.lab.review_decision_reject', 'Reject package')); ?></option>
                                </select>
                            </label>
                            <label>
                                <span><?php echo esc_html($ui_text('page.run_prompt.lab.review_privacy', 'Privacy review')); ?></span>
                                <select data-persona-lab-review-privacy>
                                    <option value="unreviewed"><?php echo esc_html($ui_text('page.run_prompt.lab.review_privacy_unreviewed', 'Unreviewed')); ?></option>
                                    <option value="clear"><?php echo esc_html($ui_text('page.run_prompt.lab.review_privacy_clear', 'No private text found')); ?></option>
                                    <option value="redact"><?php echo esc_html($ui_text('page.run_prompt.lab.review_privacy_redact', 'Redaction needed')); ?></option>
                                    <option value="do-not-share"><?php echo esc_html($ui_text('page.run_prompt.lab.review_privacy_blocked', 'Do not share')); ?></option>
                                </select>
                            </label>
                            <label>
                                <span><?php echo esc_html($ui_text('page.run_prompt.lab.review_runtime_notes', 'Runtime notes')); ?></span>
                                <textarea rows="3" data-persona-lab-review-runtime></textarea>
                            </label>
                            <label>
                                <span><?php echo esc_html($ui_text('page.run_prompt.lab.review_notes', 'Reviewer notes')); ?></span>
                                <textarea rows="3" data-persona-lab-review-notes></textarea>
                            </label>
                        </div>
                        <div class="spiralist-persona-lab-package-summary" data-persona-lab-package-summary hidden aria-live="polite"></div>
                        <div class="spiralist-persona-lab-package-summary" data-persona-lab-compare-summary hidden aria-live="polite"></div>