Skip to content

Commit 0f47575

Browse files
committed
feat: add partnerprogram type to feed filter
- Add partnerprogram to FeedItemType union - Replace projects/1 with partnerprogram in feed filter constant - Include partnerprogram in DEFAULT_FEED_TYPES
1 parent 1c02ff3 commit 0f47575

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

projects/core/src/consts/filters/feed-filter.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const feedFilter = [
2222
{
2323
id: 4,
2424
name: "новости программ",
25-
value: "projects/1",
25+
value: "partnerprogram",
2626
icon: "procollab",
2727
},
2828
{

projects/social_platform/src/app/api/feed/facades/feed-info.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ToggleFeedLikeUseCase } from "../use-cases/toggle-feed-like.use-case";
2323
import { isSuccess, loading, success } from "@domain/shared/async-state";
2424
import { FILTER_SPLIT_SYMBOL } from "@core/consts/other/filter-split-symbol.const";
2525

26-
const DEFAULT_FEED_TYPES: FeedItemType[] = ["vacancy", "project", "news"];
26+
const DEFAULT_FEED_TYPES: FeedItemType[] = ["vacancy", "project", "news", "partnerprogram"];
2727

2828
/** Координирует глобальную ленту: данные резолвера, фильтры, пагинация, просмотры, лайки. */
2929
@Injectable()

projects/social_platform/src/app/domain/feed/feed-item.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface FeedProject {
2121
}
2222

2323
/** Тип элемента ленты */
24-
export type FeedItemType = "vacancy" | "news" | "project";
24+
export type FeedItemType = "vacancy" | "news" | "project" | "partnerprogram";
2525

2626
/** Объединенный тип элемента ленты */
2727
export type FeedItem =

0 commit comments

Comments
 (0)