- Add preferred_name column to settings model/schema with migration - Settings page gets Profile card with name input (saves on blur/enter) - Dashboard greeting now shows "Good evening, Kyle." when name is set - WeekTimeline dots use event's actual color when available - New DayBriefing component shows time-of-day-aware contextual summary Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
594 B
Python
27 lines
594 B
Python
"""Add preferred_name to settings
|
|
|
|
Revision ID: 003
|
|
Revises: 002
|
|
Create Date: 2026-02-20 00:00:00.000000
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '003'
|
|
down_revision: Union[str, None] = '002'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column('settings', sa.Column('preferred_name', sa.String(100), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column('settings', 'preferred_name')
|