> **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-22-wayleave-module-v2-refactor.md`**

## Overview

The V2 refactor made steps towards the original ask of mirroring the correct layout, but ultimately still falls short. Some aspects were 
deemed out of scope, so another update is required.

For reference, these are the correct V2/latest example files to use 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']
        ],
```


## Bugs

- Resolved premises `#wl-hdr-premise-count` does not populate until user navigates to premises tab, for consistency this should populate on page load
- Premise count badge `#wl-premise-count-badge` does not populate until after user navigates to premises tab, for consistency this should populate on page load
- Journal log shows dropdown values as saved in the database instead of what is presented to the user. E.g. for status, 2 is displayed when the user should see "In Progress"
- Linked Titles links titles only, it does not link any associated UPRNs along with it. 
- The save button for form data should be located in header bar next to the exit button, and only be visible for tabs it relates to (e.g. Form Data)

## Unresolved Issues

- Coverage & Map - 2 maps within the one page doesn't make sense. I want polygons to be added/edited via the map tab, title & stocklist linking and premise approvals/rejections to be managed via the premises tab. Then remove the Coverage tab.
- Map - The sidebar map layer groups are not ordered the same as other pages. This should be Entity layers -> Reference Layers -> Basemap Layers
- Map - Map buttons should be contained in a container so they are more visible to the user. (Refer to project for the create button examples.)
- Map - Users can add/remove polygons without any confirmation. Refer to projects and display a confirmation to the user for deletion.
- Map - ("Entity") Wayleave Layers are completely missing from the wayleave module. In projects these are, boundary, cables, etc. so users can disable them as needed. For wayleave these layers should be:
```
Wayleave boundaries
UPRNS from boundary intersection
UPRNS from direct add
UPRNS from stocklists
```

## New Features To Add

- As with badges for Coverage and Premises tabs, badges for Projects and Attachments tabs would also be benificial for the users.
