cleanup - froentend pages removed

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-20 09:55:16 +00:00
parent ab0d6469d4
commit eb6cba7920
55 changed files with 4419 additions and 9232 deletions

View File

@@ -637,9 +637,6 @@ export async function fetchKeywords(filters: KeywordFilters = {}): Promise<Keywo
const params = new URLSearchParams();
// Automatically add active site filter if not explicitly provided
// Always add site_id if there's an active site (even for admin/developer)
// The backend will respect it appropriately - admin/developer can still see all sites
// but if a specific site is selected, filter by it
if (!filters.site_id) {
const activeSiteId = getActiveSiteId();
if (activeSiteId) {
@@ -648,11 +645,8 @@ export async function fetchKeywords(filters: KeywordFilters = {}): Promise<Keywo
}
// Automatically add active sector filter if not explicitly provided
// Only add if activeSector is not null (null means "All Sectors")
// ADMIN/DEV OVERRIDE: Only inject if user is not admin/developer (handled by backend)
if (filters.sector_id === undefined) {
const activeSectorId = getActiveSectorId();
// Only add sector_id if it's not null (null means "All Sectors")
if (activeSectorId !== null && activeSectorId !== undefined) {
filters.sector_id = activeSectorId;
}
@@ -785,9 +779,6 @@ export async function fetchClusters(filters: ClusterFilters = {}): Promise<Clust
const params = new URLSearchParams();
// Automatically add active site filter if not explicitly provided
// Always add site_id if there's an active site (even for admin/developer)
// The backend will respect it appropriately - admin/developer can still see all sites
// but if a specific site is selected, filter by it
if (!filters.site_id) {
const activeSiteId = getActiveSiteId();
if (activeSiteId) {
@@ -796,11 +787,8 @@ export async function fetchClusters(filters: ClusterFilters = {}): Promise<Clust
}
// Automatically add active sector filter if not explicitly provided
// Only add if activeSector is not null (null means "All Sectors")
// ADMIN/DEV OVERRIDE: Only inject if user is not admin/developer (handled by backend)
if (filters.sector_id === undefined) {
const activeSectorId = getActiveSectorId();
// Only add sector_id if it's not null (null means "All Sectors")
if (activeSectorId !== null && activeSectorId !== undefined) {
filters.sector_id = activeSectorId;
}
@@ -1008,9 +996,6 @@ export async function fetchContentIdeas(filters: ContentIdeasFilters = {}): Prom
const params = new URLSearchParams();
// Automatically add active site filter if not explicitly provided
// Always add site_id if there's an active site (even for admin/developer)
// The backend will respect it appropriately - admin/developer can still see all sites
// but if a specific site is selected, filter by it
if (!filters.site_id) {
const activeSiteId = getActiveSiteId();
if (activeSiteId) {
@@ -1019,11 +1004,8 @@ export async function fetchContentIdeas(filters: ContentIdeasFilters = {}): Prom
}
// Automatically add active sector filter if not explicitly provided
// Only add if activeSector is not null (null means "All Sectors")
// ADMIN/DEV OVERRIDE: Only inject if user is not admin/developer (handled by backend)
if (filters.sector_id === undefined) {
const activeSectorId = getActiveSectorId();
// Only add sector_id if it's not null (null means "All Sectors")
if (activeSectorId !== null && activeSectorId !== undefined) {
filters.sector_id = activeSectorId;
}
@@ -1166,9 +1148,6 @@ export async function fetchTasks(filters: TasksFilters = {}): Promise<TasksRespo
const params = new URLSearchParams();
// Automatically add active site filter if not explicitly provided
// Always add site_id if there's an active site (even for admin/developer)
// The backend will respect it appropriately - admin/developer can still see all sites
// but if a specific site is selected, filter by it
if (!filters.site_id) {
const activeSiteId = getActiveSiteId();
if (activeSiteId) {
@@ -1177,11 +1156,8 @@ export async function fetchTasks(filters: TasksFilters = {}): Promise<TasksRespo
}
// Automatically add active sector filter if not explicitly provided
// Only add if activeSector is not null (null means "All Sectors")
// ADMIN/DEV OVERRIDE: Only inject if user is not admin/developer (handled by backend)
if (filters.sector_id === undefined) {
const activeSectorId = getActiveSectorId();
// Only add sector_id if it's not null (null means "All Sectors")
if (activeSectorId !== null && activeSectorId !== undefined) {
filters.sector_id = activeSectorId;
}