Selected Work

Northcott Global Solutions

Interactive mapping and operational data

Built major parts of a React and TypeScript operational platform, including a custom Google Maps interface for drawing, editing and working with live geographical data.

Role

Frontend Developer

Period

Jan 2023 – Feb 2024

Company

Northcott Global Solutions

ReactTypeScriptTailwind CSSReact QueryReact RouterGoogle Maps API
Global Mapping Operations Dashboard

Overview#

At Northcott Global Solutions, I worked on a data-heavy platform combining administration, operational information, trip workflows and interactive maps. For roughly the first six months, I was the sole frontend developer.

My work covered frontend structure, reusable components, API integration and complex user interactions. The project developed my ability to connect product requirements with decisions about components, types, state and asynchronous behaviour.

At a glanceDetails
Role and ownershipFrontend developer; sole frontend developer during the initial six months
Main toolsReact 18, TypeScript 4.9, React Query 3, React Router 6, Axios and Tailwind CSS
Product scopeAdministrative screens, operational records, multi-step workflows and geographic interactions
Main challengeKeeping remote data, user input and external interface libraries working together

Explore the case study:

The code examples are newly written illustrations with fictional names and data. They demonstrate patterns used in the project and selected refinements I would make today. They are not extracts from production source.

Ownership and delivery#

Being the initial frontend developer meant making structural decisions alongside implementing screens and interactions. My contribution included:

  • Organising pages, feature areas, shared components and data-access hooks.
  • Connecting interfaces to REST APIs and modelling their data with TypeScript.
  • Building reusable controls for recurring forms and selection workflows.
  • Coordinating shared state, navigation, editing and submissions.
  • Integrating geographic interactions into the wider application.

The frontend combined several connected concerns within one product. An editing workflow could involve an existing record, local form values, selected entities, a remote update and navigation after completion.

This developed my ability to break a requirement into its data, state, actions and transitions. It also made ownership a practical question: which component or module should be responsible for each part of that behaviour?

The frontend brought administrative workflows, operational records and geographic interactions into the same application. My work connected those views through shared controls, navigation and data access.

Architecture and maintainability#

Feature ownership and shared foundations#

The codebase combined shared technical folders with feature-based organisation. Common controls and data access were available across the application, while larger features grouped their own supporting logic.

A simplified view of the folder responsibilities is:

FolderResponsibility
src/pages/ and src/layout/Page components and shared application surroundings
src/features/Larger feature areas and their supporting logic
src/components/Shared controls, forms, modals and interface elements
src/api/ and src/services/Domain data access and shared request configuration
src/hooks/Reusable behaviour such as debouncing and pagination
src/types/Shared data models and response contracts
src/context/State shared between related components
src/auth/ and src/restrictions/Authentication integration and permission-aware interfaces

Some larger features contained their own components/, services/, types/, context/ and reducers/ folders. Their combination varied as the frontend evolved.

These patterns align with modularity and cohesion: keeping related functionality discoverable and giving common behaviour an appropriate shared location. Extracting an abstraction worked best when its shared responsibility was clear.

Routing, layouts and responsibilities#

React Router's nested routes allowed related screens to share navigation and surrounding interface elements. An outlet rendered the active child screen within its parent layout.

Domain hooks provided another boundary, exposing remote operations and request status to the interface. A typical query-driven screen could be understood through these responsibilities:

This is a conceptual view, rather than an exact dependency graph.

The architectural lesson was separation of concerns: identify the responsibility of the route, layout, page, shared control and data operation. Reviewing the archive also showed how boundaries could be clearer—for example, keeping shared domain types independent of UI declarations and letting a workflow own navigation after a reusable data operation.

React and TypeScript design#

Breadth of implementation experience#

My most extensive React work involved function components, state, context, effects, refs, custom hooks and API-driven screens. TypeScript described domain data, component inputs, callbacks, state setters and DOM or SDK objects.

AreaUse in the projectExtent
Components and compositionForms, tables, shared controls and feature screensBroad application use
Local and shared stateSelections, dialogs, filters and multi-step workflowsBroad use of state and context
Effects, refs and custom hooksSearch timing, focus, listeners and external objectsSubstantial integration work
TypeScript contractsDomain models, props, callbacks and API responsesUsed throughout the frontend
Generics, unions and tuplesReusable controls, response shapes and geographic dataFocused examples of reusable modelling
Reducers and memoisationEditing actions and selected derived values or callbacksMore concentrated use

Composition and generic component contracts#

A useful example was a searchable selection control. The project version supported search, single or multiple selection, and loading and disabled states. Domain wrappers supplied records and adapted selections for their parent screens.

This connects composition with parametric polymorphism: reuse the interaction while preserving the type of the record passing through it.

The illustration below reduces that design to a native single-select:

TSX
import { useState } from "react";

type PickerProps<T> = {
  label: string;
  items: readonly T[];
  value: T | null;
  getId: (item: T) => string;
  getLabel: (item: T) => string;
  onChange: (value: T | null) => void;
};

function RecordPicker<T>({
  label, items, value, getId, getLabel, onChange,
}: PickerProps<T>) {
  return (
    <label>
      {label}
      <select
        value={value === null ? "" : getId(value)}
        onChange={(event) => {
          const id = event.currentTarget.value;
          onChange(items.find((item) => getId(item) === id) ?? null);
        }}
      >
        <option value="">Choose an option</option>
        {items.map((item) => (
          <option key={getId(item)} value={getId(item)}>
            {getLabel(item)}
          </option>
        ))}
      </select>
    </label>
  );
}

type Person = { id: string; displayName: string };

function AssigneeField({ people }: { people: Person[] }) {
  const [person, setPerson] = useState<Person | null>(null);

  return (
    <RecordPicker
      label="Assignee"
      items={people}
      value={person}
      getId={(item) => item.id}
      getLabel={(item) => item.displayName}
      onChange={setPerson}
    />
  );
}

Here, T connects the available records, selected value and callback. The parent owns the selection and supplies record-specific labels; the shared component owns the interaction.

This illustrates generic props, typed callbacks, controlled values and an explicit empty selection. The wider lesson was to give a reusable component a clear contract while keeping screen-specific data adaptation close to its caller.

Focused hooks and lifecycle ownership#

Search controls needed to coordinate typing with filtering or API requests. A debouncing hook extracted the timing behaviour from the visual component:

TypeScript
import { useEffect, useState } from "react";

function useDebouncedText(text: string, delayMs = 300): string {
  const [debouncedText, setDebouncedText] = useState(text);

  useEffect(() => {
    const timer = window.setTimeout(() => {
      setDebouncedText(text);
    }, delayMs);

    return () => window.clearTimeout(timer);
  }, [text, delayMs]);

  return debouncedText;
}

The visible input can update immediately while search behaviour uses the delayed value. Cleanup clears the pending timer when its inputs change or the component unmounts.

This is an example of abstraction and a focused responsibility: the caller receives a value without managing the timer. The same resource-ownership principle applies to listeners, subscriptions and external objects.

Integrating an external SDK#

Google Maps provided a more demanding integration example. I worked with typed SDK references, editable geographic features, selections and transformations between API data and the map's representation.

Its objects and events needed to coordinate with React state and the surrounding controls. This developed my ability to work across different programming models and think about who owns an object, when it changes and how its resources are released.

The experience applies to other interactive libraries, including editors and charts.

Data correctness and reliability#

Server state, pagination and mutations#

React Query handled fetching, pagination, mutations, invalidation and conditional polling. Custom hooks exposed these operations to screens.

The project used React Query 3. This fictional example follows that version's API; request helpers are shown as signatures to keep the focus on the frontend contract:

TypeScript
import { useMutation, useQuery, useQueryClient } from "react-query";

type Item = { id: string; title: string };
type Page<T> = { items: T[]; total: number };
type ListFilters = {
  workspaceId: string;
  search: string;
  page: number;
};

// Request contracts; transport implementation is omitted.
declare function fetchItems(filters: ListFilters): Promise<Page<Item>>;
declare function renameItem(input: Item): Promise<Item>;

function useItems(filters: ListFilters) {
  return useQuery({
    queryKey: [
      "example-items",
      filters.workspaceId,
      filters.search,
      filters.page,
    ],
    queryFn: () => fetchItems(filters),
    enabled: filters.workspaceId.length > 0,
  });
}

function useRenameItem() {
  const queryClient = useQueryClient();

  return useMutation(renameItem, {
    onSuccess: () =>
      queryClient.invalidateQueries(["example-items"]),
  });
}

The generic Page<T> preserves the record type within a reusable response structure. The query key identifies data through its workspace, search term and page. After a successful mutation, the related query family is invalidated.

The example uses a broad invalidation prefix for clarity. For a larger feature, I would choose the affected collections and detail records more precisely.

These building blocks were present in the project. Complete cache identity and failure handling were not applied consistently everywhere; the example shows the more systematic approach I would carry forward.

Contracts, identity and valid state#

The project deepened my understanding of several correctness principles:

  • Contracts: a request's expected return type and failure behaviour both matter. Typed signatures describe data, while runtime validation is needed for uncertain external values.
  • Cache identity: changing request inputs must distinguish the data being requested.
  • State invariants: displayed records should match the current selection, and a workflow should have one coherent active stage.
  • Idempotence: after establishing whether an API returns snapshots or updates, repeated input should not create duplicate logical records.
  • Immutability and purity: editing state should preserve the previous snapshot, and state transformations should remain separate from SDK side effects.

Context helped related components share workflow values, and reducers grouped editing actions. Revisiting the implementation showed where a single stage value, fewer copies of derived data and pure update functions would make those workflows easier to reason about.

Failure recovery and authentication context#

Editing screens needed to coordinate form input, remote updates and the next action. A failed operation should preserve useful input and give the user a clear recovery path.

Some historical request functions logged errors without propagating them. That sharpened an important lesson: a success transition needs evidence that the operation succeeded.

The application also integrated OIDC authentication and role- and module-aware navigation. My work concerned frontend context, routes and available controls. Loading, unavailable or missing user context needs deliberate handling before those decisions are made.

Engineering judgement and next steps#

Practices I would retain and strengthen#

Reviewing the codebase helped me connect implementation choices to their underlying engineering principles:

PrincipleWhat I would retainWhat I would strengthen
Modularity and cohesionFeature ownership, shared layouts and domain hooksConsolidate overlapping patterns and clarify dependency direction
Abstraction and compositionFocused hooks and reusable typed controlsKeep shared contracts narrow and screen-specific behaviour local
Type safety and contractsDomain models, generics and typed callbacksReplace broad any and unjustified assertions at important boundaries; validate external data
State invariants and purityExplicit editing actions and shared workflow stateModel valid stages directly, preserve nested snapshots and separate SDK operations from reducers
Identity and synchronizationQuery-driven data and mutation invalidationInclude complete request identity, derive views where practical and merge updates by stable ID
Resource ownershipPaired timer setup and cleanup in focused hooksApply consistent dependencies and cleanup across SDK listeners and refresh intervals
Verification and measurementReviewing behaviour at interaction boundariesAdd focused regression tests and profile concrete performance problems

These are priorities for subsequent work, rather than claims that all of them were implemented in the historical project.

How I would verify improvements#

I would start with a small set of behaviours that have clear pass conditions:

  • A rejected save shows an error and retains form input.
  • Changing the selected scope shows the corresponding records.
  • A nested edit leaves the previous state snapshot unchanged.
  • Repeating an update does not create duplicate logical entries.
  • Mounting, unmounting and remounting an integration leaves the correct resources active.

My use of memoisation was limited, so I would support future performance claims with profiling. The archived source does not include automated tests, so I do not quote a coverage figure for this work.

The project gave me broad hands-on React experience and practical TypeScript experience across architecture, reusable controls, domain modelling and API integration. Being the initial frontend developer also required judgement about structure while features were being delivered.

The practices I carry forward are clear ownership, meaningful contracts, deliberate state models and verification of the behaviours users depend on.

Search portfolio

Quick links and recent content
HomePortfolio overviewPageWorkSelected projects and experiencePageEngineering notesTechnical notes and explanationsPageCPDLearning reflections and evidencePageProblem solvingJava algorithms and LeetCode practicePageAboutBackground and engineering interestsPageContactGet in touchPageView CVOpen the CV in a new tabPage
Interactive mapping and operational data