Edgewall Software

Ticket #899 (new enhancement)

Opened 4 years ago

Last modified 3 months ago

[PATCH] Allow hints for custom fields in tickets

Reported by: pkou <pkou at ua.fm> Owned by: rblank
Priority: normal Milestone: 0.13
Component: ticket system Version: devel
Severity: normal Keywords: patch
Cc:

Description

Custom fields often require additional explanations for developers. It is possible to resolve this problem by adding popups that will appear when user points mouse over a custom field.

Attached patch provides a solution for this problem:

  • In trac.ini, new property field.hint can be used;
  • In generated HTML, hints are implemented using HTML title attribute.

Attachments

patch-customtitle-r1036.diff (3.7 KB) - added by pkou <pkou at ua.fm> 4 years ago.
Patch for the changes
899-custom-field-hints-r7495.patch (4.1 KB) - added by rblank 3 months ago.
Patch against trunk adding optional hints to custom ticket fields
899-custom-field-hints-r7495.2.patch (6.7 KB) - added by rblank 3 months ago.
Complete patch including unit tests

Change History

Changed 4 years ago by pkou <pkou at ua.fm>

Patch for the changes

Changed 4 years ago by pkou <pkou at ua.fm>

Note that TracTicketsCustom needs to be edited when this ticket is closed.

Changed 2 years ago by sid

See also #925 and #1748.

Changed 21 months ago by cboos

  • milestone set to 0.11

Feel free to implement earlier...

Changed 21 months ago by cboos

  • milestone changed from 0.11 to 0.12

0.12 I meant (i.e. not necessarily for 0.11, but why not if done part of the workflow changes...)

Changed 3 months ago by rblank

Patch against trunk adding optional hints to custom ticket fields

Changed 3 months ago by rblank

  • keywords patch added
  • owner changed from jonas to rblank
  • milestone changed from 0.13 to 0.12

The patch above adds the .hint option to custom ticket fields, and if present, adds a title attribute to the control corresponding to the field. Radio buttons are grouped in a <span> to set the title for all at once.

Changed 3 months ago by rblank

I forgot to update the unit tests. Here's the complete patch.

Changed 3 months ago by rblank

Complete patch including unit tests

Changed 3 months ago by osimons

I like the idea of hints - they are useful. However, I'm very unsure about adding features for custom fields until we have an idea about what the future holds for fields in general (0.13+ seems to have field refactoring on the agenda):

  • We would then have hints for custom fields, but not for regular fields.
  • 0.12 translates labels for regular fields, but not custom fields.
  • Hints (as all help) should be translatable in some way...

Changed 3 months ago by rblank

  • milestone changed from 0.12 to 0.13

Re-scheduling for 0.13, as this could be in the way of i18n.

Add/Change #899 ([PATCH] Allow hints for custom fields in tickets)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from rblank. Next status will be 'new'
The owner will change from rblank to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.