} else {
navigate({
pathname: '/projects',
- search: queryToSearch({ recent: true }),
+ search: queryToSearch({ sort: '-creation_date' }),
});
}
}, [data, projectCount, mutateCount, reset, intl, navigate]);
export const SORTING_METRICS: SortingOption[] = [
{ value: 'name' },
{ value: 'analysis_date' },
+ { value: 'creation_date' },
{ value: 'reliability' },
{ value: 'security' },
{ value: 'security_review' },
export const SORTING_LEAK_METRICS: SortingOption[] = [
{ value: 'name' },
{ value: 'analysis_date' },
+ { value: 'creation_date' },
{ value: 'new_reliability', class: 'projects-leak-sorting-option' },
{ value: 'new_security', class: 'projects-leak-sorting-option' },
{ value: 'new_security_review', class: 'projects-leak-sorting-option' },
tags: 'tags',
search: 'query',
qualifier: 'qualifier',
+ creation_date: 'creationDate',
};
const metricToPropertyMap = invert(propertyToMetricMap);
projects.sorting.default=default
projects.sorting.name=Name
projects.sorting.analysis_date=Last analysis date
+projects.sorting.creation_date=Creation date
projects.sorting.reliability=Reliability
projects.sorting.security=Security
projects.sorting.security_review=Security Review
onboarding.create_x_project.new_code_definition.title=Set up {count, plural, one {project} other {# projects}} for Clean as You Code
onboarding.create_project.new_code_definition.description=The new code definition sets which part of your code will be considered new code. This helps you focus attention on the most recent changes to your project, enabling you to follow the Clean as You Code methodology. Learn more: {link}
onboarding.create_project.new_code_definition.description.link=Defining New Code
-onboarding.create_project.new_code_definition.create_project=Create project
onboarding.create_project.new_code_definition.create_x_projects=Create {count, plural, one {project} other {# projects}}
onboarding.create_projects.new_code_definition.change_info=You can change this for each project individually at any time in the project administration.
onboarding.create_project.success=Your {count, plural, one {project has} other {# projects have}} been created.