[os-caddy] Feature Request: Add manual drag-and-drop reordering to GUI tables

Open
#5,896 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
frontend

Research direction

Start by locating the os-caddy GUI table definitions for Domains, Subdomains, and Handlers, then read how OPNsense Firewall Rules persist manual row order. The request is done when users can drag rows to reorder each table and that order remains visible after saving and reopening the GUI.

Written by the indexing model from the issue text.

Description

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
As my list of reverse proxy entries grows, the GUI tables (Domains, Subdomains, Handlers) become visually disorganized because they default to chronological creation order.

I saw that alphabetical sorting was implemented in issue #3914, but this unfortunately doesn't solve the issue for users with wildcard certificates. Because wildcards begin with a special character (e.g., *.domain.com), standard A-Z sorting completely separates the wildcard domain from its root domain (domain.com) in the list. Without a way to put these entries together, I get lost in my list.

Describe the solution you'd like
I would like the ability to manually drag and drop rows to rearrange their order in the GUI (similar to how OPNsense Firewall Rules can be manually reordered). This would allow users to perfectly group root domains and wildcard domains together, regardless of their naming conventions or when they were created.

Describe alternatives you've considered

  1. Alphabetical Sorting: As mentioned, this fails to group domain.com and *.domain.com together due to the asterisk.
  2. The "Clone & Delete" Trick: This doesn't work if there are already handlers created. The GUI will stop you from doing it.
Dominant language
PHP
Stars
1.2k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opnsense/plugins

All issues in opnsense/plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.