Files
FreedomBox/freedombox/modules
Sunil Mohan Adapa d4340dc903 wireguard: Simplify UI for manually adding a client
- Move server information (such as public key) to 'Add Client' page. It is only
needed there. 'Add Client Automatically' shows this information anyway and also
fills the configuration provided by QR code and file.

- Rename 'Allowed Client' to simply 'Client' and 'Peer' to 'Client' for
consistency and simplicity.

- Auto-generate a key pair for manual client addition also. The user may choose
to provide their own public like before.

- Provide description to what "As a Server" and "As a Client" mean.

- Provide server consistent information everywhere in a tabular format. This is
drawn from 'Add Client Automatically' page after improvements. The objective is
to make it easy for user to use WireGuard mobile app. So, use terminology from
there.

- Provide 'FreedomBox Server' IP addresses everywhere.

- Change how multiple endpoints are shown in the table.

Tests:

- WireGuard page has following changes:

  - Server information is not shown.

  - Description is shown in both the sections.

  - 'Add Allowed Client' button changed to 'Add Client'.

- Show client page has following changes:

  - Information is reorganized into two sections. All information present and
  correct.

  - Headers are styled differently.

  - 'FreedomBox Server' row is shown.

  - Table is divided into two separate sections.

- Add client automatically page has following changes:

  - FreedomBox Server IPs are shown.

  - Table is divided into two separate sections.

  - Headers are styled differently.

- Add Client page has following changes:

  - New description

  - Server information table is shown just like in 'Add Client Automatically'
  page. Extra information is shown for public/private keys and endpoints.

  - Public key and private keys are auto-generated.

  - Public key field is pre-populated.

  - Submitting the form creates the client with provided public key.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-11-27 07:21:01 -05:00
..