chore: tweak feature comments

This commit is contained in:
Steven
2025-08-18 23:10:33 +08:00
parent 260b451a5f
commit d5e7c50682
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -262,6 +262,7 @@ func (s *APIV1Service) GetShortcutAnalytics(ctx context.Context, request *v1pb.G
Type: store.ActivityShortcutView, Type: store.ActivityShortcutView,
PayloadShortcutID: &shortcut.Id, PayloadShortcutID: &shortcut.Id,
} }
// For non-advanced analytics users, we limit the activity to the last 14 days.
if !s.LicenseService.IsFeatureEnabled(license.FeatureTypeAdvancedAnalytics) { if !s.LicenseService.IsFeatureEnabled(license.FeatureTypeAdvancedAnalytics) {
createdTsAfter := time.Now().AddDate(0, 0, -14).Unix() createdTsAfter := time.Now().AddDate(0, 0, -14).Unix()
activityFind.CreatedTsAfter = &createdTsAfter activityFind.CreatedTsAfter = &createdTsAfter
+2 -2
View File
@@ -39,8 +39,8 @@ var FeatureMatrix = map[FeatureType][3]bool{
FeatureTypeUnlimitedShortcuts: {false, true, true}, FeatureTypeUnlimitedShortcuts: {false, true, true},
FeatureTypeUnlimitedCollections: {false, true, true}, FeatureTypeUnlimitedCollections: {false, true, true},
FeatureTypeCustomeBranding: {false, false, true}, FeatureTypeCustomeBranding: {false, false, true},
FeatureTypeSSO: {false, false, false}, FeatureTypeSSO: {false, false, true},
FeatureTypeAdvancedAnalytics: {false, false, false}, FeatureTypeAdvancedAnalytics: {false, false, true},
} }
func getDefaultFeatures(plan v1pb.PlanType) []FeatureType { func getDefaultFeatures(plan v1pb.PlanType) []FeatureType {