Commit graph

111 commits

Author SHA1 Message Date
6b6f02d92d quality: web debt batch (tests runner, FireContainer, rate-limit, maps, i18n)
Independent-of-prod quality debt from PENDIENTE.md §2:

- test: migrate broken Jest -> meteortesting:mocha. Tests rewritten to chai +
  Meteor 3 async APIs, moved to test/server/ (server-only). test/server/
  00-setup.test.js re-runs the collection2/accounts init that `meteor test`
  skips (no server/main.js). New comments method + mediaAnalyzers coverage.
  Dropped rest.test.js (removed meteor/http; covered by smoke/). 36 passing.
- fix: scope FireContainer read by the URL _id on the archive route instead of
  a selector-less FiresCollection.findOne() (imports/ui/pages/Fires/Fires.js).
- feat: rate-limit abusable publications via rateLimitSubscriptions (fireFrom*
  and comments.forReference 5/1000ms; geo subs 10/1000ms).
- perf: append loading=async to the Google Maps loader URL (Gkeys.js).
- deps: meteor-accounts-t9n 2.0 -> 2.6 (no gl build -> keep gl->es fallback,
  documented); add 3 missing gl/common.json keys (0 missing now).
- deps: drop jest/babel/enzyme, add chai.
2026-07-21 22:59:06 +02:00
5661e129fb fix: NaN in /fires 'active fires in map' count (react-i18next 14 <Trans>)
react-i18next 14 reserves `count` as the pluralization variable and no
longer interpolates it from a <Trans> object child, so <strong>{{count:N}}</strong>
left {{count,number}} unresolved -> the number formatter ran on undefined ->
"NaN". (t() and the countTotal var were unaffected; regression from the
i18next 10->23 / react-i18next 7->14 bump.)

Renamed the variable count -> inMap in FiresMap.js and in the
activeFireInMapCount value of the es/en/gl locales (the string has no plural
forms, so count was only an unlucky name). Browser-verified: /fires now shows
the real count; home/zones/fire-detail render with no real errors. REST smoke
byte-identical.
2026-07-21 13:45:59 +02:00
Weblate
6f683ebaa2 Merge remote-tracking branch 'origin/tcef-master' into tcef-master 2018-08-16 09:03:55 +00:00
lupe bao reixa
8e729a6939 Translated using Weblate (Galician)
Currently translated at 100.0% (221 of 221 strings)
2018-08-16 09:03:51 +00:00
Vicente J. Ruiz Jurado
bf926514c9 Mobile notifications 2018-08-02 12:42:19 +02:00
vjrj
391b8935be Formatted messages 2018-05-21 17:43:05 +02:00
vjrj
bea2703f2f Better stats in FiresMap 2018-05-21 15:43:43 +02:00
vjrj
9d68b1e6c1 Trying to add blur and lazy to slides 2018-05-08 12:31:30 +02:00
vjrj
b4afa820ab Added webp images for faster home load 2018-05-08 11:12:48 +02:00
vjrj
40f79c6aa3 Removed unused string 2018-04-01 16:40:28 +02:00
vjrj
452f6baf45 Last fire detected 2018-03-22 16:38:27 +01:00
vjrj
b92e3c9b30 Added from now title 2018-03-13 01:46:46 +01:00
vjrj
182dc4d878 Fire icons resized 2018-03-10 13:09:41 +01:00
vjrj
f7d118de27 Some translation work 2018-03-06 15:55:37 +01:00
vjrj
edfdbee6d4 Fix translation typo 2018-03-06 09:10:24 +01:00
vjrj
af6676cd8c Against the Fire 2018-03-05 12:04:55 +01:00
vjrj
8c91011dc7 Missing translation 2018-03-05 10:02:42 +01:00
vjrj
a8a1c43f2c Fire comments email notifications 2018-03-05 09:59:55 +01:00
vjrj
23ee271d64 Fires maps simplified. Better mobile style 2018-03-04 13:31:41 +01:00
vjrj
f85771f05a Missing translation 2018-03-04 12:30:26 +01:00
vjrj
9062012d18 Unsuscribe translation 2018-03-02 10:08:13 +01:00
vjrj
ceebb5d5ad Improved subs messages 2018-03-02 07:36:54 +01:00
vjrj
e703057377 Dup subscriptions not allowed 2018-03-01 17:10:31 +01:00
vjrj
621cf4e2ad Improved autocomplete error handling 2018-03-01 16:47:37 +01:00
vjrj
ae2695ea1f i18n subs limit 2018-02-28 11:26:00 +01:00
vjrj
2bad9d4083 New geolocation error 2018-02-27 19:32:43 +01:00
vjrj
c2270a860e Fix error message in geolocation 2018-02-27 18:50:38 +01:00
vjrj
5d216d81d4 Location search in Fire Map 2018-02-27 17:46:00 +01:00
vjrj
dc92574bc3 Full screen on maps 2018-02-27 11:37:54 +01:00
vjrj
1df41f1e5a Industry message changed 2018-02-26 16:36:52 +01:00
vjrj
ccbfe642a8 Added industries collection 2018-02-26 12:11:23 +01:00
vjrj
a8dc8a6b58 More accurate firemap legend 2018-02-23 17:11:45 +01:00
vjrj
5e9e6896c0 Fire icon sizes 2018-02-23 17:02:54 +01:00
vjrj
ae3b9e5faf About page 2018-02-22 10:49:15 +01:00
vjrj
f0bf995584 Fire page now shows also false positives 2018-02-20 07:55:26 +01:00
marcos
4b9d742b9b errata en radio 2018-02-19 16:02:49 +01:00
vjrj
719ea435d4 Feedback not in home and email for non auth users 2018-02-18 20:21:26 +01:00
vjrj
458627f520 Fix reconnect translation issues 2018-02-18 18:43:40 +01:00
vjrj
ba32c4fd0d Feedback button 2018-02-18 17:00:54 +01:00
vjrj
dbfbba1067 Added unstranslated cookie message 2018-02-15 13:27:09 +01:00
vjrj
078931b4f9 Translation link 2018-02-14 10:31:19 +01:00
vjrj
3fc0fca23b Added untranslated message 2018-02-13 10:43:41 +01:00
vjrj
7d8034e600 Merge lang en 2018-02-13 09:58:02 +01:00
vjrj
0bb1df3584 Translated using Weblate (English)
Currently translated at 100.0% (187 of 187 strings)
2018-02-13 08:49:35 +00:00
vjrj
9e4815d8b8 Link to tranlator 2018-02-13 09:38:58 +01:00
vjrj
08b3289f4d Lang for oauth users 2018-02-12 19:52:22 +01:00
vjrj
e46ae3a000 Added zones nav link 2018-02-12 09:49:13 +01:00
vjrj
6a9f3e4df6 English typo 2018-02-11 19:22:34 +01:00
vjrj
735dd55531 Fire industries marks 2018-02-08 15:54:47 +01:00
vjrj
eca58df6c2 Fire popupsand active/archive urls 2018-02-08 11:15:23 +01:00