Skip to content

Commit e6f6b29

Browse files
Archithclaude
andcommitted
Move export buttons to ended sessions where they make sense
- Moved Slack/Email/CSV export buttons to ENDED sessions only - Export only makes sense after interview is complete with feedback - Active sessions now show: View, Join, End - Ended sessions now show: View, Slack, Email (Soon), CSV (Soon), Delete Forever 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 93670ad commit e6f6b29

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/app.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,9 @@
785785
<span>View</span>
786786
</button>
787787
788-
${!isArchivedView ? `
789-
<button class="action-btn slack-btn" data-code="${session.code}" title="Export to Slack">
788+
789+
${isArchivedView ?
790+
`<button class="action-btn slack-btn" data-code="${session.code}" title="Export to Slack">
790791
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
791792
<path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/>
792793
</svg>
@@ -813,10 +814,8 @@
813814
<span>CSV</span>
814815
<span class="coming-soon-badge">Soon</span>
815816
</button>
816-
` : ''}
817-
818-
${isArchivedView ?
819-
`<button class="action-btn delete-forever-btn" data-code="${session.code}" title="Permanently Delete">
817+
818+
<button class="action-btn delete-forever-btn" data-code="${session.code}" title="Permanently Delete">
820819
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
821820
<polyline points="3 6 5 6 21 6"></polyline>
822821
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>

0 commit comments

Comments
 (0)