260515_04_ENH: 조사 및 지역에 대한 노출 config 기준으로 되도록 수정

This commit is contained in:
2026-05-15 15:53:11 +09:00
parent bab36848af
commit c197fbcde9
4 changed files with 22 additions and 16 deletions

View File

@@ -13,6 +13,7 @@ export const CUSTOMER_SATISFACTION_GAP_SIGN_STYLE: SignStyle<TopChartTableRow> =
paint: "text",
};
//조사에 대한 조정은 여기서
export const CATEGORY_KEY_MAP: Record<string, string> = {
"-1": "전체 현황",
"2601009_A": "안전점검",
@@ -41,10 +42,15 @@ const toKeyMap = <T extends KeyLabelEntries>(entries: T) =>
const toKeys = <T extends KeyLabelEntries>(entries: T) =>
entries.map(([key]) => key) as Array<T[number][0]>;
export const CATEGORY_KEYS = Object.keys(CATEGORY_KEY_MAP) as Array<keyof typeof CATEGORY_KEY_MAP>;
export const CATEGORY_KEYS = Object.keys(CATEGORY_KEY_MAP);
export const CATEGORIES = Object.values(CATEGORY_KEY_MAP) as Array<string>;
export const SUMMARY_CATEGORY_KEYS = CATEGORY_KEYS.filter(
(key) => key !== "-1" && key !== "2601009_A"
);
//지역에 대한 조정은 여기서
const DIV_KEY_ENTRIES = [
["-1", "전체"],
["1", "서울인천지역본부"],