Refactor Spotify integration: rename oauth_id to spotify_id for consistency; update database schema and migration scripts; enhance error handling and logging in import helper; improve profile template to reflect new column name.

This commit is contained in:
Christian Krakau-Louis
2025-05-27 22:20:41 +02:00
parent 2f55f898ed
commit b20dee5a1b
6 changed files with 207 additions and 84 deletions
+5 -7
View File
@@ -149,12 +149,11 @@
<div class="flex items-center mb-3">
<i class="fab fa-spotify text-[#1DB954] text-2xl mr-3"></i>
<div>
<h4 class="font-medium">Spotify</h4>
<p class="text-sm text-gray-600">
<h4 class="font-medium">Spotify</h4> <p class="text-sm text-gray-600">
{% if current_user.spotify_token %}
Connected
{% if current_user.oauth_id %}
as {{ current_user.oauth_id }}
{% if current_user.spotify_id %}
as {{ current_user.spotify_id }}
{% endif %}
{% else %}
Not connected
@@ -363,10 +362,9 @@
{% endif %}
</td>
</tr>
{% if current_user.spotify_token %}
<tr class="border-b border-gray-200">
{% if current_user.spotify_token %} <tr class="border-b border-gray-200">
<td class="py-2 font-medium">Spotify ID:</td>
<td class="py-2">{{ current_user.oauth_id or 'Unknown' }}</td>
<td class="py-2">{{ current_user.spotify_id or 'Unknown' }}</td>
</tr>
<tr class="border-b border-gray-200">
<td class="py-2 font-medium">Token Expiry:</td>