mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Added fields to the Species columns
This commit is contained in:
@@ -80,48 +80,243 @@ export const SpeciesTable = ({ selectorFn }: { selectorFn?: (id: Species) => voi
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'common_name',
|
||||
accessorFn: row => row.common_name || '',
|
||||
header: 'Common Name',
|
||||
size: 20,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'sp_author',
|
||||
accessorFn: row => row.sp_author || '',
|
||||
header: 'Author',
|
||||
size: 20,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'strain',
|
||||
accessorFn: row => row.strain || '',
|
||||
header: 'Strain',
|
||||
size: 20,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'gene',
|
||||
accessorFn: row => row.gene || '',
|
||||
header: 'Gene',
|
||||
size: 20,
|
||||
id: 'sv_length',
|
||||
accessorFn: row => row.sv_length || '',
|
||||
header: 'Snout-Vent Length',
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'body_mass',
|
||||
accessorFn: row => row.body_mass || '',
|
||||
header: 'Body Mass',
|
||||
size: 20,
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'brain_mass',
|
||||
accessorFn: row => row.brain_mass || '',
|
||||
header: 'Brain Mass',
|
||||
size: 20,
|
||||
id: 'sd_size',
|
||||
accessorFn: row => row.sd_size || '',
|
||||
header: 'Sexual Dimorphism - Size',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'sd_display',
|
||||
accessorFn: row => row.sd_display || '',
|
||||
header: 'Sexual Dimorphism - Display',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'tshm',
|
||||
accessorFn: row => row.tshm || '',
|
||||
header: 'Tooth Shape - Multicuspid',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'tht',
|
||||
accessorFn: row => row.tht || '',
|
||||
header: 'Hypsodonty',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'horizodonty',
|
||||
accessorFn: row => row.horizodonty || '',
|
||||
header: 'Horizodonty',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'crowntype',
|
||||
accessorFn: row => row.crowntype || '',
|
||||
header: 'Crown Type',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'crowntype',
|
||||
accessorFn: row => row.crowntype || '',
|
||||
header: 'Developmental Crown Type',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'cusp_shape',
|
||||
accessorFn: row => row.cusp_shape || '',
|
||||
header: 'Cusp shape',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'cusp_count_buccal',
|
||||
accessorFn: row => row.cusp_count_buccal || '',
|
||||
header: 'Buccal cusp count',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'cusp_count_lingual',
|
||||
accessorFn: row => row.cusp_count_lingual || '',
|
||||
header: 'Lingual cusp count',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'loph_count_lon',
|
||||
accessorFn: row => row.loph_count_lon || '',
|
||||
header: 'Longitudinal loph count',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'loph_count_trs',
|
||||
accessorFn: row => row.loph_count_trs || '',
|
||||
header: 'Transverse loph count',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'fct_al',
|
||||
accessorFn: row => row.fct_al || '',
|
||||
header: 'Presence of acute lophs (AL)',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'fct_ol',
|
||||
accessorFn: row => row.fct_ol || '',
|
||||
header: 'Presence of obtuse or basin-like lophs (OL)',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'fct_sf',
|
||||
accessorFn: row => row.fct_sf || '',
|
||||
header: 'Structural fortification of cusps (SF)',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'fct_ot',
|
||||
accessorFn: row => row.fct_ot || '',
|
||||
header: 'Occlusal topography (OT)',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'fct_cm',
|
||||
accessorFn: row => row.fct_cm || '',
|
||||
header: 'Coronal cementum (CM)',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'microwear',
|
||||
accessorFn: row => row.microwear || '',
|
||||
header: 'Microwear',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'mesowear',
|
||||
accessorFn: row => row.mesowear || '',
|
||||
header: 'Mesowear',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'mw_or_high',
|
||||
accessorFn: row => row.mw_or_high || '',
|
||||
header: 'Cusp Relief High (OR%)',
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'mw_or_low',
|
||||
accessorFn: row => row.mw_or_low || '',
|
||||
header: 'Cusp Relief Low (OR%)',
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'mw_cs_sharp',
|
||||
accessorFn: row => row.mw_cs_sharp || '',
|
||||
header: 'Cusp Shape Sharp (CS%)',
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'mw_cs_round',
|
||||
accessorFn: row => row.mw_cs_round || '',
|
||||
header: 'Cusp Shape Rounded (CS%)',
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'mw_cs_blunt',
|
||||
accessorFn: row => row.mw_cs_blunt || '',
|
||||
header: 'Cusp Shape Blunt (CS%)',
|
||||
size: 10,
|
||||
filterVariant: 'range',
|
||||
enableColumnFilterModes: false,
|
||||
},
|
||||
{
|
||||
id: 'diet1',
|
||||
accessorFn: row => row.diet1 || '',
|
||||
header: 'Diet 1',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'diet2',
|
||||
accessorFn: row => row.diet2 || '',
|
||||
header: 'Diet 2',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'diet3',
|
||||
accessorFn: row => row.diet3 || '',
|
||||
header: 'Diet 3',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'locomo1',
|
||||
accessorFn: row => row.locomo1 || '',
|
||||
header: 'Locomotion 1',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'locomo2',
|
||||
accessorFn: row => row.locomo2 || '',
|
||||
header: 'Locomotion 2',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'locomo3',
|
||||
accessorFn: row => row.locomo3 || '',
|
||||
header: 'Locomotion 3',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
{
|
||||
id: 'sp_comment',
|
||||
accessorFn: row => row.sp_comment || '',
|
||||
header: 'Comment',
|
||||
size: 10,
|
||||
filterFn: 'contains',
|
||||
},
|
||||
],
|
||||
[]
|
||||
)
|
||||
@@ -131,11 +326,7 @@ export const SpeciesTable = ({ selectorFn }: { selectorFn?: (id: Species) => voi
|
||||
unique_identifier: false,
|
||||
taxonomic_status: false,
|
||||
common_name: false,
|
||||
sp_author: false,
|
||||
strain: false,
|
||||
gene: false,
|
||||
body_mass: false,
|
||||
brain_mass: false,
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -147,22 +147,47 @@ export type SpeciesDetailsType = Prisma.com_species & { now_ls: Array<SpeciesLoc
|
||||
|
||||
export type Species = {
|
||||
species_id: number
|
||||
order_name: string
|
||||
family_name: string
|
||||
order_name: string | null
|
||||
family_name: string | null
|
||||
genus_name: string | null
|
||||
species_name: string | null
|
||||
subclass_or_superorder_name: string | null
|
||||
suborder_or_superfamily_name: string | null
|
||||
subfamily_name: string | null
|
||||
genus_name: string
|
||||
species_name: string
|
||||
unique_identifier: string
|
||||
taxonomic_status: string
|
||||
common_name: string | null
|
||||
sp_author: string | null
|
||||
strain: string | null
|
||||
gene: string | null
|
||||
body_mass: number | null
|
||||
brain_mass: number | null
|
||||
sp_status: boolean | null
|
||||
unique_identifier: string | null
|
||||
taxonomic_status: string | null
|
||||
sv_length: string | null
|
||||
body_mass: number
|
||||
sd_size: string | null
|
||||
sd_display: string | null
|
||||
tshm: string | null
|
||||
tht: string | null
|
||||
horizodonty: string | null
|
||||
crowntype: string | null
|
||||
cusp_shape: string | null
|
||||
cusp_count_buccal: string | null
|
||||
cusp_count_lingual: string | null
|
||||
loph_count_lon: string | null
|
||||
loph_count_trs: string | null
|
||||
fct_al: string | null
|
||||
fct_ol: string | null
|
||||
fct_sf: string | null
|
||||
fct_ot: string | null
|
||||
fct_cm: string | null
|
||||
microwear: string | null
|
||||
mesowear: string | null
|
||||
mw_or_high: number
|
||||
mw_or_low: number
|
||||
mw_cs_sharp: number
|
||||
mw_cs_round: number
|
||||
mw_cs_blunt: number
|
||||
diet1: string | null
|
||||
diet2: string | null
|
||||
diet3: string | null
|
||||
locomo1: string | null
|
||||
locomo2: string | null
|
||||
locomo3: string | null
|
||||
sp_comment: string | null
|
||||
}
|
||||
|
||||
export type RegionDetails = Prisma.now_reg_coord & { now_reg_coord_people: Array<RegionCoordinator> } & {
|
||||
|
||||
Reference in New Issue
Block a user