Glossary: treetracker-admin-client
Generated by .github/scripts/build-glossary.mjs from domain-graph.json (source commit ecbfe05). Do not edit by hand.
This glossary lists the business terms of treetracker-admin-client. Each term links to its domain, which says what the domain does, its rules, and its flows. The estate glossary shows which other repos use the same terms.
Terms
- Announcement: Messaging & Surveys
- Capture: Capture Management
- Capture Image: Capture Management
- CSV Batch Upload: Earnings & Payments Reporting
- Dashboard Stat: Reporting & Analytics Dashboard
- Date Range Filter: Reporting & Analytics Dashboard
- Duplicate Candidate: Capture Management
- Earning Record: Earnings & Payments Reporting
- Grower: Grower Management
- Grower Registration: Grower Management
- Grower Selfie: Grower Management
- Inbox Thread: Messaging & Surveys
- Member Grower/User: Stakeholder & Organization Management
- Message: Messaging & Surveys
- Organization: Authentication & Access Control
- Organization Assignment: Grower Management
- Parent/Child Relationship: Stakeholder & Organization Management
- Payment Confirmation: Earnings & Payments Reporting
- Permission: Authentication & Access Control
- Region: Reference Data Management
- Region GeoJSON Boundary: Reference Data Management
- Reporting Card: Reporting & Analytics Dashboard
- Route/Menu Entry: Authentication & Access Control
- Species: Reference Data Management
- Stakeholder: Stakeholder & Organization Management
- Stakeholder Group: Stakeholder & Organization Management
- Survey: Messaging & Surveys
- Survey Response: Messaging & Surveys
- Tag: Capture Management
- User Session: Authentication & Access Control
- Verification Status: Capture Management
Domains
Authentication & Access Control
Manages admin user login, session storage, and permission-gated navigation across the Admin Panel. Determines which routes and menu items a signed-in user can access based on their role and organization.
Terms: User Session, Permission, Route/Menu Entry, Organization
Rules:
- Unauthenticated users are redirected to /login for any private route.
- Route and menu visibility is derived per-user from hasPermission checks, not hardcoded.
- A 'Freetown' feature flag permission gates a subset of experimental routes.
Flows:
- User Login (
Login.js form submission (POST auth)): Authenticates an admin user with credentials, stores the session, and redirects into the permission-gated app shell. - Permission-Gated Routing (
App bootstrap / route table construction): Builds the set of routes and menu items a user is allowed to see, and blocks direct navigation to unauthorized pages.
Capture Management
Covers verifying, browsing, exporting, and de-duplicating tree-planting 'captures' (photo submissions) collected by the Treetracker mobile app. This is the core review workflow that turns raw field submissions into verified, tokenized tree records.
Terms: Capture, Capture Image, Verification Status, Tag, Duplicate Candidate
Rules:
- A capture must be approved or rejected before it is tokenized.
- Approve/reject actions support undo via an in-memory action history.
- Filters (date, species, tag, organization) scope both the verify queue and the captures table.
- The matching tool flags visually/geospatially similar captures as likely duplicates before approval.
Flows:
- Verify Captures (
/verify route (VerifyView)): Reviews a paginated queue of unverified capture images and approves, rejects, or undoes verification decisions. - Browse & Export Captures (
/captures route (CapturesView)): Lists already-processed captures in a filterable table and exports the current result set to CSV. - Match Duplicate Capture Images (
/matching route (MatchingToolView)): Surfaces visually and geospatially similar capture images so reviewers can identify likely duplicate submissions from the same grower before approval.
Grower Management
Manages the tree planters ('growers') who submit captures: browsing and filtering the grower directory, and viewing/editing individual grower profiles, registrations, and organization assignment.
Terms: Grower, Grower Registration, Grower Selfie, Organization Assignment
Rules:
- A grower can be reassigned to a different stakeholder organization, including cleared to null.
- Grower selfie photos are deduplicated from the grower's capture history rather than stored separately.
Flows:
- Browse & Filter Growers (
/growers route (GrowersView)): Lists growers in a paginated grid with search/filter controls for finding a specific planter. - View & Edit Grower Profile (
Grower detail dialog / GrowerDetail component): Loads a single grower's profile, registration devices, and photos, and allows editing profile fields including organization assignment.
Reference Data Management
Maintains the master/reference catalogs used throughout the app: tree species taxonomy and geographic regions (with GeoJSON boundaries). Both are simple CRUD catalogs referenced by captures, growers, and messaging.
Terms: Species, Region, Region GeoJSON Boundary
Rules:
- Duplicate species entries can be merged ('combined') rather than only deleted.
- Region boundaries are stored and edited as GeoJSON.
- Deleting a species or region requires an explicit confirmation dialog.
Flows:
- Manage Species Catalog (
/species route (SpeciesView)): Views, edits, merges, and deletes entries in the tree species catalog. - Manage Regions & Boundaries (
/regions route (RegionsView)): Views, edits (including GeoJSON boundary upload), and deletes geographic regions used to scope growers and messaging.
Stakeholder & Organization Management
Manages stakeholder organizations (NGOs, partners, groups) that growers and users belong to, including their parent/child organizational hierarchy and membership lists.
Terms: Stakeholder, Stakeholder Group, Parent/Child Relationship, Member Grower/User
Rules:
- Stakeholders can be organized in a parent/child hierarchy.
- A stakeholder detail view lists both member growers and member users.
- Adding a stakeholder requires form validation before submission.
Flows:
- Browse & Filter Stakeholders (
/stakeholders route (StakeholdersView)): Lists stakeholder organizations in a sortable table with filter controls. - Manage Stakeholder Detail & Relationships (
Stakeholder detail modal): Views and edits a single stakeholder's profile, parent/child organization hierarchy, and member growers/users. - Add New Stakeholder (
Add stakeholder modal): Creates a new stakeholder organization via a validated form.
Messaging & Surveys
Handles direct and broadcast messaging with growers, including announcements and grower surveys, plus visualization of aggregated survey responses.
Terms: Message, Announcement, Survey, Survey Response, Inbox Thread
Rules:
- Announcements can be broadcast to many growers at once, distinct from a single-recipient message.
- Survey responses are rendered as distinct chat-bubble types from plain sent/received messages.
- Most messaging API calls are scoped by the session organization UUID.
Flows:
- Send Message / Announcement (
/messaging route (MessagingView)): Browses the message inbox, composes a new one-to-one message or a broadcast announcement, and sends it to grower(s). - Conduct Grower Survey (
Survey composer within Messaging): Builds and sends a survey to growers, then visualizes the aggregated responses.
Earnings & Payments Reporting
Tracks grower earnings from verified/tokenized captures and records payment confirmations, including bulk CSV-based adjustment of earnings and payment logs.
Terms: Earning Record, Payment Confirmation, CSV Batch Upload
Rules:
- Earnings can be patched individually or in bulk via CSV upload.
- Logging a payment confirmation (id + method) updates the underlying earning record.
Flows:
- Review & Adjust Earnings (
/earnings route (EarningsView)): Views paginated grower earnings and adjusts them individually or via bulk CSV upload. - Log Grower Payments (
/payments route (PaymentsView)): Views payment records with date-range filtering, bulk CSV upload, and logs payment confirmation details against an earning.
Reporting & Analytics Dashboard
Presents the admin home page with at-a-glance stat cards and date-range-filterable reporting cards summarizing captures, growers, trees, and species across the organization.
Terms: Dashboard Stat, Reporting Card, Date Range Filter
Rules:
- Dashboard sections and menus are gated by user permissions.
- Reporting cards show a top-N breakdown alongside the headline stat, with a 'see more' modal for detail.
Flows:
- View Dashboard Overview (
/ route (Home)): Renders the home page's stat cards and reporting cards for a selected date range, summarizing captures, growers, trees, and species activity.