feat: Integrate ProfileService into BaseAPIFeatureSet and update AutoRefreshDropdown label for clarity

This commit is contained in:
Nawaz Dhandala
2026-03-27 12:11:43 +00:00
parent 526eb756b1
commit 0130a850ca
2 changed files with 13 additions and 1 deletions

View File

@@ -399,6 +399,9 @@ import PushNotificationLogService, {
import SpanService, {
SpanService as SpanServiceType,
} from "Common/Server/Services/SpanService";
import ProfileService, {
ProfileService as ProfileServiceType,
} from "Common/Server/Services/ProfileService";
import StatusPageAnnouncementAPI from "Common/Server/API/StatusPageAnnouncementAPI";
import StatusPageCustomFieldService, {
Service as StatusPageCustomFieldServiceType,
@@ -502,6 +505,7 @@ import Express, { ExpressApplication } from "Common/Server/Utils/Express";
import Log from "Common/Models/AnalyticsModels/Log";
import Metric from "Common/Models/AnalyticsModels/Metric";
import Span from "Common/Models/AnalyticsModels/Span";
import Profile from "Common/Models/AnalyticsModels/Profile";
import ApiKey from "Common/Models/DatabaseModels/ApiKey";
import ApiKeyPermission from "Common/Models/DatabaseModels/ApiKeyPermission";
import CallLog from "Common/Models/DatabaseModels/CallLog";
@@ -1286,6 +1290,14 @@ const BaseAPIFeatureSet: FeatureSet = {
).getRouter(),
);
app.use(
`/${APP_NAME.toLocaleLowerCase()}`,
new BaseAnalyticsAPI<Profile, ProfileServiceType>(
Profile,
ProfileService,
).getRouter(),
);
app.use(
`/${APP_NAME.toLocaleLowerCase()}`,
new BaseAPI<TelemetryUsageBilling, TelemetryUsageBillingServiceType>(

View File

@@ -213,7 +213,7 @@ const AutoRefreshDropdown: FunctionComponent<AutoRefreshDropdownProps> = (
icon={IconProp.Refresh}
className="w-3.5 h-3.5 text-gray-500"
/>
<span className="text-xs text-gray-500">Auto-refresh</span>
<span className="text-xs text-gray-500">Auto-refresh: Off</span>
</>
)}
</button>