Skip to content

Commit

Permalink
fix: [#188462617] fixed CMS search
Browse files Browse the repository at this point in the history
  • Loading branch information
adidner committed Oct 25, 2024
1 parent 25f2df4 commit f8296cb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
12 changes: 12 additions & 0 deletions web/public/mgmt/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4558,6 +4558,18 @@ collections:
collapsed: false
widget: object
fields:
- label: Trade Name
name: tradeName
collapsed: true
widget: object
fields:
- label: Default
name: "default"
collapsed: false
widget: object
fields:
- { label: "Header", name: "header", widget: "string" }
- { label: "Error Text Required", name: "errorTextRequired", widget: "string" }
- label: Business Persona
name: businessPersona
collapsed: true
Expand Down
22 changes: 9 additions & 13 deletions web/src/lib/search/cmsCollections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const cmsCollections = [
"Roadmaps - Add-ons",
"Roadmaps - Non Essential Questions",
"Roadmaps - Settings",
"Roadmaps - Raffle Bingo Steps",
],
},
{
Expand All @@ -27,36 +26,35 @@ export const cmsCollections = [
"Tasks - Config",
"Tasks - All",
"License Tasks (Navigator with Webflow mappings)",
"Raffle Bingo Steps",
"Webflow Licenses",
"Tasks - Cannabis License",
"Tasks - Cannabis Priority Status",
"Tasks - EIN",
"Tasks - Tax ID",
"Tasks - Municipal",
"Tasks - NAICS Code",
"Tasks - Business Structure",
"Tasks - Municipal",
],
},
{
label: "🟪 CALENDAR",
children: [
"Tax Access Modal Config",
"Consumer Affairs License Expiration / Renewal Events",
"Taxes Filings - All",
"Tax Access Modal Config",
],
},
{
label: "🟥 DASHBOARD",
children: ["Dashboard - Config", "Sidebar Cards Content"],
},
{
label: "🟧 QUICK ACTIONS",
label: "🟧 ANYTIME ACTIONS",
children: [
"Anytime Actions",
"Anytime Action Tasks",
"Anytime Action License Reinstatements",
"Anytime Action Reinstatement Defaults",
"Anytime Action Labels",
"Anytime Action With Details Page",
"Anytime Action With Consumer Affairs License Integrations (Reinstatements)",
"Anytime Action License External Link Only",
],
},
{
Expand All @@ -66,19 +64,17 @@ export const cmsCollections = [
{
label: "🟩 MISC",
children: [
"Starter Kits",
"Anytime Action Reinstatement and License Calendar Event Status Defaults",
"Starter Kits",
"Callout Defaults",
"Export Pdf Config",
"Dropdown Mappings",
"General Config",
"Profile Page",
"Post Onboarding Content",
"Contextual Information",
"404 Page",
"Component Accessibility",
"Global Error Messages",
"Navigation Config",
"Component Accessibility",
],
},
];
2 changes: 1 addition & 1 deletion web/src/lib/search/searchConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const findCmsConfigPath = (cmsConfig: any, keyPath: string[]): string[] => {
}
}

throw `NO MATCHING CMS PATH FOR ${keyPath.toString()}`;
throw `NO MATCHING CMS PATH FOR ${keyPath.toString()} (possibly missing in the CMS but exists in the JSON files)`;
};

const findFilesInCmsConfig = (cmsConfig: any, key: string): FileMatch[] => {
Expand Down

0 comments on commit f8296cb

Please sign in to comment.