Ignas Kiela
03f8983945
Remove TicketSeen
...
Has a fair amount of complexity for not much gain.
2021-12-20 10:15:17 +01:00
Drew DeVault
8795dcb33b
tickets: triage access is required for labelling
2021-01-11 09:06:12 -05:00
Drew DeVault
2687448c09
Use last event when editing a comment, not only
2020-09-03 11:09:54 -04:00
наб
bd57379c99
Correctly scroll down to the new comment after posting
...
I was redirected to
https://todo.sr.ht/~sircmpwn/lists.sr.ht/67#comment-13819
after posting, whereas the correct URL is
https://todo.sr.ht/~sircmpwn/lists.sr.ht/67#event-47645
2020-08-28 09:00:58 -04:00
наб
f368e772f3
Don't create useless transitions between identical states and clean previous ones with migration
...
A FIXED -> FIXED transition happens, e.g., here:
https://todo.sr.ht/~sircmpwn/meta.sr.ht/46#event-47525
because I fucked up a link and listed this one twice,
and Drew opened each link first, then closed them,
hence marking the ticket as FIXED twice
With this patch, we just do nothing if there's nothing to do
2020-08-26 09:34:30 -04:00
Drew DeVault
deb31fb00e
Implement ticket editing in the UI
2020-08-25 15:47:58 -04:00
наб
caaab0c2c1
Show subscription mailto: links to anonymous users
...
As suggested in <C4DCAJR6LQD2.GBNNZ1ME6L4N@homura>
2020-07-30 08:52:18 -04:00
наб
4270950afe
Add Tracker.ref() à la Ticket.ref(), replacing manual construxions
2020-07-22 13:19:56 -04:00
Ivan Habunek
6ac582e3b6
Add preview when editing tickets
2020-05-22 15:47:23 -04:00
Drew DeVault
5ca816a2ae
Fix markup cache invalidation
2020-03-31 11:51:24 -04:00
Ivan Habunek
45fb4cf3e4
Implement preview for comments
...
Adds a "Preview" button alongside "Comment". Clicking this button
renders the comment text without actually creating the comment.
https://todo.sr.ht/~sircmpwn/todo.sr.ht/195
2020-01-07 10:08:56 -05:00
Drew DeVault
856ad5b04e
Updates for single-sign-on support
2019-11-30 10:17:42 -05:00
Drew DeVault
b46f03ea64
Fix enable/disable notifications
2019-08-23 08:55:08 +09:00
Drew DeVault
f63f98e660
Add subject to email reply address for tickets
2019-08-22 13:41:02 +09:00
Drew DeVault
b4c92a39db
Generalize users into participants
2019-08-22 11:05:25 +09:00
Ivan Habunek
e7aab9cbad
Extract getting recent users
2019-08-12 10:29:19 +09:00
Drew DeVault
274d050572
Finalize webhooks
2019-06-11 11:50:00 -04:00
Drew DeVault
2368339664
Rig up ticket webhooks
2019-06-10 15:46:32 -04:00
Drew DeVault
d6986aed72
Add simple ticket API
2019-04-30 16:17:43 -04:00
Drew DeVault
d350f56408
Invalidate markup cache on ticket edit
...
Fixes #168
2019-04-25 15:36:42 -04:00
Ivan Habunek
aa53d787d3
Fix comment length validation
...
The error message says comments should be between 3 and 16384
characters, so make length comparison inclusive to make it so.
2019-01-06 21:37:29 -05:00
Ivan Habunek
00d024d01a
Always assign current user on "Assign myself"
...
If a username was entered in the assign box and "Assign myself" clicked,
the code would look up the username instead of assigning current user.
The button would only work if no username was entered.
2019-01-06 21:37:27 -05:00
Drew DeVault
a2633cd3a7
Explicitly order ticket events for display
2019-01-03 17:56:54 -05:00
Drew DeVault
bad45123cf
Add assign/unassign events to ticket event log
2018-12-13 21:44:15 -05:00
Ivan Habunek
d0654f78e5
Fix missing access in ticket_unassign
2018-12-03 18:07:32 -05:00
Ivan Habunek
c8bf4a70ee
Pre-populate the assignment data list
...
To provide autocomplete when javascript is disabled.
2018-12-03 18:07:30 -05:00
Ivan Habunek
bdf70d5274
Require triage access for assignment
2018-12-03 18:07:29 -05:00
Ivan Habunek
3f955def1a
Implement search-as-you-type for assignees
2018-12-03 18:07:14 -05:00
Drew DeVault
da915d2bf6
Polish ticket assignees
2018-11-30 08:25:32 -05:00
Ivan Habunek
fef67fb1b3
Add views for assigning and unassigning users
2018-11-30 08:04:14 -05:00
Ivan Habunek
bb002ed319
Extract function for compiling ticket context
...
Solves the issue that required context data is not provided when form
validation fails, e.g. when entering a comment or adding a label.
2018-11-27 08:08:23 -05:00
Ivan Habunek
7bdd29ebae
Simplify ticket_GET view
...
is_subscribed renamed to ticket_sub to be in line with existing
tracker_sub.
2018-11-27 08:08:21 -05:00
Ivan Habunek
2376114ee8
Extract mark_seen logic
2018-11-27 08:08:19 -05:00
Ivan Habunek
dc0de33664
Make use of filters to make code more readable
2018-11-20 08:12:23 -05:00
Drew DeVault
f1e23de64f
Show full ticket history on the ticket details
2018-11-10 08:16:39 -05:00
Ivan Habunek
47cd6d82e0
Refactor commenting logic
2018-11-01 08:04:26 -04:00
Ivan Habunek
c9b33b7627
Extract commenting logic from blueprints
...
Only refactored parts required to separate the view from logic code.
2018-11-01 08:03:34 -04:00
Ivan Habunek
b8e3b947b2
Don't cause http 500 if no label is chosen
2018-10-25 07:59:03 -04:00
Ivan Habunek
fc8a1acacd
Add events for labels, show in events list
2018-10-24 20:11:49 -04:00
Ivan Habunek
d46dd6094f
Improve ORM relationships to and from Labels
...
* rename all backrefs to TicketLabel to 'ticket_labels'
* add Ticket.labels relationship through TicketLabel secondary
* add Label.tickets relationship through TicketLabel secondary
This avoids confusion as accessing 'ticket_labels' property will return
TicketLabel objects, and accessing 'labels' will return Label objects.
Also makes the code less verbose.
2018-10-24 20:09:08 -04:00
Drew DeVault
0b87f69646
Style improvements to labels
...
Also fixes a bug with setting labels on tickets
2018-10-16 21:33:05 -04:00
Ivan Habunek
9d66081d9a
Implement unlinking labels from issues
2018-10-16 21:10:42 -04:00
Ivan Habunek
aba4f78345
Only show labels which haven't been linked yet
...
...in the dropbox for adding new labels to a ticket.
2018-10-16 21:10:41 -04:00
Ivan Habunek
5730d360aa
Implement linking tickets to labels
2018-10-16 21:10:41 -04:00
Drew DeVault
dae0d44881
Improve From: in emails from todo.sr.ht
2018-09-30 12:41:54 -04:00
Drew DeVault
f6b0b1bd03
notify_from: fall back to smtp_from
2018-09-17 22:09:00 -04:00
Drew DeVault
010005e5b7
Change From for todo.sr.ht emails
2018-09-17 22:08:18 -04:00
Drew DeVault
4f4c0e0a79
Fix 500 errors on viewing tickets logged out
2018-07-14 15:57:12 -04:00
Drew DeVault
2c6033c3f1
Add ticket subscription management
2018-07-14 15:13:52 -04:00
Drew DeVault
c565373f49
Switch to standard auth
2018-07-11 07:58:41 -04:00