Commit Graph

153 Commits

Author SHA1 Message Date
Klaas van Schelven
a5bc27032a Visualize trimmed data ('x items trimmed')
Fix #18

Similar to [the request for the same feature in Sentry](https://github.com/getsentry/sentry/issues/68426)

SDK-side complaints:

* https://github.com/getsentry/sentry-python/issues/377
* https://github.com/getsentry/sentry-python/issues/805
* https://github.com/getsentry/sentry-python/issues/1041
* https://github.com/getsentry/sentry-python/issues/1105
* https://github.com/getsentry/sentry-python/issues/2121
* https://github.com/getsentry/sentry-python/issues/2682
* https://github.com/getsentry/sentry-python/issues/3209
* https://github.com/getsentry/sentry-python/issues/3634
* https://github.com/getsentry/sentry-python/issues/3740
2024-12-18 17:05:26 +01:00
Klaas van Schelven
5810c1c580 choose_lexer_for_pattern: choose DjangoLexer explicitly when platform is Python
Other than fixing syntax higlighting for my favorite language, this has
the advantage of actually being a _deterministic_ solution (the previous
solution would do first-match) which makes the extra complexity worth-while.
2024-12-16 21:32:21 +01:00
Klaas van Schelven
b961e6a943 Attempt at better guess_lexer_for_filename
the idea: guess on filename first, and on code second.
prompted by: getting a Django Template Parser to work.

however, this won't fly, because lexer.analyse_text is basically useless
(the parts that are implemented __at all__ are often based on some initial
bytes in the file, which is useless in our context of code snippets)
2024-12-16 13:26:44 +01:00
Klaas van Schelven
76bb6ace2b Typo in comment 2024-12-16 13:23:31 +01:00
Klaas van Schelven
2f62c02c92 Deal with nones-in-arrays in pre/post-context
Fix #15
2024-12-09 09:56:30 +01:00
Klaas van Schelven
28314a2683 Language icons: add to SDK page 2024-12-03 09:14:29 +01:00
Klaas van Schelven
3f432727d9 Warn about lack of EMAIL_BACKEND in the interface 2024-11-29 15:59:14 +01:00
Klaas van Schelven
944f9d9a84 Add title tags to (parent elements of) svg icons 2024-11-29 08:25:11 +01:00
Klaas van Schelven
bbd444dca1 SDK: platform-specific notes for PHP, JS 2024-11-20 12:09:45 +01:00
Klaas van Schelven
71d6e89c93 Show warning message when there are many/stale snappea tasks
As discussed in #11, there are scenarios (e.g. misconfiguration) where snappea
does not pick up the tasks. Events not showing up in Bugsink, w/o further
indication why that may be, leaves people confused. Better to warn explicitly
in that case.
2024-11-15 14:51:41 +01:00
Klaas van Schelven
47bf207db5 Nudge non-paying users to paid (yellow banner, site-title) 2024-11-11 14:05:02 +01:00
Klaas van Schelven
b94c9f2a27 Stacktrace var widths: better for small screens 2024-10-21 15:00:39 +02:00
Klaas van Schelven
1741c0a510 'Issue Key Info'; show on xl, not lg
prompted by the LHS going awry, esp. the part where the 'Show all' etc buttons
git commit -m "'Issue Key Info'; show on xl, not lg. (while recording a video
at 1080px width)
2024-10-21 14:58:07 +02:00
Klaas van Schelven
21b6ab2f48 Upgrade tailwind deps
As outlined in
https://github.com/timonweb/django-tailwind/issues/209
2024-10-09 08:53:05 +02:00
Klaas van Schelven
8c09c68ecd Users: some interface to edit/view them 2024-10-02 15:41:42 +02:00
Klaas van Schelven
6f0493f685 Resolved issues: italic & checkbox
in the lists; this is easier to read than a strikethrough.
I experimented with text-decoration-style and text-decoration-style but that
didn't make it better.
Our big brother doesn't bother to reveal the resolvedness of issues in lists
_at all_, btw. Surprising!
2024-09-27 12:16:25 +02:00
Klaas van Schelven
f450bf6c29 Add 'alt' to img 2024-09-26 15:25:18 +02:00
Klaas van Schelven
f90ce561a1 pygmentize: deal with None as a value for pre_context/post_context
according to spec, this is possible (though I did not yet observe it in the data).
the need for this was exposed when introducing fastjsonschema, which (by default)
fills in all keys with their default values (None for pre_context/post_context)
2024-09-19 13:44:36 +02:00
Klaas van Schelven
18427bb47f Fix 'pygmentize' tests for recent platform-addition 2024-09-17 23:08:55 +02:00
Klaas van Schelven
890b627553 Use 'platform' as a guessing fallback when filename fails 2024-09-17 21:23:27 +02:00
Klaas van Schelven
fd278a8a34 filename-guessing: implement (in an efficient manner)
also deals with the case of not being able to find a good matcher (i.e result is None)
2024-09-17 13:04:00 +02:00
Klaas van Schelven
3d66a60b41 Hide away links to admin interface 2024-09-13 09:12:28 +02:00
Klaas van Schelven
e340fab784 SVG dropdown icons: properly grey-out when disabled
this went wrong in 0df5f891c4, when we turned these into SVGs
2024-09-12 13:34:56 +02:00
Klaas van Schelven
7b5aaca3ac Preferences form 2024-09-12 12:41:40 +02:00
Klaas van Schelven
129a8db421 Fix various flake8 errors 2024-08-21 09:31:05 +02:00
Klaas van Schelven
6560767764 Tailwind: Explicitly point to python file containing class 2024-08-19 22:12:20 +02:00
Klaas van Schelven
63cfbb2acd Hide version info in the HTML source
so that we at least can quickly inspect it
2024-07-18 14:59:01 +02:00
Klaas van Schelven
2d7a261515 Project-settings buttons at bottom of issue-list 2024-06-17 12:37:24 +02:00
Klaas van Schelven
e82edb7817 Current project's issues in the menu 2024-06-17 10:45:19 +02:00
Klaas van Schelven
33f2d55eab SINGLE_TEAM & SINGLE_USER implemented
in-template only; since we make source available it's a bit silly to put all kinds
of 'security' in place that could easily be edited out
2024-06-10 15:41:54 +02:00
Klaas van Schelven
e9ae001665 Tiny fix with Logout button margins 2024-06-10 14:27:12 +02:00
Klaas van Schelven
f614d0c26a full width form fields 'everywhere'
also distinguish between labeled/placeholder style
2024-06-10 14:24:55 +02:00
Klaas van Schelven
d71916940a Factor out 'tailwind_formfield' tag 2024-06-10 10:00:06 +02:00
Klaas van Schelven
b04feae788 SDK setup (WIP) 2024-06-07 17:24:25 +02:00
Klaas van Schelven
784f0584f0 Top menu friendlier look (rounded) 2024-06-07 11:03:20 +02:00
Klaas van Schelven
de8bd65a3a WIP teams & project-management (6)
not extensively tested, but it starts to feel quite complete 'for now'
2024-06-07 10:52:25 +02:00
Klaas van Schelven
004b586e2d The most basic of 'onboarding', as it pertains to teams 2024-06-06 10:54:56 +02:00
Klaas van Schelven
0e4f13838e WIP teams & project-management (4) 2024-06-05 22:36:05 +02:00
Klaas van Schelven
7dddf45a04 WIP teams & project-management (2) 2024-06-04 11:19:19 +02:00
Klaas van Schelven
9d9cac3e9d WIP teams & project-management 2024-06-03 22:30:10 +02:00
Klaas van Schelven
222a6906dd Remove dead (template) code 2024-06-03 09:14:03 +02:00
Klaas van Schelven
b99929e588 Log out using POST
Log out via GET was deprecated in Django 4.1
https://docs.djangoproject.com/en/4.1/releases/4.1/#log-out-via-get
2024-05-30 21:35:30 +02:00
Klaas van Schelven
cc62056dce Links between signin/login pages 2024-05-29 16:25:12 +02:00
Klaas van Schelven
123bc41b93 User registration 2024-05-29 15:43:00 +02:00
Klaas van Schelven
9b6409f0cd Non-ugly login page 2024-05-27 15:10:01 +02:00
Klaas van Schelven
082986f8ad Cornless: an interruptable server
does not work for sqlite though, because that c-code does not
regularly check whether signal handling is needed.
2024-05-27 13:54:01 +02:00
Klaas van Schelven
9fcbfb9033 Add templates for 404, 500 2024-05-22 09:37:51 +02:00
Klaas van Schelven
f72b2522b8 Use tailwind_preload_css
> The tag generates a preload directive for your stylesheet, which improves
> loading performance in production. Place it above the {% tailwind_css %} tag:

See e.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload

For a brief moment I thought that this was malfunctioning, because it is missing
the ?v=... part, but that part is DEBUG-only, so we don't care about it for real
use-cases
2024-05-13 14:33:25 +02:00
Klaas van Schelven
1a264675c2 'python manage.py tailwind build' as a pre-commit hook 2024-05-13 14:25:53 +02:00
Klaas van Schelven
a7c02a24e2 Show 'seen in releases' in the UI 2024-04-16 13:31:08 +02:00