feat: rename activities; keep original Garmin title as a tag
Add Activity.original_name (migrated via init_db ALTER). The rename endpoint stores the import title the first time a user renames and clears it if renamed back. Activity detail page gets inline rename (pencil) UI and shows the original title beneath the new name; the activities list shows it as a small tag too. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -118,6 +118,9 @@ export default function ActivitiesPage() {
|
||||
<p className="font-medium text-white group-hover:text-blue-400 transition-colors truncate">
|
||||
{activity.name}
|
||||
</p>
|
||||
{activity.original_name && (
|
||||
<p className="text-xs text-gray-600 truncate">orig. {activity.original_name}</p>
|
||||
)}
|
||||
<p className="text-xs text-gray-500 mt-0.5">{formatDate(activity.start_time)}</p>
|
||||
{/* Compact metrics line — the full metrics column is hidden below sm */}
|
||||
<p className="sm:hidden text-xs text-gray-400 mt-0.5 truncate">
|
||||
|
||||
Reference in New Issue
Block a user