mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
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:
parent
280c51f08f
commit
52f6ff142c
2 changed files with 1056 additions and 700 deletions
File diff suppressed because it is too large
Load diff
8
website/api/controllers/view-pricing.js
vendored
8
website/api/controllers/view-pricing.js
vendored
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue