Keep a typed main kind from being ranked as the catalog other kind, and store that catalog kind on the finished Rule.
This commit is contained in:
1 parent
4b90bce006
commit
3e0181e4de
7 files changed
+174
-48
No files matched your search
+13
-1
@@ -27,6 +27,12 @@ export const KINDS = [
|
||||
] as const;
|
||||
export type Kind = (typeof KINDS)[number];
|
||||
|
||||
/**
|
||||
* First `facet.orgType` value when the main kind was typed.
|
||||
* Later catalog values stay other kinds instead of becoming the main kind.
|
||||
*/
|
||||
export const TYPED_ORG_TYPE_MARKER = "__typed__";
|
||||
|
||||
export const SCALES = ["local", "regional", "national", "global"] as const;
|
||||
export type Scale = (typeof SCALES)[number];
|
||||
|
||||
@@ -48,7 +54,13 @@ export const TRAIT_KEYS = [
|
||||
] as const;
|
||||
export type TraitKey = (typeof TRAIT_KEYS)[number];
|
||||
|
||||
export const DISPLAY_TIERS = ["frame", "safety", "fitted", "floor", "none"] as const;
|
||||
export const DISPLAY_TIERS = [
|
||||
"frame",
|
||||
"safety",
|
||||
"fitted",
|
||||
"floor",
|
||||
"none",
|
||||
] as const;
|
||||
export type DisplayTier = (typeof DISPLAY_TIERS)[number];
|
||||
export type RankTier = Exclude<DisplayTier, "none"> | "answers";
|
||||
|
||||
|
||||
Reference in new issue
Block a user