Commit Graph

575 Commits

Author SHA1 Message Date
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
Drew DeVault 2fb6bc8d13 Split settings into separate blueprint 2019-11-04 16:15:37 -05:00
Cédric Bonhomme 8983bccf90 Fix regular expression: Repository name can not start with .-_ 2019-11-04 10:24:41 -05:00
Cédric Bonhomme 732329c04e Aligning the naming constraints with git.sr.ht: - repository name must be at least one character, not two; - fist character can be uppercase (but not a numeric); - in general accepts only alphanumeric characters or ._-
~sircmpwn/todo.sr.ht#193
2019-11-04 10:24:25 -05:00
Drew DeVault 6ce73b2489 Fix editing of labels with / in the name 2019-11-01 11:15:31 -04:00
Ivan Habunek 7d018e76e1 Implement editing labels
as requested in https://todo.sr.ht/~sircmpwn/todo.sr.ht/159
2019-10-26 11:05:43 -04:00
Ivan Habunek 53cb5b596c Fix recent users function
A bug was introduced when modifying the functions to work with
participants in b4c92a39. A new field was added to the query, but the
offset was not modified when reading the username.
2019-10-26 10:56:25 -04:00
Ivan Habunek 62b8fe82da Set ticket title and description with URL params
Setting ?title=foo&description=bar to the tracker page will
automatically populate the title and description inputs. This can be
useful for crafting error-reporting links.
2019-10-26 10:56:22 -04:00