Fix publish flow and consolidate My Tools view
- Make publish endpoint idempotent: return success if same content already exists instead of VERSION_EXISTS error (fixes retry issues) - Always refresh tools page after publish dialog closes - Consolidate My Tools page to group versions by tool name - Show version count and list instead of separate rows per version - Sum downloads across all versions for accurate totals Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
@@ -69,7 +69,14 @@
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
<span class="text-sm text-gray-900">v{{ tool.version }}</span>
|
||||
{% if tool.version_count and tool.version_count > 1 %}
|
||||
<span class="ml-1 text-xs text-gray-500">(+{{ tool.version_count - 1 }} more)</span>
|
||||
<div class="text-xs text-gray-400 mt-1">
|
||||
{{ tool.versions[:3]|join(', ') }}{% if tool.version_count > 3 %}...{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p class="text-xs text-gray-500">{{ tool.published_at|timeago }}</p>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
||||
{{ tool.downloads|format_number }}
|
||||
|
||||
Reference in New Issue
Block a user