Website: Reorder pricing features YAML (#20713)

Changes:
- Reordered the pricing page YAML to match the order in [the latest
wireframes](https://www.figma.com/design/3he8e72251IEnF6dBafKq1/%F0%9F%9A%A7-fleetdm.com-(scratchpad)?node-id=15042-3959&m=dev&t=8KCdpYqJh8Pk5Aze-1)
- Added ASCII art headings to the pricing features YAML to separate
features
- Added an example feature to the top of the pricing features YAML
- Updated how features are sorted on the pricing page
This commit is contained in:
Eric 2024-07-25 17:33:26 -05:00 committed by GitHub
parent 280c51f08f
commit 52f6ff142c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1056 additions and 700 deletions

File diff suppressed because it is too large Load diff

View file

@ -29,7 +29,7 @@ module.exports = {
let pricingTable = [];
let pricingTableCategories = ['Support', 'Deployment', 'Integrations','Device management', 'Endpoint operations', 'Vulnerability management'];
let pricingTableCategories = ['Deployment', 'Device management', 'Endpoint operations', 'Vulnerability management', 'Integrations', 'Support'];
for(let category of pricingTableCategories) {
// Get all the features in that have a pricingTableFeatures array that contains this category.
let featuresInThisCategory = _.filter(pricingTableFeatures, (feature)=>{
@ -38,9 +38,7 @@ module.exports = {
// Build a dictionary containing the category name, and all features in the category, sorting premium features to the bottom of the list.
let allFeaturesInThisCategory = {
categoryName: category,
features: _.sortBy(featuresInThisCategory, (feature)=>{
return feature.tier !== 'Free';
})
features: featuresInThisCategory,
};
// Add the dictionaries to the arrays that we'll use to build the features table.
pricingTable.push(allFeaturesInThisCategory);
@ -65,7 +63,7 @@ module.exports = {
let pricingTableForIt = _.filter(pricingTable, (category)=>{
return category.categoryName !== 'Vulnerability management' && (category.usualDepartment === 'Security' || category.usualDepartment === undefined);
});
let categoryOrderForITPricingTable = ['Device management', 'Support', 'Deployment', 'Integrations', 'Endpoint operations'];
let categoryOrderForITPricingTable = [ 'Deployment','Device management', 'Endpoint operations', 'Integrations', 'Support'];
// Sort the IT-focused pricing table from the order of the elements in the categoryOrderForITPricingTable array.
pricingTableForIt.sort((a, b)=>{
// If there is a category that is not in the list above, sort it to the end of the list.