Skip to content

Preset profiles in GUI - #557

Open
tgreenx wants to merge 3 commits into
zonemaster:developfrom
tgreenx:preset-profiles-faq
Open

tgreenx wants to merge 3 commits into
zonemaster:developfrom
tgreenx:preset-profiles-faq

Conversation

@tgreenx

@tgreenx tgreenx commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

This PR adds an FAQ item related to profiles for all languages, as well as making the "Profile" header in the General section of the Options an hyperlink to that new FAQ item.

A more elegant solution could be provided instead in the future, such as e.g. a clickable question mark icon next to it instead of an hyperlink.

Context

Documentation: zonemaster/zonemaster#1538
First preset profile definition: zonemaster/zonemaster-engine#1552
Preset profile configuration in Backend: zonemaster/zonemaster-backend#1261

Changes

  • Add hyperlinks support for src/lib/components/Select/Select.svelte objects via the Svelte Snippet class
  • Make Profile header an hyperlink in src/lib/components/DomainTest/General.svelte
  • Add src/content/faq/*/profiles.md for all languages
  • Update messages/*.json for all languages

How to test this PR

  • Define one or several custom/preset profiles and make them available from the Backend (e.g. see related PRs in the Context section of this PR)
  • Start the GUI
  • Verify that the configured profiles appear in the dropdown list located in the Options of the domain test form.
  • Verify that the Options header is clickable and points to the correct FAQ item in the selected language.

@tgreenx tgreenx added this to the v2026.1.2 milestone Sep 16, 2026
@tgreenx tgreenx added V-Patch Versioning: The change gives an update of patch in version. RC-Features Release category: Features. labels Sep 16, 2026
@tgreenx

tgreenx commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@rhedman @tbleckert Hello, could you have a look at this PR? Especially the code in src/lib/components/Select/Select.svelte, which should remain backward compatible with other objects of this class with just the label property. Or if you have a more elegant solution (e.g. clickable question mark icon next to it instead of an hyperlink?), that would be welcome! Thanks.

Comment on lines +6 to +8
A profile in Zonemaster is a configuration file that defines a specific set of parameters and options used by the tool.
Specifically, there are custom "preset" profiles that run a subset of all test cases, tailored to a specific use case.
For more information on what each available preset profile does, see the [preset profiles](https://doc.zonemaster.net/latest/configuration/profiles.html#preset-profiles) documentation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the text should be more concrete and list the available profiles and give some short information on them. I think a typical user wants to have quick information and not take several steps to find out what is what.

@rhedman

rhedman commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

@rhedman @tbleckert Hello, could you have a look at this PR? Especially the code in src/lib/components/Select/Select.svelte, which should remain backward compatible with other objects of this class with just the label property. Or if you have a more elegant solution (e.g. clickable question mark icon next to it instead of an hyperlink?), that would be welcome! Thanks.

@tgreenx I think this solution should be fine.

@tbleckert

Copy link
Copy Markdown
Contributor

@rhedman @tbleckert Hello, could you have a look at this PR? Especially the code in src/lib/components/Select/Select.svelte, which should remain backward compatible with other objects of this class with just the label property. Or if you have a more elegant solution (e.g. clickable question mark icon next to it instead of an hyperlink?), that would be welcome! Thanks.

@tgreenx I think this solution should be fine.

Looks good to me as well.

@matsduf matsduf modified the milestones: v2026.1.2, v2026.2 Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RC-Features Release category: Features. V-Patch Versioning: The change gives an update of patch in version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants