Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow adding explaining text to web interface pages #183

Closed
tillkamppeter opened this issue Sep 26, 2021 · 9 comments
Closed

Allow adding explaining text to web interface pages #183

tillkamppeter opened this issue Sep 26, 2021 · 9 comments
Assignees
Labels
enhancement New feature or request priority-medium
Milestone

Comments

@tillkamppeter
Copy link
Contributor

Now after having posted 4 CUPS-driver-retro-fitting Printer Applications in the Snap Store I see one, really missing feature for improving user-friendliness and ease-of-use of PAPPL-based Printer Applications:

Adding explaining texts to web interface pages.

Here I do not mean hard-coded texts coming from PAPPL, but texts supplied by the developers of the PAPPL-based Printer Applications.

Most important example is the "Add Printer" page: Here could be written which kind of printers the Printer Application generally supports (the HPLIP one for example most HP and Apollo printers, and also tell the user that if their printer appears more than once under the "Devices", which entry is recommended, for HPLIP for example that the HPLIP entries (using the HPLIP backend) allow for simultaneous printing and scanning and also could in some cases lead to higher print quality, whereas the standard backends allow for polling installable accessory configuration and option defaults from PostScript printers. There could also be hints at the "Drivers" list to help the user to choose the best driver entry for his printer (if "Auto" turns out to be unsatisfying for his particular printer).

Also hints on the "Media" and "Printing Defaults" pages telling that the actually available options and choices depend on the installable accessory configuration as set under "Device Settings" could be useful (PostScript, Ghostscript, and HPLIP Printer Applications).

Another possibility would be to add some introducing text on the main page of the web interface.

An example web interface page with explaining text (not from PAPPL) is the "Add PPD file" page of the PostScript Printer Application.

There should be the possibility to add a text for the page (at the top, after the title and before the first interactive widget), for each static widget of the page (on "Add Printer" for "Name", "Device", "Host/IP", and "Driver"), and for each group of dynamic widgets (on "Printing Defaults" for the vendor-specific options).

@tillkamppeter
Copy link
Contributor Author

Also for printer web interface pages ("Media", "Printing Defaults", ...) text addition should be possible individually per-print-queue, so that for example any hints about installable accessories only appear for printers where the driver actually supports managing installable accessories (for example in the retro-fitting Printer Applications the printers which have an "Installable Options" group in their PPD files).

@michaelrsweet michaelrsweet self-assigned this Sep 26, 2021
@michaelrsweet michaelrsweet added enhancement New feature or request priority-medium labels Sep 26, 2021
@michaelrsweet michaelrsweet added this to the v1.2 milestone Sep 26, 2021
@michaelrsweet
Copy link
Owner

Will include this in the localization work for 1.2

@michaelrsweet michaelrsweet modified the milestones: v1.2, Future Apr 19, 2022
@michaelrsweet
Copy link
Owner

Adding this sort of text/UI is going to be complicated - I want some more time to figure out the best way to integrate this and what to add.

@michaelrsweet
Copy link
Owner

@tillkamppeter OK, so looking at this I don't see extending things to allow annotation of every form control - that just isn't feasible to support since you can expect random HTML changes that would alter the naming or layout for each feature release.

Adding support for a per-page (based on the resource path) is doable, e.g.:

"/media" = "Some text to show at the top of all media pages.";
"/printername/media" = "Some text to show at the top of the media page for printername.";

Thoughts?

@tillkamppeter
Copy link
Contributor Author

Yes, introducing a possibility to add text for each page, as you suggest, would already be great, especially with assignment via resource path, as this also allows per-prnter variations, as for example to have different texts depending of whether there are installable accessories or not.

Per-widget would also even be possible, as each widget has a name, to make its value available when submitting the page:

"/printername/media:quality" = "High quality mainly for photos, not much enhancement for text"

This naturally requires that widget names are kept stable between PAPPL releases.

@michaelrsweet
Copy link
Owner

This naturally requires that widget names are kept stable between PAPPL releases.

... which isn't something I want to commit to since I want to be able to change the feature set and web UI between feature releases.

@michaelrsweet michaelrsweet modified the milestones: Future, v1.3 Oct 8, 2022
@michaelrsweet
Copy link
Owner

Will implement per-page text banners for 1.3.

@tillkamppeter
Copy link
Contributor Author

OK, let us go this way.

@michaelrsweet
Copy link
Owner

Changes completed:

[master dc8714c] Add support for per-page text banners/headers (Issue #183)

[master 4e4e039] Add support for default localization for printer pages (Issue #183)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-medium
Projects
None yet
Development

No branches or pull requests

2 participants