v0.6.0: per-artifact actions menu (⋯ + right-click)
A ⋯ button on row hover and right-click on a feed row open the same floating menu: Keep / Open / Copy link / Delete. Dismisses on click-away/Escape, edge-flips to stay on-screen. Standalone one-click Delete icon stays; the Trash view keeps its dedicated Undelete. - Row markup: actions grouped in a .row-actions container (delete + ⋯ in the feed/keep views; undelete in trash). Reuses the existing keep endpoint. - Menu only in the normal/keep views, not trash. Keep-toggle syncs the row's kept badge + the preview Keep button, and (in the Keep folder) drops the row when unkept. - Frontend-only (no backend change); inline JS validated with node --check; 152 tests pass; feed renders in all views. Share + Add-label join the menu in later slices. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
57ad58ff2d
commit
548ba3a669
5 changed files with 166 additions and 18 deletions
|
|
@ -30,10 +30,13 @@
|
|||
{% endif %}
|
||||
</span>
|
||||
<span class="artifact-source">{{ artifact.source }}</span>
|
||||
{% if in_trash %}
|
||||
<span class="row-action row-undelete" role="button" tabindex="0" data-undelete="{{ artifact.id }}" title="Restore from Trash" aria-label="Restore {{ artifact.title }}">↩</span>
|
||||
{% else %}
|
||||
<span class="row-action row-delete" role="button" tabindex="0" data-delete="{{ artifact.id }}" title="Delete" aria-label="Delete {{ artifact.title }}">🗑</span>
|
||||
{% endif %}
|
||||
<span class="row-actions">
|
||||
{% if in_trash %}
|
||||
<span class="row-action row-undelete" role="button" tabindex="0" data-undelete="{{ artifact.id }}" title="Restore from Trash" aria-label="Restore {{ artifact.title }}">↩</span>
|
||||
{% else %}
|
||||
<span class="row-action row-delete" role="button" tabindex="0" data-delete="{{ artifact.id }}" title="Delete" aria-label="Delete {{ artifact.title }}">🗑</span>
|
||||
<span class="row-action row-menu-trigger" role="button" tabindex="0" data-menu-trigger title="More actions" aria-label="More actions for {{ artifact.title }}">⋯</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue