Commit Graph

582 Commits

Author SHA1 Message Date
Drew DeVault 94c954f75e Alpine: upgrade to 3.12 2020-06-15 12:44:22 -06:00
Drew DeVault a61e9e73a2 access: fix code path which returns none 2020-06-10 19:20:15 -04:00
Drew DeVault a72c3378f6 access: accept User type in get_tracker 2020-06-08 13:57:07 -04:00
Benjamin Lowry 095e199d3e redirect to correct page when creating & configuring tracker
Use canonical_name to redirect to the tracker page with
a tilde before the username.

Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
2020-06-08 13:42:39 -04:00
Benjamin Lowry 697b7ae0bf get_tracker: return None if tilde is ommitted
This makes the behavior consistent with other sr.ht services

Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
2020-06-08 13:42:38 -04:00
Gabriel Augendre 6599be5371 Notify sender for tickets created by email.
Fix ticket ~sircmpwn/todo.sr.ht/180
2020-06-08 13:42:37 -04:00
René Wagner fcf5cf218d fixes ~sircmpwn/todo.sr.ht#216: allow preview for comments for all tickets a user is allowed to comment 2020-05-25 10:16:07 -04:00
Ivan Habunek 6ac582e3b6 Add preview when editing tickets 2020-05-22 15:47:23 -04:00
Ivan Habunek 5a123a5872 Add preview when creating tickets 2020-05-22 15:47:23 -04:00
Drew DeVault 4fc244d3ea tracker: allow 2 character labels 2020-05-20 14:35:48 -04:00
Eli Schwartz 0f87ec7453 setup.py: use importlib.resources from python 3.7 to find core.sr.ht Makefile
importlib.resources will guarantee to find any importable module, and
check that the resource ('Makefile') can be found within it.

This lets us get rid of the current getsitepackages() hack and
environment variable fallback, which is both verbose and badly handles
some edge cases when installing modules, and instead use the recommended
way to find data files shipped with a python module.
2020-05-11 09:44:26 -04:00
Drew DeVault 5dbc2a862d API: set default ticket description to empty string 2020-05-05 11:53:21 -04:00
Drew DeVault 812fdafd40 API: reuse tracker deletion hack from web UI 2020-05-05 11:44:51 -04:00
Drew DeVault 861b1dbc6c API: don't require description for new tickets
This matches the behavior of the web UI.
2020-05-05 11:30:57 -04:00
Drew DeVault 4db7a329a2 api: include ticket subject in short form 2020-04-24 11:10:34 -04:00
Matt Singletary ff14d6502f Add label to search box
Use sr-only to not mess with (visible) design
2020-04-24 11:10:05 -04:00
Drew DeVault 0a30060cb4 todosrht-lmtp: alias !resolved as !resolve 2020-04-05 09:50:10 -04:00
Drew DeVault f1162e7477 Add tracker ID to API response 2020-04-02 09:18:06 -04:00
Drew DeVault 5ca816a2ae Fix markup cache invalidation 2020-03-31 11:51:24 -04:00
Drew DeVault c6060b6707 Incorporate markdown version in cache key 2020-03-30 11:04:44 -04:00
Drew DeVault 5f745f7705 Correct layout of header nav 2020-03-30 10:15:39 -04:00
Drew DeVault fe5e2d48ac todosrht-initdb: import webhook types 2020-03-28 16:34:46 -04:00
Drew DeVault fcc0ae031b Add todosrht-initdb 2020-03-26 09:05:34 -04:00
Drew DeVault dd416c6a59 Responsiveness improvements 2020-03-10 11:07:56 -04:00
Drew DeVault 6a920745a8 Update permissions for todo.sr.ht views
Similar to the recent lists.sr.ht fix.
2020-03-02 14:41:10 -05:00
Drew DeVault 6fb8715938 API: fix invalid reference to TicketStatus.open
The appropriate field is TicketStatus.reported
2020-02-15 14:34:45 -05:00
Ivan Habunek d761b6551e Test search logic 2020-02-11 11:58:18 -05:00
Ivan Habunek 7f0ba0bcb0 Refactor search to work with new core search code
Implements inverse searches using !, adds status:any, and some
optimizations.
2020-02-11 11:58:17 -05:00
Ivan Habunek e885f90876 Handle search errors 2020-02-11 11:58:16 -05:00
Ivan Habunek 7f9f1d0f66 Fix ParticipantFactory 2020-02-11 11:58:14 -05:00
Drew DeVault ae41a24ad2 Remove extraneous spaces from links 2020-01-22 18:29:13 -05:00
Drew DeVault 5c6e99aedb Improve layout of ticket edit page 2020-01-22 18:20:09 -05:00
Drew DeVault 5107537673 API: return early if label is not found
Otherwise we get a nil deference later on
2020-01-14 20:55:49 -05:00
Drew DeVault fe08cd4447 Implement ticket import 2020-01-09 12:19:44 -05: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 d894df9467 Upgrade to Alpine 3.11 2019-12-22 13:35:20 -05:00
Drew DeVault de9476716e Improve config.example.ini 2019-12-19 10:58:54 -05:00
Thorben Günther cec71372c0 Read redis host from cfg. 2019-12-19 10:43:38 -05:00
Drew DeVault 15ea80ab9b Autofocus ticket title if another 2019-12-11 08:43:44 -05:00
Drew DeVault 856ad5b04e Updates for single-sign-on support 2019-11-30 10:17:42 -05:00
Drew DeVault c443228630 Move autofocus on tracker page to search 2019-11-19 18:27:23 -05:00
Drew DeVault c490107f88 s/overflow-x: scroll/overflow-x: auto/ 2019-11-17 15:13:37 -05:00
Drew DeVault 25df3204ea Use overflow-x: scroll for ticket description 2019-11-17 14:19:20 -05:00
Drew DeVault 08c832449d api/__init__.py: import abort from flask 2019-11-16 19:40:59 -05:00
Drew DeVault 2bdd7ad21c Fix uppercase tracker names 2019-11-06 14:04:21 -05:00
Drew DeVault d015cff999 Fix routing to details_GET from create 2019-11-06 11:14:53 -05:00
Drew DeVault 6fc1173079 Clarify docs for signed data exports 2019-11-04 17:15:27 -05:00
Drew DeVault f22c84e254 Sign parts of the data export for trackers 2019-11-04 17:13:44 -05:00
Drew DeVault 51fa778624 Specify mimetype for data export 2019-11-04 16:42:17 -05:00
Drew DeVault e8fc507ea1 Implement tracker data export 2019-11-04 16:31:38 -05:00