763 Commits

Author SHA1 Message Date
Adaline Simonian
23a3862ca0
test: introduce snapshot-based smoke tests
- Adds a new test suite with Docker-based smoke tests for all locales.
  Can be run using the ./smoketest.sh script.
- Replaces all calls to Math.random() with a new helper that returns 0.5
  in snapshot testing mode, ensuring deterministic snapshots.
- Similarly replaces all calls to new Date() and Date.now() with new
  helpers that return a fixed date in snapshot testing mode.
- Replaces checks against NODE_ENV with APP_ENV, to ensure that the
  bundles can be built with Nuxt for testing without losing code that
  would otherwise be stripped out by production optimizations.
- Adds a database init script that can be used to initialize the
  database with a single admin user and a long-lived JWT token for use
  in automation tests.
- Adds a JWT decoding/encoding CLI tool for debugging JWTs.

Note: Snapshots are not checked in, and must be generated manually. See
test/__snapshots__/.gitignore for more information.
2025-02-02 23:11:19 -08:00
Andrea Vos
79b5bf1c2d (bug)(subscription) promisify mailer – otherwise when sending subscriptions, emails are marked as sent even if there's been an error
in this case: "454 Throttling failure: Maximum sending rate exceeded."
2025-02-02 15:57:38 +01:00
Andrea Vos
61742743e1 (census)(pl) set up newsletter campaign 2025-01-31 13:30:05 +01:00
Valentyne Stigloher
adf85b28dd (ts) migrate <ServerTable> to composition API with typescript 2025-01-27 19:24:59 +01:00
Valentyne Stigloher
73245a844f (cards) process usernames with trailing dots (somehow some of them exist) correctly 2025-01-27 16:14:30 +01:00
Valentyne Stigloher
e1ac9eb363 (calendar) make _law and _zaimki invertible so that it is more easily readable in dark mode (_black-ribbon tbd) 2025-01-20 11:50:11 +01:00
Valentyne Stigloher
ea0c637001 (search) display icons instead of broken image for calendar events which have an icon 2025-01-20 11:24:56 +01:00
Andrea Vos
d3c49194b9 lint + miscommit 2025-01-19 20:23:00 +01:00
Andrea Vos
2990abe59e (pronunciation) finish narakeet implementation 2025-01-19 20:14:51 +01:00
Andrea Vos
6451131b8e Merge branch 'refs/heads/main' into naski 2025-01-19 19:23:06 +01:00
Andrea Vos
6dbd121186 Merge branch 'nynorsk' into 'main'
Publish Nynorsk

See merge request PronounsPage/PronounsPage!554
2025-01-19 17:08:35 +00:00
Andrea Vos
2a24e83ff2 Merge branch 'refs/heads/main' into naski 2025-01-19 16:24:36 +01:00
Andrea Vos
423cc9fb83 (calendar) fix bluesky bot uploading an empty stream 2025-01-19 15:34:54 +01:00
Andrea Vos
b0539286c7 fix CI 2025-01-18 15:03:11 +01:00
Andrea Vos
459c1629fb Merge branch 'nouns-nb-p' into 'main'
nouns nonbinary column and responsive design

See merge request PronounsPage/PronounsPage!541
2025-01-18 10:59:57 +00:00
Valentyne Stigloher
3a2d04285c (nouns) add nonbinary column to generated images 2025-01-17 13:36:14 +01:00
Valentyne Stigloher
9c861646de (nouns) add nonbinary column to dictionary 2025-01-17 13:36:14 +01:00
Benjamin
563a0c0420
Update Discord Linked Roles to take into account contributors 2025-01-16 19:53:32 -05:00
Adaline Simonian
f9b24efa15
chore: fix lint error 2025-01-16 14:26:58 -08:00
Adaline Simonian
e275e6e1ae
refactor: disable api routes for macrolanguages 2025-01-16 14:24:49 -08:00
Benjamin
bbfa210340 JS Modernization (@benshawmean) 2025-01-16 22:24:08 +00:00
Adaline Simonian
979aa097c7
feat: macrolanguage landing page for no locale
Auto-redirects:
- if the page requested is a user profile, and the user has one profile
  out of the multiple individual languages, to the one profile that was
  found
- otherwise based on user's accept-language header
- if all else fails, shows language selection landing page
2025-01-15 16:18:01 -08:00
Adaline Simonian
9aedcfb166
fix: distinguish better between sublanguages 2025-01-14 18:08:25 -08:00
Andrea Vos
96ecabe6cb (hbs)(pronunciation) PoC of pronunciation with narakeet 2025-01-15 00:03:54 +01:00
Adaline Simonian
9dff79140d
refactor: address review comments 2025-01-13 10:37:53 -08:00
Adaline Simonian
6827935244
Merge branch 'main' into complete-norwegian 2025-01-12 16:00:04 -08:00
Adaline Simonian
9de5bbdce4
feat: add nynorsk and complete/fix bokmål locale 2025-01-12 15:56:24 -08:00
Valentyne Stigloher
5b3bb04c6c (ts) migrate many components to composition API with typescript 2025-01-12 14:12:15 +01:00
Andrea Vos
ed73460849 fix cleanupImages - increase FRESH_CUTOFF 2025-01-03 17:31:23 +01:00
Andrea Vos
81f6fdf3c2 fix cleanupImages 2025-01-03 15:00:09 +01:00
Andrea Vos
0b11db32b6 fix cleanupImages 2025-01-03 14:42:30 +01:00
Andrea Vos
e20ad4bac8 (adit) cleanup audit log 2025-01-03 13:33:47 +01:00
Andrea Vos
ce833a1924 audit_log separation cleanup 2025-01-02 22:33:09 +01:00
Andrea Vos
25367f5af0 auditMigration – batch it up! 2025-01-02 21:31:14 +01:00
Valentyne Stigloher
9335a1bd48 Merge branch 'admin-blog-preview' into 'main'
admin blog preview

See merge request PronounsPage/PronounsPage!548
2025-01-02 13:27:45 +00:00
Andrea Vos
a3c2dbb0a7 oh linter… 2025-01-02 13:06:08 +01:00
Andrea Vos
23fc8e3bd9 CR improvements 2025-01-02 12:59:19 +01:00
Valentyne Stigloher
64735cac1b (admin)(blog) very simple post editor 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
5c28fc7701 (ts) migrate /api/admin/moderation from express to h3 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
9280d797ba (ts) migrate pages/admin/index.vue to composition API with typescript 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
4367e0f054 (ts) migrate /api/admin/all-locales from express to h3 2025-01-01 23:52:44 +01:00
Valentyne Stigloher
2369ce1057 (ts) migrate /api/admin/stats and /api/admin/stats-public from express to h3, improving their types 2025-01-01 23:52:44 +01:00
Andrea Vos
c44b7fed3e typechecks 2024-12-31 19:59:56 +01:00
Andrea Vos
9bc8230d82 typechecks 2024-12-31 19:53:58 +01:00
Andrea Vos
7c49f14368 Merge branch 'refs/heads/main' into split-audit
# Conflicts:
#	pnpm-lock.yaml
2024-12-31 19:45:30 +01:00
Andrea Vos
af3ac179b3 (lint) 2024-12-31 19:36:03 +01:00
Andrea Vos
93b29abb30 (lint) 2024-12-31 19:26:36 +01:00
Andrea Vos
02faf1b4ec audit log migration – extra debug info 2024-12-31 17:20:17 +01:00
Andrea Vos
6d8dbbb617 fix types 2024-12-31 11:35:12 +01:00
Andrea Vos
1055e3b5bd split audit log into a separate database and compress payload 2024-12-31 11:17:37 +01:00