> **SUPERSEDED — HISTORICAL RECORD ONLY (archived 2026-07-18).** This document is part of the original "superpowers" wayleave build, whose design diverged from the projects-module patterns it should have mirrored. Do NOT use it as a pattern source for wayleave or any new module. The wayleave module is being realigned to the projects module (meta-driven fields, OpenLayers, shared JS) — see CLAUDE.md.

# Wayleave Module Feedback

**Feedback after implementation of plan `2026-04-20-wayleave-module.md`**

## Overview

The wayleave module has been designed and implemented, but broadly does not follow any of the latest design/functionality patterns already in use in GeoLynx design or functionality.

Correct V2 example files that should have been used for design/functionality templates.
``` 
'projectedit' => [
            'head_nav' => ['html/html_header_nav_v2.php'],
            'nav_html' => [''],//'html/nav_projectedit_html.php',
            'html' => ['html/html_body_projectedit.php'],
            'css' => ['css/project_edit_v2.css'],
            'js' => ['js/project_edit_v2.js', 'js/project_edit_v2_fileuploads.js'],
            'version' => ['2']
        ],
```

## Design

- The layout of the wayleave module follows the "v1" layout rather than the newer "v2" 
layout which should have been identified using routing in `global_functions.php`
- File Upload layout/design doesn't follow the same pattern as v2 layout
- Journal Log layout/design doesn't follow the same pattern as v2 layout


## Functionality

- Title linking wasn't a requested feature, it is ok to remain but this should be part of the coverage tab and not its own separate tab, it should also autocomplete to give users feedback.
- Dropdown fields do not populate from saved data in the database, other fields seem ok.
- Fields like BD Manager, Account, Parent ID, Stocklist ID should be text search based on names and populate a hidden field with ID, see 
- Fields with their own category should get a new tab in the layout, see v2 design/layout
- Premise/project lists (tabulator) should be filterable as per v2 layouts.
- Wayleave team field should be a dropdown
- Journal Log does not include previous/new values as per v2 layouts
- Map functionality on projects is used to create and edit features. The wayleave map page should be used as both a viewer for the linked uprns and polygons, an editor for the wayleave polygons, and a way to view reference information. Adding single addresses (uprns) and/or stocklists should be managed on the same page. 

