Examples

Archaeological finds register

Built with the mantine-data-grid skill

Group by

Total weight
563.14 kg

Build the finds register of an archaeological excavation: the team records every object found and reviews the finds by trench and layer.

Data:

  • about 400 generated finds: find number (for example "T2-L3-041"), trench (T1–T5), stratigraphic layer (L1–L6, numbered from the surface down), material (ceramic, bone, metal, glass, stone, shell), description, weight in grams, condition (complete, fragment, corroded), date found, finder
  • dates fall within one 6-week excavation season

Table:

  • by default rows are grouped by trench, then by layer; each group row shows the number of finds and their total weight
  • grouping can be switched to material or turned off
  • layers sort by depth (L1 first), not alphabetically
  • each column header has a menu to sort, pin to the left and hide the column
  • filters for material and condition, and a search by find number or description
  • weight is right-aligned in grams, shown as kilograms above 1,000 g

Row actions:

  • each row has a menu with "Edit", "Move to layer" and "Delete"
  • "Edit" opens a modal with a form for the find; saving updates the row
  • "Move to layer" asks for the new layer, renumbers the find number to match and updates the group totals
  • "Delete" asks for confirmation with the find number

Small screens:

  • on screens narrower than a tablet, each find shows as a card with its find number, material, description, weight and the row actions, keeping the grouping

The component is shown on a demo page that already has a title: do not add a page title or intro text.

Write tests for the component.