Parent: #40 (Template server variables and presets)
Generate HTML structure for servers with template variables ({variable} placeholders).
Scope
Template detection:
- Check if server URL contains
{variable} placeholders via server.getVariables()
- Extract variable metadata: name, default value, enum values, description
HTML structure:
- Template server displayed as URL pattern heading (e.g.,
https://api.{environment}.example.com)
- Nested indented preset radio buttons below (not flat like static servers)
- Default preset auto-generated when all variables have defaults (labeled with resolved URL)
- Variable metadata stored in data attributes for JS to consume
Test fixture:
- Create
core/src/test/resources/template-servers.yaml with template servers
- Add test in
BrowserTest.java to verify HTML structure
Out of scope
- JavaScript template resolution (separate issue)
- Preset CRUD forms (separate issue)
- LocalStorage persistence (separate issue)
This issue delivers the static HTML foundation. JS interactivity follows in sub-issues.
Parent: #40 (Template server variables and presets)
Generate HTML structure for servers with template variables (
{variable}placeholders).Scope
Template detection:
{variable}placeholders viaserver.getVariables()HTML structure:
https://api.{environment}.example.com)Test fixture:
core/src/test/resources/template-servers.yamlwith template serversBrowserTest.javato verify HTML structureOut of scope
This issue delivers the static HTML foundation. JS interactivity follows in sub-issues.