Compare commits

...
1 Commits
Author SHA1 Message Date
Jeroen SchweitzerandClaude Opus 4.5 cc6068b759 chore: release v1.5.4
Build and Push / release (push) Successful in 2s
Build and Push / build (push) Successful in 3m9s
Add user display in environment section header for debugging OIDC
user resolution issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 14:05:16 +01:00
3 changed files with 74 additions and 32 deletions
+8
View File
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.5.4] - 2026-01-07
### Added
- **User display in environment section** - Shows authenticated user in section header for debugging
- Displays `user: {username}` next to "Environment" header when data loads
- Helps diagnose user resolution issues with OIDC authentication
## [1.5.3] - 2026-01-07 ## [1.5.3] - 2026-01-07
### Changed ### Changed
@@ -129,20 +129,41 @@ class _DashboardContentState extends ConsumerState<DashboardContent> {
const SizedBox(height: 24), const SizedBox(height: 24),
// Environment - Sun, Weather, Forecast, Air Quality // Environment - Sun, Weather, Forecast, Air Quality
_SectionHeader(title: 'Environment', icon: Icons.eco),
const SizedBox(height: 8),
environmentAsync.when( environmentAsync.when(
data: (envData) => _EnvironmentSection( data: (envData) => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_SectionHeader(
title: 'Environment',
icon: Icons.eco,
subtitle: envData.user != null ? 'user: ${envData.user}' : null,
),
const SizedBox(height: 8),
_EnvironmentSection(
envData: envData, envData: envData,
onRefresh: () => ref.invalidate(environmentProvider), onRefresh: () => ref.invalidate(environmentProvider),
), ),
loading: () => const Card( ],
),
loading: () => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const _SectionHeader(title: 'Environment', icon: Icons.eco),
const SizedBox(height: 8),
const Card(
child: Padding( child: Padding(
padding: EdgeInsets.all(32), padding: EdgeInsets.all(32),
child: Center(child: CircularProgressIndicator()), child: Center(child: CircularProgressIndicator()),
), ),
), ),
error: (error, _) => Card( ],
),
error: (error, _) => Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const _SectionHeader(title: 'Environment', icon: Icons.eco),
const SizedBox(height: 8),
Card(
child: Padding( child: Padding(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
child: Row( child: Row(
@@ -163,6 +184,8 @@ class _DashboardContentState extends ConsumerState<DashboardContent> {
), ),
), ),
), ),
],
),
), ),
const SizedBox(height: 24), const SizedBox(height: 24),
@@ -185,10 +208,12 @@ class _SectionHeader extends StatelessWidget {
const _SectionHeader({ const _SectionHeader({
required this.title, required this.title,
required this.icon, required this.icon,
this.subtitle,
}); });
final String title; final String title;
final IconData icon; final IconData icon;
final String? subtitle;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@@ -209,6 +234,15 @@ class _SectionHeader extends StatelessWidget {
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
), ),
if (subtitle != null) ...[
const SizedBox(width: 8),
Text(
subtitle!,
style: Theme.of(context).textTheme.labelSmall?.copyWith(
color: colorScheme.outline,
),
),
],
], ],
); );
} }
+1 -1
View File
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 1.5.3+1 version: 1.5.4+1
environment: environment:
sdk: ^3.10.4 sdk: ^3.10.4