<commit_before>const { concat } = require('lodash')

const DEFAULT_COLLECTION_QUERY = {
  sortby: 'modified_on:desc',
  archived: false,
}

const GLOBAL_NAV_ITEM = {
  path: '/companies',
  label: 'Companies',
  permissions: [
    'company.read_company',
  ],
  order: 1,
}

const LOCAL_NAV = [
  {
    path: 'details',
    label: 'Details',
  },
  {
    path: 'subsidiaries',
    label: 'Subsidiaries',
  },
  {
    path: 'contacts',
    label: 'Contacts',
    permissions: [
      'company.read_contact',
    ],
  },
  {
    path: 'interactions',
    label: 'Interactions',
    permissions: [
      'interaction.read_all_interaction',
    ],
  },
  {
    path: 'exports',
    label: 'Export',
  },
  {
    path: 'investments',
    label: 'Investment',
    permissions: [
      'investment.read_all_investmentproject',
      'investment.read_associated_investmentproject',
    ],
  },
  {
    path: 'orders',
    label: 'Orders (OMIS)',
    permissions: [
      'order.read_order',
    ],
  },
  {
    path: 'audit',
    label: 'Audit history',
  },
  {
    path: 'documents',
    label: 'Documents',
    permissions: [
      'company.read_company_document',
    ],
  },
]
<commit_msg>Add timeline tab to company page<commit_after>const { concat } = require('lodash')

const DEFAULT_COLLECTION_QUERY = {
  sortby: 'modified_on:desc',
  archived: false,
}

const GLOBAL_NAV_ITEM = {
  path: '/companies',
  label: 'Companies',
  permissions: [
    'company.read_company',
  ],
  order: 1,
}

const LOCAL_NAV = [
  {
    path: 'details',
    label: 'Details',
  },
  {
    path: 'subsidiaries',
    label: 'Subsidiaries',
  },
  {
    path: 'contacts',
    label: 'Contacts',
    permissions: [
      'company.read_contact',
    ],
  },
  {
    path: 'interactions',
    label: 'Interactions',
    permissions: [
      'interaction.read_all_interaction',
    ],
  },
  {
    path: 'exports',
    label: 'Export',
  },
  {
    path: 'investments',
    label: 'Investment',
    permissions: [
      'investment.read_all_investmentproject',
      'investment.read_associated_investmentproject',
    ],
  },
  {
    path: 'orders',
    label: 'Orders (OMIS)',
    permissions: [
      'order.read_order',
    ],
  },
  {
    path: 'audit',
    label: 'Audit history',
  },
  {
    path: 'timeline',
    label: 'Timeline',
    permissions: [
      'company.read_company_timeline',
    ],
  },
  {
    path: 'documents',
    label: 'Documents',
    permissions: [
      'company.read_company_document',
    ],
  },
]

{'fraction_non_alphanumeric': 0.1589641434262948, 'fraction_numerical': 0.0007968127490039841, 'mean_word_length': 2.6233766233766236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3494696', 'n_tokens_mistral': 931, 'n_tokens_neox': 918, 'n_words': 151}