EDM-2632: Update types with new ApplicationStatus when there are no apps#386
Conversation
WalkthroughThis pull request refactors the authentication provider specification from assignment-based authorization to OAuth2 configuration, makes the appType property required across provider specs, adds support for a "no applications" status state, and updates associated UI components and localizations accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AppProvider as App Provider<br/>(ApplicationProviderSpec)
participant OAuth2 as OAuth2 Config<br/>(AapProviderSpec)
participant StatusUI as Status Display<br/>(applications.ts)
Note over Client,StatusUI: OAuth2 Authorization Flow
Client->>AppProvider: Create with appType (required)
AppProvider->>OAuth2: Initialize OAuth2 config
OAuth2->>OAuth2: Store authorizationUrl, tokenUrl,<br/>clientId, clientSecret, scopes
Note over Client,StatusUI: No Applications Scenario
Client->>StatusUI: Check application status
alt Has Applications
StatusUI->>StatusUI: Display existing status
else No Applications
StatusUI->>StatusUI: Show ApplicationsSummaryStatusNoApplications<br/>with AsleepIcon
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
🧰 Additional context used🧠 Learnings (7)📓 Common learnings📚 Learning: 2025-11-20T07:33:34.656ZApplied to files:
📚 Learning: 2025-03-19T08:55:03.335ZApplied to files:
📚 Learning: 2025-03-20T12:37:36.986ZApplied to files:
📚 Learning: 2025-10-29T16:47:29.614ZApplied to files:
📚 Learning: 2025-11-24T13:42:36.897ZApplied to files:
📚 Learning: 2025-11-20T09:24:41.991ZApplied to files:
🧬 Code graph analysis (2)libs/types/models/ApplicationProviderSpec.ts (1)
libs/ui-components/src/types/deviceSpec.ts (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds the new "ApplicationsSummaryStatusNoApplications" to the UI
Without applications defined:

After applications are defined and reported:

Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.