Changelog

All notable changes to Omada Hub will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Notes

  • Future changes will be documented here before release

[1.6.0] - 2026-10-30

Added

  • Award Tags + Award Views foundation
    • Added company-scoped award tagging and filtered award view data model support (AwardTag, AwardTagAssignment, AwardView, AwardViewTag, AwardViewMatchMode) with EF mappings and migration.
    • Added business-layer services/controllers for award tags and award views, including CRUD, bulk tag operations, keyword preview tagging, and filtered view award retrieval/count logic.
    • Added Award Views management in /private/companyadmin/awards with tag-based matching (Any/All), active/inactive status, recipient overrides, and live matched-award count.

Changed

  • Website awards integration and cache pipeline now support view-specific embeds

    • Updated Website Integration Settings to emit per-view awards embed codes/shortcodes alongside the existing all-awards token.
    • Updated awards token handling to support both legacy company tokens and view tokens ({companyId}|view:{viewId}).
    • Extended awards render cache, queue, background renderer, and ETag/blob path strategy to support independent cache variants for all-awards and each Award View.
    • Updated awards HTML generation to support optional view rendering and recipient branding overrides (name/url/logo) for Award Views.
  • Awards admin UX improvements

    • Added inline “embed code” action on Award Views in /private/companyadmin/awards with modal output for both script and WordPress shortcode formats, plus recommendation highlighting based on the saved Website Integration method.
    • Reworked /private/companyadmin/awards layout to group Award Categories, Award Tags, and Award Views in the right column, with clearer visual separation from the Awards list.
    • Standardized top action button styling and added header-level add buttons for Categories, Tags, and Views.
    • Added configurable SortOrder for Award Categories so category render order on the public awards embed can be controlled by admins.
    • Added batch category sort editing in Manage Awards with a single Save Category Order action that applies all sort changes together and triggers one cache-dirty cycle.
    • Updated Awards, Award Categories, Award Tags, and Award Views panel styling for stronger visual hierarchy (black section headers, clearer row separators, and improved multi-select action row contrast).

Fixed

  • Awards embed output structure
    • Removed the awards header/logo block from the awards embed template output so returned website HTML focuses on awards content/cards.

[1.5.7] - 2026-10-27

Added

  • Company onboarding questions data foundation
    • Added new DAL model CompanyOnboardingQuestion for company-scoped onboarding questions with ordering, active/required flags, and audit metadata.
    • Added CompanyOnboardingQuestion mapping in teamsuitedbContext including FK to Company, unique (CompanyId, DisplayOrder) ordering constraint, and active/order query index.
    • Added Company.CompanyOnboardingQuestions navigation collection.
    • Added TeamSuiteBusinessLogic.CompanyOnboardingQuestionController with CRUD methods plus default-seed helper for initial optional onboarding questions.
    • Registered CompanyOnboardingQuestionController in dependency injection for upcoming onboarding wizard integration.
    • Added a new optional onboarding Q&A step in UserOnboardingWizard for company onboarding (token invite and claim-account), using active company onboarding questions and default-question fallback.
    • Added onboarding Q&A persistence into CompanyUser.AdminNotes using a managed notes block that replaces prior onboarding Q&A content without overwriting other admin notes.
    • Added new Company Admin page /private/companyadmin/onboarding-questions for Admin/Manager users to manage the three onboarding questionnaire questions.
    • Added default-prefill behavior on the new management page: if a company has no custom questions, the page seeds and displays the three default starter questions.

Fixed

  • Onboarding wizard runtime stability
    • Moved the AI bio modal outside the Step 4 EditForm in UserOnboardingWizard to avoid nested form submission ambiguity.
    • Reworked Step 5 onboarding-answer inputs to avoid dictionary indexer expression binding that caused runtime InvalidOperationException (Unable to evaluate index expressions of type 'PropertyExpression').

[1.5.6] - 2026-10-19

Added

  • Direct download actions in document lists
    • Added a Download button to /private/companyadmin/documents in both Company-Wide and Employee-Specific tabs so files can be downloaded without opening first.
    • Added a Download button to /private/mydocuments for Company-Wide, Employee-Specific, and Personal document rows.

Changed

  • Assigned onboarding document management and deletion flow hardening
    • Updated assigned-document delete transaction handling in DocumentsController.DeleteDocumentWithAssignmentsAsync to run inside EF Core SQL retry execution strategy for compatibility with SqlServerRetryingExecutionStrategy.
    • Updated delete confirmations in Company Admin Document Management to clearly state deletion is not recoverable.
    • Updated Company Admin Document Management action visibility to hide Move and Select Multiple controls when no destination folders exist (root-only state).

Fixed

  • Resolved runtime delete failures for completed onboarding-related employee documents caused by user-initiated transaction usage outside EF execution strategy.

[1.5.5] - 2026-10-19

Added

  • Individual employee fillable form assignment (PASS 3)
    • Added business-layer transactional method DocumentsController.CreateEmployeeFormAssignmentAsync to atomically create an employee-specific document and pending AssignedOnboardingDocument assignment.
    • Added server-side authorization checks so only Admin/Manager users in the same company can create employee-required form assignments.
    • Added server-side active-membership validation for assignment targets.
    • Added employee-specific upload option in DocumentUploadComponent for "Employee must complete this form (fillable PDF only)".

Changed

  • Employee document assignment UX and admin visibility
    • Employee-specific required forms now enforce PDF validation at upload time.
    • Employee-specific required-form uploads now send the same onboarding-assignment email template/subject used by existing onboarding assignment flow.
    • User Management document list now shows assignment status with assigned/completed timestamps for documents that have onboarding assignments.
    • Onboarding Status table now labels assignment source as Individual form vs Library template.
    • My Documents employee-specific tab now shows pending assignment badges/helper text and hides blank source forms once their assignment is completed (UI-only filter; no DB changes).
    • Document delete flows in My Documents, Document Management, and User Management now prompt when a pending assignment exists and, on confirmation, cancel the pending assignment and delete the source document together.

Fixed

  • Fill Out modal safety and employee access rules
    • Added a friendly guard in EmployeeOnboardingDocumentsComponent.OpenPdfModal to prevent non-PDF documents from being opened in the embedded PDF viewer.
    • Updated BlobStorageService.CanUserViewDocument to block inactive assigned employees from viewing employee-specific forms while preserving Admin/Manager visibility.
    • Updated assignment email path to reliably load assigned user data for employee-required form notifications.
    • Updated completion email behavior to notify Admin/Manager users immediately when an individual employee-assigned form is completed.

Fixed

  • OpenIddict token save failure on OAuth flows
    • Expanded OpenIddictAuthorizations.Type and OpenIddictTokens.Type from nvarchar(50) to nvarchar(150) to support long OpenIddict URN token/authorization type values.
    • Added EF migration ExpandOpenIddictTypeColumns and updated ApplicationDbContext model configuration to prevent future schema drift/regressions.
  • Connected Apps / Login with Omada OAuth authorize regression
    • Updated AuthorizationController to use requested scopes (with openid fallback) when querying OpenIddict authorizations instead of an empty scope set.
    • Prevents GET /connect/authorize runtime failures introduced by stricter OpenIddict scope validation in newer package versions.
    • Added defensive exception handling in /connect/authorize so OpenIddict authorization-record lookup/creation failures do not crash with HTTP 500.
    • Added compatibility parsing for omada_company_id in ConnectedAppsService to accept both numeric and string JSON formats and gracefully handle malformed legacy properties payloads.

[1.5.4] - 2026-10-14

Added

  • Email Signature Image Thumbnail Pipeline
    • Added SignatureImageService for signature-safe image generation and reuse.
    • Added signature thumbnail storage in Azure Blob under a dedicated signature-thumbnails/ folder in the same source container.
    • Added profile signature thumbnail generation as PNG at 160px width with proportional height.
    • Added company logo signature thumbnail generation as PNG constrained to 320x160 while preserving aspect ratio and transparency.
    • Added freshness-based thumbnail reuse logic (reuse existing -sig when it is newer than source).

Changed

  • Email Signature Generator Reliability

    • Updated all email signature profile-image templates (Classic, Modern Stacked, Modern Horizontal) to emit explicit width and height attributes with matching inline size styles.
    • Updated signature logo rendering to emit explicit width and height attributes with matching inline size styles based on generated dimensions.
    • Updated profile-image selection in Email Signature Generator to prefer company-specific profile photo first, then fall back to global profile photo.
    • Added deterministic cache-busting version query to signature thumbnail URLs so recently updated photos/logos render immediately instead of stale cached images.
  • Profile Image Update Behavior

    • Updated FileUploadComponent profile uploads to reuse the existing blob filename when available (overwrite in place) and continue using cache-buster query values in UI bindings.
    • Preserved fallback behavior to create a new blob name when no existing profile image URL is available.

Fixed

  • Prevented oversized image blow-up risk in replied/forwarded emails by ensuring signature images reference physically resized thumbnail assets.
  • Resolved stale image behavior in Email Signature Generator after company-specific profile picture updates.
  • Updated Dashboard header profile image to prefer active company-specific profile picture with fallback to global profile picture.

[1.5.3] - 2026-09-16

Changed

  • Performance and Responsiveness Program (Phases 1-3)

    • Phase 1: optimized shared nav metadata loading by replacing full awards-list fetches with a lightweight existence query.
    • Phase 1: updated nav refresh flow to prevent overlapping location/session refresh work and added timing diagnostics for hotspot paths.
    • Phase 2: introduced lightweight company shell summary reads for layout/admin metadata usage instead of heavy full-graph company loads.
    • Phase 2: added short-lived metadata caching for company shell and award-existence lookups with invalidation on updates.
    • Phase 3: reduced refresh fan-out by coalescing SessionStateService state change notifications and suppressing no-op notifications.
    • Phase 3: applied conservative script-loading optimization in App.razor while preserving global script availability.
  • Company Users UI Actions Polish

    • Repositioned action controls to right/end alignment in the actions column.
    • Reordered actions to Resend Claim, Edit, Remove.
    • Updated action styling so button text is black at rest, with white text/icons on hover for readability.
    • Matched action border/icon color coding to claim state semantics (warning for resend/unclaimed, success for edit/claimed, danger for remove).
    • Updated filter toolbar ordering to place Order By before Show Active Users Only and aligned the toolbar to the left.

Fixed

  • Restored MainLayout support icon behavior by ensuring support interop scripts are loaded in a globally available, reliable order.
  • Corrected stale profile-picture state behavior so dashboard profile images refresh reliably after profile photo updates. j

    [1.5.2] - 2026-09-16

Changed

  • Account Registration and Invitation Messaging

    • Removed guidance that instructed users to register with a personal email address.
    • Updated registration page copy to use neutral login-email wording.
    • Updated invitation and reminder email templates to use neutral login-email wording.
    • Updated onboarding and platform documentation to remove personal-vs-company email recommendations.
  • Company User List Sorting

    • Changed the default Company Admin user-list ordering to Last Name.

Fixed

  • Corrected Date Created sorting in Company Admin user list so newest users appear at the top when that option is selected.
[1.5.1] - 2026-09-10

Added

  • AI Profile Photo Generator UX Enhancements
    • Added wardrobe behavior selection so users can choose to keep their current wardrobe or generate a wardrobe change.
    • Added expanded generation guidance and timing instrumentation logs in dashboard flows to support production latency analysis.

Changed

  • Dashboard Performance Optimizations
    • Parallelized dashboard data loading for independent modules to reduce total initialization time.
    • Added targeted stopwatch timing logs for initialization, pre-load steps, dashboard segments, and Customer Connect loading paths.
    • Added short-lived caching for dashboard consent-type lookups and analytics stats reads to reduce repeated database round-trips.
    • Reduced query fan-out by replacing per-message-type Customer Connect template checks with a single aggregated active-type query.

Fixed

  • Removed duplicate company-location fetches during dashboard initialization to prevent redundant DB calls.
  • Limited Blazor circuit detailed errors to development only to improve production runtime behavior.
  • Fixed high-latency dashboard initialization regressions caused by repeated sequential data access patterns.
[1.5.0] - 2026-09-09

Added

  • AI Profile Photo Platform Enhancements (Phases 1-8)
    • Added job-level and per-call telemetry for AI image generation, including token/image usage metadata and estimated OpenAI cost tracking.
    • Added generation tier architecture with Standard, Pro, and Premium profiles and centralized tier configuration.
    • Added transactional AI credit reservation workflow with reserve/commit/release operations and idempotency safeguards.
    • Added Stripe webhook event deduplication storage to prevent duplicate processing.
    • Added expanded identity-preservation mask profile options with deterministic fallback behavior.
    • Added generation tier selector UI in AI profile photo flow with clear tier benefits and credit costs.
    • Added selected tier visibility on the AI profile photo status page.

Changed

  • Refactored AI prompt construction into structured sections to improve maintainability and consistency.
  • Routed AI model/quality/size by selected generation tier with runtime logging and persisted effective settings.
  • Updated logo behavior to support AI-generated logo placement from prompt/reference input when logo option is enabled.
  • Added user-facing warning near logo option indicating logo generation may reduce final-photo realism.

Fixed

  • Resolved startup DI failures in AI photo services by completing required service registrations.
  • Resolved AI credit reservation runtime errors by adding missing DB schema objects for credit transaction tables.
  • Resolved SQL execution-strategy transaction compatibility issue by executing transactional credit operations through EF execution strategy.

[1.4.0] - 2026-09-04

Added

  • Solo Professional Subscription Level
    • Added CompanyType-driven plan support with SoloProfessional and Company options.
    • Added Solo Professional plan selection during company creation, including query-string preselection (?plan=solo|company).
    • Added in-app upgrade path from Solo Professional to Company Hub in billing actions.
    • Added Company Admin visibility for current subscription company type.

Changed

  • Subscription and Onboarding Flow
    • Updated Stripe checkout session creation to branch by company type:
      • Solo Professional uses a dedicated plan price.
      • Company Hub continues to use base + metered seat pricing.
    • Preserved existing trial behavior while applying plan-specific checkout configuration.
    • Updated Company Admin navigation for Solo Professional (plan-aware labels and hidden non-applicable items).
    • Updated Dashboard for Solo Professional to hide non-relevant team modules.
    • Added plan-specific welcome AI credits via configuration:
      • AiPhotoCredits:WelcomeAmount for Company Hub.
      • AiPhotoCredits:SoloProfessionalWelcomeAmount for Solo Professional (3 credits).
  • Team Page responsive card layout updates
    • Added dynamic employee card column widths for standard company team pages when not grouped by location/department:
      • 1 profile uses full width.
      • 2 profiles use 50/50 width.
      • 3 profiles use 33/33/33 width.
      • 4+ profiles continue using 4-column layout.
    • Preserved fixed 4-column card widths when pages are grouped by location or department to keep section rows visually consistent.
    • Updated row alignment to left for partial 4-column rows so trailing empty space remains at the end of the row.
    • Added Solo Professional handling so team cards render at full-width columns across all team render contexts (including location-scoped renders).
    • Added responsive profile image sizing caps:
      • default team card images now use width: 100% with max-width: 320px.
      • Solo Professional images use a larger cap via solo-profile (max-width: 420px).

Fixed

  • Enforced Solo Professional seat limit through shared business-logic guard checks.
  • Corrected login/register return-url handling for Solo create-company onboarding paths.
  • Resolved non-interactive Confirm Email action buttons by switching to link-based navigation.
[1.3.0] - 2026-08-28

Added

  • Custom Domain Feature (Non-WordPress Server-Side Rendering)
    • Added CompanyCustomDomain entity with domain lifecycle tracking:
      • Hostname, verification/certificate status, verification token, timestamps, audit fields
      • soft-delete compatible filtered unique indexes (global hostname uniqueness + one domain per company)
      • FK delete behavior set to Restrict per project standard
    • Added enums for lifecycle management:
      • DomainVerificationStatus (Pending, Verified, Failed)
      • CertificateStatus (Pending, Issued, Failed, Expired)
    • Added DNS verification service using DnsClient:
      • independent TXT verification (_omada-verify.<hostname>) and CNAME validation
      • defensive per-lookup/per-domain error handling to prevent batch job failures
    • Added Hangfire verification flow:
      • polling every 10 minutes
      • token-expiry handling
      • per-domain fault isolation
    • Added Azure managed certificate automation for custom domains:
      • Azure App Service Managed Certificates via Azure.ResourceManager.AppService
      • authentication via DefaultAzureCredential
      • domain activation now requires both successful certificate issuance and hostname binding
    • Added custom-domain host resolution context and middleware:
      • ICustomDomainContext with hostname -> CompanyId resolution
      • short-lived cache (60 seconds)
      • integrated alongside existing anonymous/public route mechanisms
    • Added public custom-domain page serving:
      • serves team page at / and profile page at /{slug}
      • reuses TeamHtmlGenerator and RenderCacheService
      • cache misses return a lightweight loading response with browser retry
    • Added custom-domain HTML shell enhancements:
      • ensured full HTML document output for custom-domain responses
      • includes shared layout stylesheet (/omada-embed-utilities.css)
      • added company top menu and powered-by footer
    • Added custom-domain page content settings in Website Integration:
      • CustomDomainPageTitle (H1)
      • CustomDomainPageDescription (rich text)
      • values persist as company preferences and are rendered on custom-domain team pages under the menu
    • Added cache invalidation on Website Integration save:
      • marks company team cache dirty to force regeneration after settings updates

Changed

  • Company Administration Navigation Simplification
    • Renamed Company Management to Company Info Management
    • Consolidated Customer Connect, Profile & Card Settings, and Recognition & Documents under Feature Management
    • Updated desktop and mobile navigation consistently
    • Improved expanded-state visual hierarchy:
      • stronger section boundary styling
      • dark active parent header treatment
      • clearer submenu heading differentiation
      • improved child submenu indentation

Fixed

  • Prevented activation of custom domains before certificate issuance was complete.
  • Resolved middleware DI lifetime issue caused by captive dependencies during custom-domain serving.
  • Improved DNS verification job resilience by isolating lookup/domain exceptions.

[1.2.1] - 2026-08-07

Added

  • Document Management: Advanced Folder Operations - Complete folder hierarchy with organization and bulk operations
    • Phase 1: Foundation & Folder Support - Backend infrastructure and UI foundation
      • Backend Infrastructure - Complete hierarchical folder system
        • Created DocumentFolder model with parent/child relationship support
        • Added FolderId foreign key to Documents model for folder assignment
        • Configured EF Core relationships with NoAction delete behavior (prevents SQL Server cascade conflicts)
        • Created and applied migration AddDocumentFolderSupport (20260807042650)
        • Implemented DocumentFolderController in TeamSuiteBusinessLogic with full CRUD operations:
          • Create folder (company-wide and user-specific)
          • Read folder tree (recursive and non-recursive)
          • Update folder properties
          • Move folders within hierarchy
          • Soft delete folders (maintains data integrity)
          • Get documents in folder (with recursive option)
        • Registered DocumentFolderController in DI container (Program.cs)
        • Folder model supports: ParentFolderId, CompanyId, UserId, FolderType, SubFolders, Documents, CreatedAt, UpdatedAt, IsActive
        • Delete behavior set to NoAction to prevent multiple cascade path conflicts
        • Folder hierarchy navigation via GetFullPath() method
        • Supports both company-level and user-level folder structures
      • UI Foundation - Modern interface with consistent styling
        • Created shared DocumentTabStyles.css in wwwroot/css/ for consistent styling across pages
        • Designed modern tab navigation component (Company-Wide, Employee-Specific, Onboarding/Personal)
        • Implemented breadcrumb navigation for folder hierarchy (click any level to navigate)
        • Added visual differentiation between folders and files:
          • Folders: Subtle light-gray background row
          • Files: White background row
          • Consistent icon usage (folder icon vs. file icon)
        • Modern, clean interface with subtle colors
        • Responsive layout for mobile/tablet compatibility
        • Consistent action button styling (Bootstrap outline buttons with icons)
        • Accessible navigation with keyboard support
      • Admin Page Redesign (DocumentManagement.razor) - Professional tabbed interface for document organization
        • Converted single-page layout to modern tabbed interface:
          • Company-Wide Documents Tab: Folder navigation, upload, create folder, move documents
          • Employee-Specific Documents Tab: Per-employee document management
          • Onboarding Documents Tab: Assign fillable PDFs to employees
        • Added folder browser with click-to-navigate functionality
        • Implemented "Create Folder" modal with validation
        • Implemented "Move Document to Folder" modal with folder selection dropdown
        • Applied modern styling with consistent action buttons
        • Breadcrumb navigation shows current location in folder hierarchy
        • Root-level navigation via breadcrumb "Home" link
        • Admins/Managers can organize documents into logical folder structures
        • Drag-free folder navigation (click-based for reliability)
        • Visual feedback for folder vs. file rows
        • Modals for folder creation and document movement prevent page navigation
        • Injected DocumentFolderController for folder operations
        • Injected IDbContextFactory<teamsuitedbContext> for direct DB access where needed
        • Uses SessionStateService for company context
        • Maintains folder state via currentFolder and breadcrumbs variables
      • User Page Modernization (MyDocuments.razor) - Enhanced employee document experience
        • Added modern hero header (ClaimAccount-style):
          • Black background with rounded top corners
          • Centered "My Documents" title
          • Clean, professional appearance
        • Integrated tabbed navigation matching admin page:
          • Company-Wide Tab: Browse company folders, read-only documents
          • Employee-Specific Tab: View assigned employee documents
          • Personal Documents Tab: Upload/manage personal files
        • Added company folder browsing in Company-Wide tab:
          • Full folder navigation matching admin structure
          • Breadcrumb navigation
          • Read-only document access
        • Implemented role-based access control:
          • Admin/Manager: "Manage Documents in Admin Console" button (links to /private/companyadmin/documents)
          • Staff: Read-only access, no upload buttons for company/employee docs
          • All Users: Full upload capability for personal documents
        • Converted onboarding section to Bootstrap accordion:
          • "Documents To Complete" header with pending count badge
          • Collapsible accordion (expanded by default)
          • Completely hidden when no pending documents exist
          • Tan gradient background with white content area
          • Black text in all states (collapsed/expanded)
          • "Fill Out" button launches PDF editor modal
        • Applied shared DocumentTabStyles.css for consistency
        • Employees see a clean, organized view of all document types
        • Onboarding tasks are prominent but not overwhelming (collapsible)
        • Role-appropriate actions (staff can't accidentally upload to company folders)
        • Personal documents remain user-controlled and portable across companies
        • Injected DocumentFolderController for folder operations
        • Uses AuthorizeView for role-based button rendering
        • Accordion uses Bootstrap 5 collapse component
        • CSS specificity ensures accordion styling overrides Bootstrap defaults
        • EmployeeOnboardingDocumentsComponent.razor wrapped in .onboarding-banner container
    • Phase 2.1: Document Organization - Advanced folder management and bulk operations
      • Bulk Move - Select and move multiple documents at once
        • Multi-select UI with "Select Multiple" toggle button
        • Bulk action toolbar shows "Move Selected (N)" button when items selected
        • Batch operations with validation via DocumentsController.MoveMultipleDocumentsAsync
        • Exit select mode returns to normal view
        • Improved efficiency for large document reorganization tasks
      • Rename Folder - In-place editing for folder names and descriptions
        • Click rename (pencil icon) button to edit
        • Update both folder name and description in one modal
        • Validation for duplicate names
        • Updates reflected immediately in UI
        • Updates via DocumentFolderController.UpdateFolderAsync
      • Delete Folder with Validation - Safe folder deletion with content checking
        • Cannot delete folders containing documents or subfolders
        • PopupMessage component alert explains why deletion is blocked
        • Manual close required (no auto-hide) when blocked via ShowCacheDirtyDetails=true
        • Clear user feedback showing exact count of blocking items
        • Prevents accidental data loss
      • Folder Metadata - Description field for folders
        • Optional description field during folder creation
        • Description editable via rename function
        • Displays in folder list for context
        • Helps employees understand folder purpose
        • Stored in DocumentFolder.Description column

Changed

  • Document Management UI - Enhanced folder navigation and document operations
    • Folder navigation now reloads fresh data after document moves (eliminates stale views)
    • Root/folder transitions update immediately without manual browser refresh
    • Move operations refresh current folder view to reflect changes
    • Breadcrumb navigation maintains accurate state during folder operations

Fixed

  • Document Management - Resolved folder refresh issues
    • Fixed stale folder/document views after moving files between root and folders
    • Ensured folder deletion is properly blocked when children or documents exist
    • Document move operations now properly refresh both source and destination views

Documentation

  • User Support Docs - Updated for Phase 1 & 2.1 features
    • upload-and-assign-onboarding-documents-to-employees.md - Expanded to cover all new folder operations
    • omada-platform-overview.md - Updated Document Management feature description
    • completing-company-setup-in-omada.md - Enhanced with folder organization details
    • document-management-enhancement-roadmap.md - Marked Phase 2.1 as completed with technical implementation notes

[1.2.0] - 2026-07-31

Added

  • Connected Apps: OAuth 2.0 / OpenID Connect Integration - Enterprise single sign-on (SSO) system for connecting external applications to Omada
    • OAuth Application Management - Admin-only interface for registering and managing OAuth client applications
      • Register new applications with display name and optional redirect URI
      • Auto-generated Client ID and Client Secret (GUID-based for security)
      • One-time Client Secret reveal with secure handling (never stored or displayed again after registration)
      • Edit existing applications to update display name or redirect URI
      • List view showing all registered applications with Client ID, Redirect URI, and creation date
      • Company-scoped access control (applications can only authenticate users from their registered company)
    • OpenIddict Integration - Industry-standard OAuth 2.0 / OpenID Connect server implementation
      • Authorization Code flow with PKCE support for secure client authentication
      • Token endpoint for exchanging authorization codes for access tokens
      • UserInfo endpoint for retrieving authenticated user profile data
      • Automatic user role and company membership validation
      • Cryptographically secure client secret generation and hashing
      • Support for openid, profile, and email scopes
    • Authorization Endpoints - Standard OAuth 2.0 endpoints for external application integration
      • /connect/authorize - Authorization endpoint for OAuth flow initiation
      • /connect/token - Token endpoint for access token retrieval
      • /connect/userinfo - UserInfo endpoint returning name, email, job title, and company role
      • Company membership verification before granting access
      • Active user status validation (deactivated users automatically denied)
    • ConnectedAppsService - Business logic layer for OAuth application lifecycle management
      • Create: Register new OAuth applications with validation and security controls
      • Read: Retrieve company-scoped application lists and lookup applications by client ID
      • Update: Edit application metadata (display name, redirect URI) with admin verification
      • Company-to-client mapping for authorization flow validation
      • Integration with OpenIddict application manager for CRUD operations
    • Security Features - Enterprise-grade security controls for OAuth integration
      • Admin-only access (Company Admins exclusively; Managers and Staff have no access)
      • Company-scoped isolation (applications cannot authenticate users from other companies)
      • Active membership validation (only active company members can authenticate)
      • Cryptographic client secret generation (System.Security.Cryptography random generation)
      • One-time secret reveal with secure clipboard copy (secrets never re-displayed)
      • Client application metadata stored in custom OpenIddict properties (omada_company_id)
    • Navigation Integration - New Integrations section in Company Admin menu (Admin-only, positioned after Billing)
    • Database Schema - OpenIddict entity framework tables added via migration
      • OpenIddictApplications - Client application registrations
      • OpenIddictAuthorizations - User authorization grants
      • OpenIddictScopes - OAuth scopes configuration
      • OpenIddictTokens - Access and refresh token storage
    • Documentation - Comprehensive support guide created at Docs/connected-apps-oauth-integration.md
      • Plain-language explanation of OAuth 2.0 for non-technical admins
      • Step-by-step app registration instructions with screenshots
      • Security benefits and centralized access control rationale
      • Developer integration guide with endpoint URLs and flow diagrams
      • Token structure and user information schema documentation
      • Troubleshooting common integration issues and security best practices

Changed

  • Company Admin Navigation Menu - Converted to accordion-style navigation for improved UX
    • All section headers (People, Company Management, Customer Connect, Profile & Card Settings, Recognition & Documents, Billing, Integrations) now expand/collapse on click
    • Chevron icons (▶/▼) indicate expand/collapse state
    • People section expanded by default; all other sections collapsed by default
    • Expanded sections have light blue background (#e7f3ff) for visual feedback
    • Smooth transitions and hover effects on section headers
    • Consistent behavior across both desktop sidebar and mobile offcanvas menu
    • Reduced visual clutter for long navigation lists

[1.1.0] - 2026-07-30

Added

  • Customer Connect Messaging Portal - Comprehensive SMS messaging system for service-based businesses
    • Message Templates Management - Create, edit, and manage reusable message templates
      • Support for two message types: EnRoute and AppointmentIntro
      • Dynamic token system for personalization: {EmployeeFirstName}, {ProfileLink}, {CompanyPhone}, {ETA}, {AppointmentNote}
      • Live preview with sample data before saving
      • Default template selection per message type
      • Soft-delete preservation for historical reporting integrity
    • Message Sending Interface - Send personalized messages to customers via SMS
      • Employee eligibility filtering (active employees with CustomerConnectMessaging consent)
      • Template selection with real-time message preview
      • Conditional field rendering (ETA for En Route, appointment notes for Appointment Intro)
      • SMS link generation for device-native sending
      • Copy-to-clipboard functionality for manual sending
      • Message send logging for analytics and compliance
    • Reporting Dashboard - Comprehensive analytics for message usage and performance
      • Total sends tracking (all-time and current month)
      • Self-sent vs. sent-on-behalf breakdown with percentages
      • Message type distribution analytics
      • Employee-level send statistics (identifies high-volume service employees)
      • Most-used templates ranking
      • Recent activity log with detailed send information
    • Eligibility Service - Consent-based access control for Customer Connect features
      • Company-wide eligible employee retrieval
      • Individual eligibility validation
      • Bulk eligibility checking for performance
      • Integrated with existing consent management system
    • Dashboard Quick Action - One-click access to Customer Connect for eligible employees
      • Template-based visibility (only appears when usable templates exist)
      • Message type auto-selection based on template availability
      • Filtered message type dropdown (only shows types with active templates)
      • Mobile-responsive modal interface
      • Real-time message composition and preview
    • New Database Tables - CustomerConnectTemplate and CustomerConnectSendLog
    • New Consent Type - CustomerConnectMessaging consent added to privacy system
    • Navigation Integration - Customer Connect section added to Company Admin menu (positioned after Company Management)
    • Documentation - Comprehensive support guide created at Docs/customer-connect-messaging-guide.md
      • Admin instructions for template management and message sending
      • Employee instructions for dashboard quick send
      • Token reference and example templates
      • Privacy and consent explanations
      • Troubleshooting and best practices

Changed

  • Dashboard Customer Connect Modal - Enhanced UX with modern styling matching ClaimAccount.razor design patterns
    • Custom CSS classes (.cc-* pattern) for consistent styling
    • Improved modal interaction handling with proper click propagation controls
    • Fixed backdrop layering issues for better user interaction

[1.0.28] - 2026-07-26

Added

  • Free AI Profile Photo Credits with New Subscriptions - All new Stripe subscriptions now receive complimentary AI profile photo credits
    • New subscribers automatically receive bonus AI credits when their subscription is activated
    • Credit balance tracked per company in Company.AiProfilePhotoCreditBalance column
    • Maximum credits per user controlled by company preference AiProfilePhotoMaxCreditsPerUser
    • Admin can manually reset/award credits through Manage Billing page
    • Enhances onboarding experience by allowing immediate access to AI profile photo generation

Fixed

  • Critical: Employee Removal Foreign Key Constraint - Fixed production error when removing employees from company
    • Updated CompanyUserController.RemoveCompanyUserAsync to properly handle all foreign key relationships
    • Now deletes AnnouncementComment records before removing CompanyUser (fixes FK_AnnouncementComment_CompanyUser_CompanyUserId constraint error)
    • Now deletes Announcement records created by the user before removing CompanyUser
    • Continues to preserve AspNetUser account and historical CompanyUserDocument records
    • All deletions occur in a single transaction for data consistency
  • Application Insights Logging - Fixed production logging visibility
    • Added .WithLogging() to OpenTelemetry configuration in Program.cs
    • ILogger-based error logs now properly flow to Application Insights
    • Enhanced ErrorLoggingService with contextual overloads for richer production diagnostics
  • Diagnostic Test Endpoint - Added /Account/Api/TestLogging endpoint to verify Application Insights connectivity
    • Sends test logs at Information, Warning, and Error levels
    • Includes test exception for verifying telemetry pipeline
    • Updated Docs/production-error-logs-guide.md with testing instructions
  • Birthday/Anniversary Social Post Consent Logic - Fixed consent type mismatch for celebration social posts
    • Birthday celebration social post buttons now require BirthdayRecognition consent (not SocialMediaPosts)
    • Anniversary celebration social post buttons now require AnniversaryRecognition consent (not SocialMediaPosts)
    • Aligns with consent descriptions that explicitly mention "public posts" for these celebration types
    • New employee social posts continue to correctly use SocialMediaPosts consent
    • Updated CompanyUserController.GetUpcomingCelebrationEvents to check event-specific consent types

[1.0.27] - 2026-07-20

Added

  • Comprehensive Privacy & Consent Management System - Multi-layered consent architecture for employee data and social media sharing

    • Consent Type Catalog - Five consent types with descriptions and active/inactive state management
      • ShowOnWebsite - Controls public visibility on team pages and profile landing pages
      • BirthdayRecognition - Controls whether birthday celebrations appear on company dashboard
      • AnniversaryRecognition - Controls whether work anniversary celebrations appear on company dashboard
      • SocialMediaPosts - Controls whether admins/managers can generate AI-powered social posts about the employee
      • AllowMessaging - Controls whether contact form is displayed on public profile (placeholder for future)
    • User Self-Service Privacy Controls - New "Privacy & Consent Preferences" section in CompanyUserProfileSettings.razor
      • Employee-facing UI for managing all active consent types with clear descriptions
      • Modern card-based layout with gradient header matching updated admin page design
      • Smart cache invalidation: automatically dirties public profile/team cache when ShowOnWebsite consent changes
      • Phone number formatting with (xxx) xxx-xxxx pattern before save
      • Created CompanyUserProfileSettings.razor.css for scoped styling
    • Admin Read-Only Consent Visibility - New "Employee Privacy Preferences" card in UserManagement.razor
      • Admin view shows current consent status for each employee as color-coded badges
      • Read-only display prevents accidental admin override of user privacy choices
      • Inline badge next to ShowProfileOnWebsite toggle shows ShowOnWebsite consent status for quick reference
      • Updated header styling to light sub-header with blue icon to complement new global admin header
      • Created UserManagement.razor.css for scoped styling
  • Public Visibility Consent Gating - Enforces ShowOnWebsite consent across all public-facing employee rendering

    • Profile Landing Page Gate - ProfilePageController.GetCompanyUserDetails now checks IsConsentGrantedAsync("ShowOnWebsite")
      • Returns null if consent is not granted, triggering 404/not-found UI in Profile.razor
      • Backward-compatible: missing consent records default to true (granted) for existing users
    • Team Page Visibility Filter - CompanyUserController.GetPublicCompanyUsersBySlugAsync filters employees by consent
      • Uses bulk consent helper BulkIsConsentGrantedAsync for efficient multi-employee checks
      • Only employees with ShowOnWebsite consent appear in public team pages (WordPress embed/iframe)
      • Maintains existing location/department/ShowProfileOnWebsite filtering logic
    • UI-Layer Cache Invalidation - UserOnboardingWizard.razor now dirties render cache when ShowOnWebsite changes
      • Detects actual consent selection (not just checkbox render) in Step 5
      • Calls IRenderCacheService.MarkUserProfileDirtyAsync and MarkCompanyTeamDirtyAsync after successful consent save
      • Cache invalidation implemented at UI layer (not in business logic controller) per architectural layering rules
  • Dashboard Celebration Consent Gating - Privacy controls for birthday/anniversary celebrations and social media posts

    • Celebration Event Filtering - GetUpcomingCelebrationEvents enforces consent for non-admin/manager users
      • New bool isAdminOrManager parameter determines whether to apply consent filtering
      • Bulk checks BirthdayRecognition and AnniversaryRecognition consent for all celebration events
      • Non-admins/managers only see employees who have consented to appear in celebrations
      • Admins/managers see all employees regardless of consent (for internal acknowledgment)
      • Preserves existing date-range logic (5 days past to 14 days future) and anniversary tenure requirement (≥1 year)
    • Social Media Post Consent - New HasSocialMediaConsent property on CelebrationEvent class
      • Populated via bulk consent check for SocialMediaPosts consent type
      • Dashboard renders disabled "Social Post" button with "Opted out" warning badge when consent is false
      • Applies to both celebration events and "Welcome New Employees" section
      • AI-generated post modal workflow remains unchanged (compose/preview, not auto-posting)
      • Social Post buttons remain role-gated inside AuthorizeView Roles="Admin,Manager" blocks
    • New Employee Social Post Gating - LoadNewEmployeesAsync now loads social media consent for recent hires
      • Uses BulkIsConsentGrantedAsync to check SocialMediaPosts consent for all new employees
      • Disabled button with "Opted out" badge shown when employee has not consented
      • Consistent UX pattern across both celebration and new-employee social-post affordances
  • Onboarding Wizard Privacy Step - Step 5 consent collection in UserOnboardingWizard.razor

    • Dynamic consent type loading from CompanyUserConsentController.GetActiveConsentTypesAsync
    • Checkbox list with consent type names and descriptions
    • Empty-state messaging when no active consent types configured for company
    • Back/Finish buttons always visible (even when no consent types exist)
    • Calls RecordConsentsAsync to save all consent selections in single transaction
    • Modern card-based layout with gradient headers matching updated admin/profile design
    • Phone number placeholder watermark (555) 123-4567 and auto-formatting to (xxx) xxx-xxxx before save

Changed

  • Company Admin Layout - Global admin header added to ManageLayout.razor
    • Full-width dark header with "Company Administration" title
    • CompanyOnboardingNotice component displayed in global header for all admin pages
    • Page content wrapped in white card container for visual hierarchy
    • Created ManageLayout.razor.css for scoped styling
    • Individual admin pages (e.g., UserManagement.razor, ManageCompanyInvitations.razor) now use light sub-headers
  • Company Invitations Page - Restyled ManageCompanyInvitations.razor to match new admin design patterns
    • Light sub-header with blue icon and gray subtitle
    • White content card for invitation table
    • Created ManageCompanyInvitations.razor.css for scoped styling
  • User Onboarding Persistence - Fixed bug where Step 4 data (phone, email, bio, LinkedIn, Twitter, Facebook) did not save
    • Root cause: CompanyUserConsent save logic was wrapped in execution-strategy retry, creating nested transactions
    • Added await using var db = _dbContextFactory.CreateDbContext(); in RecordConsentsAsync to use created context instance
    • Confirmed EnableRetryOnFailure is enabled in Program.cs, validating SQL Server retry wrapper necessity
    • Step 4 now reliably persists all profile data before advancing to Step 5

Fixed

  • Onboarding Step 5 UI Bug - Fixed missing Back/Finish buttons when no active consent types exist
    • Previously, empty consent list would render only a message with no navigation controls
    • Updated UI to always show Back and Finish buttons regardless of consent list state
  • Consent Transaction Bug - Fixed nested transaction conflict in RecordConsentsAsync
    • Method now creates dedicated DbContext instance via IDbContextFactory
    • Wrapped in db.Database.CreateExecutionStrategy().ExecuteAsync(...) for SQL Server retry-on-failure support
    • Prevents InvalidOperationException when saving consent records during onboarding
  • Dashboard Build Errors - Corrected consent-gating implementation to match BulkIsConsentGrantedAsync contract
    • Fixed type mismatch: BulkIsConsentGrantedAsync returns HashSet<int> of granted IDs, not Dictionary<int, bool>
    • Replaced GetValueOrDefault(userId, false) dictionary lookups with Contains(userId) set membership checks
    • Injected CompanyUserConsentController into Dashboard.razor for instance method access
    • Changed newEmployeeSocialMediaConsent state field from Dictionary<int, bool> to HashSet<int>
    • Compilation now succeeds with correct data structures and consent filtering logic

Technical

  • Consent Controller Enhancements - CompanyUserConsentController.cs bulk consent helper and transaction handling
    • BulkIsConsentGrantedAsync(List<int> companyUserIds, string consentTypeName) returns HashSet<int> of user IDs with consent
    • Backward-compatible: missing consent records default to true (granted) inside helper for existing users
    • RecordConsentsAsync uses dedicated DbContext instance and execution-strategy retry wrapper
    • GetCurrentConsentStatusAsync returns ConsentStatusDto with Name, Description, IsGranted for UI binding
  • Dependency Injection - CompanyUserConsentController injected via DI in affected pages/components
    • Injected in ProfilePageController, UserOnboardingWizard.razor, CompanyUserProfileSettings.razor, UserManagement.razor, and Dashboard.razor
    • Follows established IDbContextFactory<teamsuitedbContext> pattern for database access
    • Consent controller remains free of IRenderCacheService dependency (cache invalidation stays at UI layer)

[1.0.26] - 2026-06-29

Added

  • PWA Support for Digital Business Cards - Full Progressive Web App implementation for card pages
    • Dynamic Manifest Endpoint - Cards now serve per-card manifest JSON via /Cards/User/{idHash}/manifest.json and /Cards/Company/{idHash}/manifest.json
      • Manifest includes card-specific name, start URL, and icons (company logo when available)
      • Created Controllers\ManifestController.cs with dedicated endpoints for user and company cards
    • Service Worker Registration - Card-scoped service worker enables offline capability and installability
      • Registered at /service-worker-cards.js with scope /Cards/
      • Clean pass-through architecture: only intercepts safe same-origin GET requests
      • Avoids intercepting navigation requests and Blazor SignalR traffic
      • No console errors or fetch failures
    • Chrome/Edge/Android Install Button - Event-driven native PWA install prompt
      • "Install as App" button appears only when beforeinstallprompt event fires
      • Uses DotNetObjectReference and [JSInvokable] pattern for Blazor-JS interop
      • No optimistic guessing — button only shown when browser supports native install
      • Implemented in both Components\Pages\Cards\User.razor and Components\Pages\Cards\Company.razor
    • iOS Safari Fallback - Platform-specific install instructions for Safari users
      • Detects iPhone, iPod, and modern iPad (including iPadOS 13+ desktop-style Safari)
      • "Add to Home Screen" button with step-by-step dismissible instruction alert
      • Excludes Chrome/Firefox on iOS (CriOS/FxiOS) and already-installed PWAs
      • Mutually exclusive with Chrome/Edge install button — only one affordance shown per browser
    • Manifest Discovery - Cards include proper PWA metadata in <head>
      • <link rel="manifest"> pointing to card-specific manifest endpoint
      • <meta name="theme-color"> set to brand color #6991ac
      • <meta name="mobile-web-app-capable"> for Chrome compliance
    • Users can now install personal and company business cards as standalone apps on their mobile devices

Changed

Fixed

Removed


[1.0.25] - 2026-06-29

Changed

  • Navigation Menu - Personal Mode Access - Company selector link now always visible for users with company accounts
    • Menu link now appears even when user belongs to only one company
    • Dynamic link text based on context:
      • In Company Mode with 1 company: "Switch to Personal Mode"
      • In Company Mode with multiple companies: "Switch Company / Personal Mode"
      • In Personal Mode with 1 company: "Switch to Company Mode"
      • In Personal Mode with multiple companies: "Switch Company / Personal Mode"
    • Users can now easily toggle between company and personal modes regardless of number of companies
    • Updated in NavMenu.razor

Fixed

  • Dashboard Personal Mode Messaging - Improved clarity for users in personal account only mode
    • Dashboard now distinguishes between users with no companies vs. users in personal mode
    • Users in Personal Mode with companies: Shows "You're using Omada in Personal Account Only mode" with "Switch to Company Mode" button
    • Users with no companies: Shows "You're not part of a company yet" with "Create a Company" button
    • Eliminates confusion for users who intentionally chose personal mode
    • Updated in Dashboard.razor (lines 682-702)

[1.0.24] - 2026-06-28

Added

  • Claim Account Page Redesign - Modernized user experience for claiming pre-created employee accounts
    • Two-column layout separating password creation flow from existing account merge flow
    • Hero header dynamically displays company name using encrypted token validation
    • Visual design matches Login page styling for consistency
    • Improved UX clarity for new users joining via company invitation
    • Scoped CSS file ClaimAccount.razor.css provides modern gradient background and card styling
  • Coupon Validation - Pre-submission coupon verification in company creation flow
    • New ValidateCouponAsync() method in StripeService validates Stripe coupons before company creation
    • Invalid coupons now show error with "Continue without coupon" option
    • Prevents orphaned companies when coupon code fails during checkout
    • Company creation only proceeds after successful coupon validation or user bypass

Changed

  • Company Creation Pricing Display - Updated to reflect current pricing model
    • Base subscription price updated from "$30 per month" to "$59 per month" for up to 10 employees
    • Additional employee price updated from "$3.00 per month" to "$5.00 per month" per employee over 10
    • Updated in CreateCompany.razor (lines 60-78)
    • Pricing display now consistent with Home.razor and MainLayout.razor
  • Welcome Email Timing - Moved email delivery to post-checkout webhook
    • Welcome email now sent from HandleCheckoutCompletedAsync() in StripeService after successful Stripe checkout
    • Previously sent immediately after company creation, before subscription was confirmed
    • Prevents welcome emails for companies that fail subscription creation
    • Email sent to company owner with template NewCompanyEmailTemplate.html
    • Uses session metadata to identify company for email delivery
  • Company Creation Flow - Restructured submission logic to prevent orphaned records
    • Coupon validation now occurs BEFORE company creation
    • Two-path submit flow: with coupon validation or without coupon
    • Added state tracking for "coupon invalid, allow skip" scenario
    • Company only created after coupon validation succeeds or user explicitly bypasses
  • Login Page Styling - Removed vertical centering to improve mobile/tablet experience
    • Login box now starts near top of page with padding while maintaining horizontal centering
    • Updated scoped CSS in Login.razor.css
  • Session State Management - Enhanced reliability for company context persistence
    • Added in-memory caching fallback to SessionStateService for when HTTP session is read-only
    • CompanyInfo now cached alongside existing PersonalAccountOnlyMode cache
    • Prevents silent session write failures when response has already started streaming
    • Cache cleared appropriately in ClearCompanyInfo() and ClearAll() methods

Fixed

  • Company Context Restoration Bug - Resolved critical issue where authenticated users lost company context after deployment/reload
    • Dashboard now properly rebuilds session state when companyInfo is null or incomplete (Id == null)
    • CompanyInfoInitializer now respects forceRefresh parameter to bypass Personal Account Only mode during session rebuild
    • Company selection now prioritizes LastViewedByUser flag with fallback to highest CompanyId
    • Session state now survives Blazor Server circuit reconnection via in-memory cache
    • Company-specific links and navigation now appear immediately after authentication
    • Users no longer need to log out and back in to restore company context
  • Session Write Timing Issue - Fixed silent failure in SessionStateService.SetCompanyInfo()
    • Previously failed silently when context.Response.HasStarted made session read-only
    • Now uses in-memory cache as fallback, ensuring company info is always available during current request/circuit
    • Triggers StateChanged notification even when session write is not possible
  • Orphaned Company Records - Prevented creation of companies without valid subscriptions
    • Invalid coupon codes previously caused checkout failure AFTER company creation
    • Company creation now blocked until coupon is validated or user explicitly bypasses
    • Welcome emails only sent after successful Stripe checkout completion
  • User Onboarding Wizard Step 4 - Verified step 3 to step 4 transition for invited users
    • Step 3 "Next" button shows for users with invitation token, "Finish" for personal onboarding
    • SaveUserSocialMedia() correctly advances to step 4 when token is present
    • Step 4 (company profile setup) now consistently appears for invited users
    • SaveCompanyProfileAsync() retrieves company ID from invitation token and sets LastViewedByUser flag

Removed

  • Debug Logging - Cleaned up temporary diagnostic code added during troubleshooting
    • Removed all ErrorLogger.LogErrorAsync() debug statements from Dashboard.razor
    • Removed all debug logging from CompanyInfoInitializer.cs
    • Output window no longer cluttered with pseudo-error trace messages

[1.0.23] - 2026-06-27

Added

  • Dashboard Documentation - Comprehensive user guide for dashboard functionality
    • New documentation file understanding-your-omada-dashboard.md in /Docs folder
    • Covers all dashboard sections: Quick Links, Activity Stats, Celebrations, New Employees, Announcements, and Documents
    • Explains AI-powered social media post generator for Admins/Managers
    • Details role-based features and personal mode functionality
    • Includes troubleshooting tips and FAQs

Changed

  • Pricing Model Update - Revised subscription pricing structure
    • Base subscription increased from $30/month to $59/month for up to 10 employees
    • Per-seat pricing increased from $3/month to $5/month for each employee over 10
    • Updated pricing display across SubscriptionCreation.razor, Home.razor, and MainLayout.razor
    • Consolidated Stripe configuration to single MeteredPriceId key (removed legacy PerSeatPriceId)
    • Metered billing remains tied to employees-meter-method-last meter
  • Subscription Status Management - Improved handling of cancel-at-period-end state
    • StripeCancelAtPeriodEnd now used as authoritative cancellation flag instead of overwriting status
    • Subscription status correctly reflects Stripe's actual status (e.g., active, trialing) even when cancellation is scheduled
    • MainLayout.razor subscription modal now only displays for truly inactive states (canceled/expired/unpaid)
    • Added cancellation notice and "Undo Cancellation" action in ManageBilling.razor when CancelAtPeriodEnd is true

Fixed

  • Subscription Validation & Recovery - Eliminated infinite redirect loop
    • Added ValidateAndSyncSubscriptionStatusAsync to detect and clear stale subscription IDs when Stripe returns 404
    • ManageBilling.razor and SubscriptionCreation.razor now validate subscription before loading details
    • Session state synchronization ensures CompanyInfo matches database subscription status
    • Prevents bounce between billing and subscription creation pages when subscription is deleted in Stripe
  • Employee Count Integrity - Source of truth corrected
    • Removed incorrect EmployeeCount overwrite from subscription webhook handler (HandleSubscriptionUpdatedAsync)
    • Employee count now sourced exclusively from company-user data, not stale Stripe subscription metadata
    • Fixes issue where cancel/reactivate actions reset employee count to outdated value (e.g., 5)

Removed

  • Dead Subscription Quantity Code - Cleaned up unused metered billing methods
    • Deleted UpdateSubscriptionQuantityNowAsync (no callers)
    • Deleted ScheduleSubscriptionQuantityChangeAsync (replaced with metadata-only updates)
    • AccountController.RegisterPost now uses SetSubscriptionEmployeeCountMetadataAsync with structured logging

[1.0.22] - 2026-06-26

Added

  • Personal Mode Enhancement - Comprehensive UI state management for personal-only mode
    • Query parameter handoff (personalMode=true) for reliable mode detection across circuit reloads
    • Dual-check strategy: URL parameter + session state for robust personal mode detection
    • Session state change subscriptions in MainLayout, NavMenu, and MyDocuments for real-time updates
    • Personal mode now properly hides all company-specific UI elements immediately on mode switch

Changed

  • NavMenu Refactor - Improved company context awareness and personal mode support
    • Company Admin link now hidden when in personal mode
    • Company switcher remains visible in personal mode (labeled "Switch to Company")
    • Company-specific links (Awards, Documents, etc.) hidden when no active company
    • Dynamic link text based on mode: "Switch Company / Personal Mode" vs "Switch to Company"
    • All navigation links now respect IsPersonalAccountOnlyMode() session state
  • SelectCompany Page - Fixed active state and mode switching
    • Personal mode card now correctly shows as active when in personal mode
    • Company cards no longer show as active when in personal mode
    • Fixed issue where users couldn't switch back to a previously active company from personal mode
    • isUsingPersonalAccountOnly now checks SessionState.IsPersonalAccountOnlyMode() directly
    • Company card active state logic: isActive = company.Id == currentCompanyId && !IsPersonalAccountOnlyMode()
  • MainLayout Refactor - Company branding visibility tied to personal mode
    • Company logo, name, and subscription status now hidden in personal mode
    • Company profile dropdown entries suppressed when no active company
    • Added SessionState.StateChanged subscription for immediate UI updates
    • URL query parameter check ensures correct state even when session isn't immediately available after forceLoad
  • Dashboard Updates - Personal mode initialization and session handling
    • Query parameter personalMode=true processed before company context loads
    • LoadUserandRoles() now skips company role synchronization when in personal mode
    • RefreshFromSessionAsync() clears company info when personal mode is active
    • Personal mode flag set via SetPersonalAccountOnlyModeAsync(true) with session commit

Fixed

  • MyDocuments Personal Mode Bugs - Corrected document visibility and loading
    • Company-wide documents no longer load or display in personal mode
    • Employee-specific documents section hidden when no active company
    • "Documents to Complete" (onboarding component) now hidden in personal mode
    • Personal documents load correctly regardless of company context
    • Query parameter check ensures company documents aren't loaded during circuit reload
  • Personal Mode Session Persistence - Reliable state across page reloads
    • Fixed issue where company UI remained visible after switching to personal mode
    • Resolved "cached" company data appearing in NavMenu and MainLayout after mode switch
    • Fixed timing issue where layouts loaded company info before Dashboard set personal mode flag
    • Session state now cleared properly before redirect in UsePersonalAccountOnly()
    • SetPersonalAccountOnlyModeAsync(true) now called BEFORE clearing company context
  • SelectCompany Active State - Card selection and mode indicators
    • Personal mode card now shows "Active" badge when in personal mode
    • Company cards are clickable and enabled when in personal mode
    • Fixed early return in SwitchToCompany() that prevented switching from personal mode
    • Active company detection now checks: !SessionState.IsPersonalAccountOnlyMode()

[1.0.21] - 2026-06-24

Added

  • Company Onboarding Help Section - New help prompt in onboarding notice
    • Added callout section in CompanyOnboardingNotice.razor with Calendly link
    • Provides direct access to free 30-minute setup session
    • Styled with border-top separator and danger-emphasis theme
  • Optional Claim-Account Email - Admin control for employee creation notifications
    • New toggle switch in AddCompanyUserComponent.razor to control claim-account email sending
    • Toggle defaults to enabled (maintains existing behavior)
    • Allows creating employee profiles without sending notification emails
    • Respects setting for both new employees and existing unclaimed users
  • Modern Landing Page Redesign - Complete UX overhaul of Home.razor
    • New hero section with animated gradient background and centered logo
    • Social proof section with company stats (500+ companies, 10K+ team members, 99.9% uptime)
    • "How It Works" section with numbered step cards and hover animations
    • "Key Features" section highlighting 6 core capabilities with gradient icon boxes
    • Comprehensive pricing section matching myomada.com content
    • Call-to-action section with dark gradient background and trust badges
    • Professional footer with logo and support contact
    • Consistent black/white/gray color scheme with #6991ac Omada brand accent
    • Subtle fade-in-up animations throughout with staggered delays
    • Hover lift effects on cards with enhanced shadows
    • Removed confusing "Jump back in" section for unauthenticated users

Changed

  • New Company Email Template - Updated welcome email content
    • Enhanced NewCompanyEmailTemplate.html with improved messaging and CTAs
    • Updated structure and styling for better user onboarding experience
  • Add Employee Module UX - Redesigned workflow and interface
    • Removed Profile Bio field from initial add-employee step (can be added later during edit)
    • Repositioned "Create Employee Profile" as primary action with full-width button
    • Moved email notification toggle above the Create button for clearer pre-action choice
    • Rebranded "Send Invitation" as "Send Self-Setup Invitation" as secondary option
    • Added descriptive subtitle: "Create employee profiles directly (recommended), or send an invitation for self-setup"
    • Improved visual hierarchy with "OR" divider badge between primary and secondary actions
    • Enhanced toggle switch with full-size toggle and descriptive label
    • Updated success messages to reflect whether claim-account email was sent
    • Clear indication when employee profile created without email notification
  • Landing Page Pricing - Accurate pricing structure from myomada.com
    • Individual Basic: $0 forever with 5 key features listed
    • Individual Pro: Coming soon badge with future features
    • Company Hub: $30/month for up to 10 employees (introductory pricing locked for first year)
    • Scalability: $3/month per additional employee beyond 10
    • "Most Popular" badge on Company Hub with gradient background and shadow

Fixed

  • Bug fixes and minor improvements

[1.0.20] - 2026-06-17

Added

  • Email OTP (One-Time Password) 2FA Method - Alternative to authenticator apps
    • Email-based verification codes for two-factor authentication
    • EmailOtpService for secure code generation, storage, and validation
    • Time-limited codes (10-minute expiration with automatic cleanup)
    • /Account/Manage/EnableEmailOtp - Setup wizard with email verification flow
    • Recovery code generation upon successful Email OTP enablement
    • Rate limiting on email code resend (30-second cooldown with countdown timer)
  • 2FA Method Preferences - Primary and secondary method selection
    • Users can choose between Authenticator App and Email OTP
    • Primary method used for login challenges, secondary as fallback
    • Method switching during login when both methods are enabled
    • TwoFactorMethodService for method normalization and validation
    • Database columns: ApplicationUser.Primary2FAMethod, ApplicationUser.Secondary2FAMethod
  • Enhanced 2FA Management UI - Unified 2FA settings page
    • /Account/Manage/TwoFactorAuthentication - Central hub for all 2FA settings
    • Modern sectioned layout with black hero banner
    • Enable/disable both authenticator and Email OTP methods
    • Configure method preferences (primary/secondary)
    • View recovery codes and reset authenticator
    • Clear status indicators for each method
  • Database Schema Changes
    • ApplicationUser.EmailOtpEnabled column (bit, nullable, defaults to null/false)
    • ApplicationUser.Primary2FAMethod column (nvarchar(50), nullable)
    • ApplicationUser.Secondary2FAMethod column (nvarchar(50), nullable)
    • EmailOtpCode table for temporary code storage with expiration tracking
    • EF Core migrations: AddEmailOtpColumns, AddEmailOtpCodeTable, Add2FAMethodPreferences

Changed

  • Login Flow - Enhanced to support Email OTP and method switching
    • LoginWith2fa.razor now supports both authenticator and Email OTP challenges
    • Dynamic method switching between primary and secondary methods
    • Email code resend with rate limiting and countdown timer
    • Session-based method state tracking for seamless switching
  • UI Modernization - Complete authentication design system overhaul
    • Login Pages: Black hero banners with gradient accents
    • Login.razor - Modern card layout with logo treatment and styled input groups
    • LoginWith2fa.razor - Dynamic method display, resend controls, remember-device card
    • LoginWithRecoveryCode.razor - Clean info sections and help guidance
    • EnableEmailOtp.razor - Two-state design (setup/verify and success/recovery codes)
    • TwoFactorAuthentication.razor - Sectioned layout with clear visual hierarchy
    • Consistent scoped CSS for all authentication pages
    • Improved scanability, spacing, and visual feedback
  • 2FA Method Normalization - Standardized method naming across codebase
    • "Authenticator App" → "Authenticator" (database/API)
    • "Email OTP" → "Email" (database/API)
    • UI displays friendly names, services normalize to canonical values
    • Form binding uses explicit name attributes for SSR compatibility
  • Business Logic Layer - Enhanced 2FA service architecture
    • TwoFactorMethodService.cs - Central method management
      • GetAvailableMethodsAsync() - Lists enabled methods for user
      • GetEffectivePrimaryMethodAsync() - Resolves primary method with fallback
      • SetPrimaryMethodAsync() / SetSecondaryMethodAsync() - Preference persistence
      • EnableEmailOtpAsync() / DisableEmailOtpAsync() - Email OTP lifecycle
      • ValidateMethodConfigurationAsync() - Ensures valid method states
    • TwoFactorAuthController.cs - Extended for Email OTP support
      • Get2FAMethodInfoAsync() - Returns available methods and preferences
      • Method preference setters integrated with validation layer

Fixed

  • 2FA Preferences Form Binding - Resolved SSR lifecycle issues
    • Form model now initializes defensively: PreferenceInput ??= new MethodPreferenceInputModel()
    • Preferences loaded only on GET to prevent stale data
    • Native <select> elements with explicit name attributes for reliable binding
    • Eliminated Syncfusion InputSelect JS interop conflicts
  • Method Preference Display - Fixed incorrect selected values in dropdowns
    • Canonical method values now loaded and normalized in OnInitializedAsync()
    • UI displays correct primary/secondary methods on page load
    • Form submission saves normalized values to database
  • Email OTP Code Validation - Secure and time-bounded verification
    • Codes expire after 10 minutes
    • Automatic cleanup of expired codes via background service
    • Validation includes expiration check and user matching
  • Recovery Code Flow - Improved acknowledgment and progression
    • JavaScript helpers gate "Continue" button until user acknowledges saving codes
    • Clear warning and notice sections for recovery code importance
    • Consistent recovery code display across authenticator and Email OTP flows

Security

  • Email OTP Security - Time-limited, encrypted, and rate-limited
    • 6-digit numeric codes generated securely via RandomNumberGenerator
    • Codes stored hashed in database with user ID and expiration timestamp
    • 10-minute expiration window enforced on validation
    • 30-second resend cooldown prevents spam and abuse
  • Method Preferences Validation - Ensures valid 2FA configurations
    • Cannot set disabled methods as primary or secondary
    • Cannot set same method for both primary and secondary
    • Must have at least one 2FA method enabled to set preferences
  • Recovery Codes - Maintained for Email OTP setup
    • Email OTP enablement generates recovery codes if not already present
    • Users must acknowledge recovery codes before completing setup
    • Consistent recovery code security model across all 2FA methods

Technical Details

  • Email OTP Implementation
    • TeamSuiteBusinessLogic/EmailOtpService.cs - Core email OTP logic
      • GenerateAndSendCodeAsync() - Code generation and email delivery
      • ValidateCodeAsync() - Time-bounded code verification
      • Background cleanup service for expired codes
    • Email delivery via existing EmailService infrastructure
    • Codes stored in EmailOtpCode table with UTC expiration timestamps
  • Scoped CSS Architecture - Modern authentication design system
    • Login.razor.css - Login page styles
    • LoginWith2fa.razor.css - 2FA challenge page styles
    • LoginWithRecoveryCode.razor.css - Recovery code page styles
    • EnableEmailOtp.razor.css - Email OTP setup page styles
    • TwoFactorAuthentication.razor.css - 2FA management page styles (updated)
    • Consistent black hero banners, gradient accents, card layouts, and spacing
  • Blazor SSR Form Handling - Native form controls for reliability
    • [SupplyParameterFromForm] with explicit name attributes
    • EditForm with defensive model initialization
    • Lifecycle management: GET populates form, POST persists changes
  • Rate Limiting - Client-side countdown timer for Email OTP resend
    • 30-second cooldown tracked via Timer and resendCooldownRemaining
    • Resend button disabled and countdown displayed during cooldown
    • Automatic re-enable when cooldown expires

Database Migrations

-- Run via Package Manager Console:
Add-Migration AddEmailOtpColumns -Project TeamSuiteDataAccessLayer -StartupProject TeamSuite2025 -Context teamsuitedbContext
Add-Migration AddEmailOtpCodeTable -Project TeamSuiteDataAccessLayer -StartupProject TeamSuite2025 -Context teamsuitedbContext
Add-Migration Add2FAMethodPreferences -Project TeamSuiteDataAccessLayer -StartupProject TeamSuite2025 -Context teamsuitedbContext
Update-Database -Project TeamSuiteDataAccessLayer -StartupProject TeamSuite2025 -Context teamsuitedbContext -Verbose

[1.0.19] - 2026-06-15

Added

  • Two-Factor Authentication (2FA) - Complete TOTP-based authentication system
    • QR code generation for authenticator app setup (Microsoft Authenticator, Google Authenticator, Authy, etc.)
    • Recovery code generation (10 unique codes per user)
    • 14-day "remember this device" option for trusted devices
    • Session-based return URL handling for seamless post-authentication navigation
  • Company-Level 2FA Enforcement - New Company.RequireTwoFactor policy flag
    • Administrators can require 2FA for all company users
    • Login flow enforces company 2FA requirements
    • Business logic layer (TwoFactorAuthController) for centralized policy checks
  • 2FA Management UI - Complete user and support workflows
    • /Account/Manage/EnableAuthenticator - Setup wizard with QR code
    • /Account/Manage/TwoFactorAuthentication - Manage 2FA settings, view recovery codes, reset authenticator
    • /Account/LoginWith2fa - Modern 2FA challenge page
    • /Account/LoginWithRecoveryCode - Recovery code authentication
    • Dashboard banner encouraging 2FA setup when not enabled
    • Account settings navigation link for easy 2FA access
  • Support Tools - Administrative 2FA management
    • "Reset 2FA" button in ManageUserAccount.razor for support staff
    • Complete reset clears authenticator key, recovery codes, and access failure count
  • Database Schema Changes
    • Company.RequireTwoFactor column (bit, nullable, defaults to null/false)
    • EF Core migration: AddCompanyTwoFactor

Changed

  • Login Flow - Enhanced to support 2FA
    • AccountController.LoginPost now checks company 2FA requirements
    • Redirects users without 2FA to setup when company requires it
    • Redirects to 2FA challenge when user has 2FA enabled
    • Session stores enforcement messages and return URLs
  • Authenticator App Display - QR code issuer changed from "TeamSuite2025" to "Omada Hub"
  • UI Modernization - Improved authentication page designs
    • Modernized LoginWith2fa.razor with centered card layout and shield icon
    • Enhanced TwoFactorAuthentication.razor with card-based sections and help text
    • Clearer button spacing and action descriptions
  • 2FA Cookie Configuration - IdentityConstants.TwoFactorRememberMeScheme configured for 14-day expiration

Fixed

  • Dashboard Banner Refresh - 2FA status now updates correctly after setup
    • Check2FAStatusAsync() now reloads user from database for fresh status
    • Banner disappears immediately after successful 2FA enrollment
  • Recovery Code Acknowledgment - Fixed checkbox interaction in EnableAuthenticator.razor
    • Simplified to client-side-only logic to avoid Blazor rendering conflicts
    • QR code rendering now compatible with interactive components
  • Session Handling - Improved return URL management across 2FA flows
    • 2FA_ReturnUrl stored in session during login enforcement
    • Session cleanup after successful authentication

Security

  • TOTP-Based 2FA - Industry-standard time-based one-time password authentication
  • Recovery Codes - Securely hashed and stored in AspNetUserTokens
  • Authenticator Keys - Stored as Identity tokens, resettable by user or support staff
  • Remember Device Cookie - Secure, HttpOnly, SameSite=None, 14-day expiration

Technical Details

  • QR Code Generation - Reuses existing Syncfusion SfQRCodeGenerator (no new dependencies)
  • Business Logic Layer - TeamSuiteBusinessLogic/TwoFactorAuthController.cs
    • UserBelongsToCompanyRequiringTwoFactorAsync(int userId)
    • GetCompaniesRequiringTwoFactorAsync(int userId)
    • SetCompanyTwoFactorEnforcementAsync(int companyId, bool requireTwoFactor)
  • Session Support - Existing HttpContext.Session used for enforcement messaging
  • Identity Integration - Leverages ASP.NET Core Identity with AddDefaultTokenProviders()

Database Migration

-- Run via Package Manager Console:
Add-Migration AddCompanyTwoFactor -Project TeamSuiteDataAccessLayer -StartupProject TeamSuite2025 -Context teamsuitedbContext
Update-Database AddCompanyTwoFactor -Project TeamSuiteDataAccessLayer -StartupProject TeamSuite2025 -Context teamsuitedbContext -Verbose

[1.0.18] - 2025-01-XX

Notes

  • Future release - details to be added

[1.0.17] - 2026-06-113

Changed

  • Framework Upgrade - Migrated entire solution from .NET 9 to .NET 10
    • Updated all project files to target net10.0
    • Updated NuGet packages to .NET 10 compatible versions
    • Verified compatibility with Blazor web app template for .NET 10
    • Updated ASP.NET Core Identity to .NET 10
    • Updated Entity Framework Core to .NET 10

Technical Details

  • Target Framework Moniker (TFM) - Changed from net9.0 to net10.0
  • Runtime Version - Now requires .NET 10 SDK
  • Breaking Changes - None identified during upgrade
  • Performance - Inherits .NET 10 performance improvements and runtime enhancements

[1.0.16] - 2024-XX-XX

Added

  • Create Employee Accounts - Instant employee account creation for Admin and Manager roles
    • Admin and Manager users can create employee accounts without waiting for self-registration
    • Newly created accounts marked as "Unclaimed" until employee claims ownership
    • Email-based account claiming workflow for employees
    • Existing Omada users can merge unclaimed accounts into their current login
    • Significantly improved onboarding speed for new hires
    • Enables immediate employee website publishing before employee claims account

Changed

  • Onboarding Workflow - Streamlined employee onboarding process with admin-initiated account creation

[1.0.15] - 2024-XX-XX

Added

  • AI Profile Photo Generator - Professional AI-generated employee profile photos
    • Multiple professional styles available:
      • Professional Studio
      • Casual Friendly
      • Creative Modern
      • Trades / Workwear
    • Company logo placement options on generated photos
    • Company-wide style consistency settings
    • AI credit management system for photo generation usage
    • Eliminates need for professional photoshoots

[1.0.14] - 2024-XX-XX

Added

  • Company Awards Management - Comprehensive award and recognition system
    • Create and manage custom award categories
    • Add individual awards with descriptions
    • Upload award logos and add external links
    • Display awards on company website and employee profiles
    • Automatic Award Schema markup for SEO optimization

[1.0.13] - 2024-XX-XX

Added

  • Company Announcements - Centralized announcement system for company-wide communication
    • Post announcements to all employees instantly
    • Employee commenting on announcements
    • Block and List viewing modes
    • Dashboard announcement feed for quick visibility
    • Real-time notification system

[1.0.12] - 2024-XX-XX

Added

  • Document Management System - Complete digital document management and onboarding
    • Company-wide document library
    • Employee-specific document assignments
    • Personal document storage
    • Digital onboarding document workflow
    • Fillable PDF support
    • Document completion tracking
    • Automated onboarding notifications
    • Eliminates paper-based onboarding processes

[1.0.11] - 2024-XX-XX

Added

  • Professional Email Signatures - Email signature generator with multiple templates
    • Email Signature Generator tool
    • Multiple professional templates:
      • Classic
      • Modern Stacked
      • Modern Horizontal
    • Cross-platform support: Outlook, Gmail, Apple Mail, mobile devices
    • HTML export functionality
    • Consistent branding across all employee emails

[1.0.10] - 2024-XX-XX

Added

  • Mobile Email Signature Support - iPhone Mail app integration
    • iPhone Mail integration instructions
    • Formatting preservation workflow
    • Native iOS Mail app signature support
    • Mobile-optimized signature rendering

[1.0.9] - 2024-XX-XX

Added

  • Digital Business Cards - QR code-based digital business cards
    • Automatic QR code generation for business cards
    • Personal and Company business card variants
    • Save-to-phone functionality (vCard format)
    • Company-wide display settings
    • Logo and profile image customization options
    • Paperless networking solution

[1.0.8] - 2024-XX-XX

Added

  • Employee Profile Landing Pages - Individual public-facing employee profile pages
    • Dedicated profile pages for each employee
    • Custom domain hosting support
    • SEO-friendly URLs with employee names
    • Customizable profile display options
    • Consistent branding across all employee pages
    • Enhanced online professional presence

[1.0.7] - 2024-XX-XX

Added

  • Website Team Page Integration - Embed employee directory on company websites
    • WordPress plugin for Team Page integration
    • Universal embed script support for any website platform
    • Department filtering and organization
    • Employee visibility controls (show/hide individual employees)
    • Real-time automatic website updates when employee data changes
    • Eliminates manual website maintenance for employee changes

[1.0.6] - 2024-XX-XX

Added

  • Employee & Department Management - Complete organizational structure management
    • Employee role management (Staff, Manager, Admin)
    • Manager Notes for internal tracking
    • Employee activation/deactivation controls
    • Department creation and management
    • Website display ordering and prioritization
    • Organizational hierarchy support

[1.0.5] - 2024-XX-XX

Added

  • Company Setup Wizard - Guided onboarding experience for new companies
    • Step-by-step company setup wizard
    • Office location configuration
    • Company branding setup
    • Department creation workflow
    • Social media link configuration
    • Employee invitation system
    • Document upload and organization
    • Streamlined first-time company setup

[1.0.4] - 2024-XX-XX

Added

  • Multi-Location Support - Multiple office location management
    • Support for companies with multiple office locations
    • Location-specific department assignments
    • Employees can belong to multiple departments across locations
    • Geographic distribution support

[1.0.3] - 2024-XX-XX

Added

  • Company Profile Management - Comprehensive company settings and branding
    • Company profile configuration
    • Company branding customization
    • Brand color palette settings
    • Social media link management
    • Website integration settings

[1.0.2] - 2024-XX-XX

Added

  • Employee Invitation Management - Track and manage employee invitation lifecycle
    • Invitation status tracking system
    • View all pending invitations
    • Resend invitation emails
    • Delete/cancel pending invitations
    • Track accepted invitations and completion status

[1.0.1] - 2024-XX-XX

Added

  • Multi-Company Accounts - Single user account across multiple organizations
    • One user account can belong to multiple companies
    • Single login manages all company memberships
    • Easy company switching interface
    • Base user profile follows across all companies
    • Simplified account management for users with multiple roles

[1.0.0] - 2024-XX-XX

Added

  • Initial Release - Core Omada Hub platform launch
    • User account creation and authentication
    • Company creation and management
    • Stripe subscription integration for billing
    • Employee profile system
    • User dashboard
    • Profile settings management
    • Basic company administration tools
    • Foundation for all future features

Format Guidelines

Categories

  • Added - New features
  • Changed - Changes to existing functionality
  • Deprecated - Soon-to-be removed features
  • Removed - Removed features
  • Fixed - Bug fixes
  • Security - Security fixes and enhancements
  • Technical Details - Implementation specifics for developers

Version Format

  • Follows Semantic Versioning: MAJOR.MINOR.PATCH
  • Date format: ISO 8601 (YYYY-MM-DD)