Enhance app management with 'IsRecommended' feature
- Added 'IsRecommended' property to app-related data models, allowing apps to be marked as recommended. - Updated API endpoints for creating and updating apps to include 'IsRecommended' in request bodies. - Modified database schema to accommodate the new 'IsRecommended' field. - Enhanced frontend components to display recommended apps with a star icon and updated forms to manage this property. - Improved sorting logic in app listings to prioritize recommended apps. - Updated documentation to reflect changes in API and data models.
This commit is contained in:
+8
-4
@@ -18,7 +18,8 @@ public class DeleteDisabledAppsCommandHandlerTests
|
||||
OsPlatform.Android,
|
||||
null,
|
||||
null,
|
||||
0
|
||||
0,
|
||||
isRecommended: false
|
||||
);
|
||||
disabledApp.Update(
|
||||
disabledApp.Name,
|
||||
@@ -27,7 +28,8 @@ public class DeleteDisabledAppsCommandHandlerTests
|
||||
null,
|
||||
null,
|
||||
0,
|
||||
isEnabled: false
|
||||
isEnabled: false,
|
||||
isRecommended: false
|
||||
);
|
||||
|
||||
var enabledApp = ClientApp.Create(
|
||||
@@ -36,7 +38,8 @@ public class DeleteDisabledAppsCommandHandlerTests
|
||||
OsPlatform.IOS,
|
||||
null,
|
||||
null,
|
||||
0
|
||||
0,
|
||||
isRecommended: false
|
||||
);
|
||||
|
||||
dbContext.ClientApps.AddRange(disabledApp, enabledApp);
|
||||
@@ -65,7 +68,8 @@ public class DeleteDisabledAppsCommandHandlerTests
|
||||
OsPlatform.IOS,
|
||||
null,
|
||||
null,
|
||||
0
|
||||
0,
|
||||
isRecommended: false
|
||||
);
|
||||
dbContext.ClientApps.Add(enabledApp);
|
||||
await dbContext.SaveChangesAsync(CancellationToken.None);
|
||||
|
||||
Reference in New Issue
Block a user