Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1136 commits
Select commit Hold shift + click to select a range
c86e0ed
Add `curly: error` to ESLint configs (#2452)
eemeli Apr 25, 2022
67e3cc8
Add translate="no" attributes to React root elements (#2494)
eemeli Apr 26, 2022
681925b
Bump Django to 3.2.13 (#2497)
mathjazz Apr 26, 2022
dd66658
Remove the warm-reloading README section (#2499)
mathjazz Apr 27, 2022
74b9c6a
Update celery to 5.2.6 (#2498)
mathjazz Apr 27, 2022
1750823
Bump Silme to 0.11.2 (#2496)
mathjazz Apr 27, 2022
03435d9
Update slate to 0.78.0 (#2500)
mathjazz Apr 27, 2022
9f39c4f
Replace react-infinite-scroller with react-infinite-scroll-hook (#2503)
eemeli Apr 29, 2022
fce45af
Update JS dependencies, including Fluent (#2501)
eemeli May 3, 2022
2aaadea
Fix bugs in preceding PRs (#2508)
eemeli May 3, 2022
425d9d8
Rename Deadline to Target Date in Project Admin (#2510)
mathjazz May 5, 2022
2ac899f
Add ability to pretranslate subset of locales only (#2511)
mathjazz May 5, 2022
05c07cb
Make celery command version 5.x compatible (#2512)
mathjazz May 5, 2022
f537769
Refactor code to simplify it (#2513)
eemeli May 10, 2022
1622f93
Move unsaved changes from Redux to React Context (#2514)
eemeli May 10, 2022
83d723f
Temporarily disable Microsoft Terminology Service (#2525)
mathjazz May 10, 2022
e990e4e
Unbundle API methods from class structures (#2517)
eemeli May 12, 2022
1097eaa
Remove all default exports (#2518)
eemeli May 12, 2022
fbabcc1
Simplify Entity.for_project_locale and Entity.map_entities (#2527)
eemeli May 12, 2022
3bb0455
Add support for list query parameter (#2520)
eemeli May 12, 2022
7417991
Fix issues with comments (#2521)
eemeli May 12, 2022
4e2115d
Drop EntityDetailsBase wrapper; un-skip all tests (#2526)
eemeli May 12, 2022
9fbab33
refactor: Define EntityNavigation behaviour internally, not via props
eemeli May 11, 2022
4e792a6
refactor: Simplify next/previous entity handling + hide their buttons…
eemeli May 11, 2022
f9570b3
Add Entity as data wrapper for EntityDetails; move PluralFormProvider…
eemeli May 12, 2022
0939b5f
Split Redux "machinery" state into MachineryTranslations & SearchData…
eemeli May 12, 2022
c92229f
Show query as placeholder for search; make search icon work as a button
eemeli May 12, 2022
3f5f596
refactor: Clean up fluenteditor components, separating hooks to own f…
eemeli May 12, 2022
7f1fa50
Merge sendTranslation_ action into useSendTranslation hook
eemeli May 13, 2022
fde2b15
Split HelperSelection context from EditorState in Redux
eemeli May 13, 2022
7fed45c
Update pip-tools to v6.6.1 (#2530)
flozz May 18, 2022
59ddb3f
style: Use capital first letter for context files & drop Type suffix
eemeli May 13, 2022
813cbaa
Drop duplication of updateTranslationStatus; make History props internal
eemeli May 13, 2022
7f0e3b6
Refactor EditorSelector as Editor, merging in useUpdateUnsavedChanges
eemeli May 14, 2022
2a12fde
Re-refactor UnsavedChanges context, adding separate UsavedActions con…
eemeli May 14, 2022
93e8204
Split FailedChecksData context from EditorState in Redux
eemeli May 14, 2022
8d0efa8
Parse & serialize empty attributes & variants with valid Fluent
eemeli May 16, 2022
5a5eb43
Refactor Redux EditorState into React Context EditorData/EditorAction…
eemeli May 15, 2022
9f6fe4b
Always flatten Fluent messages when parsing
eemeli May 17, 2022
6df28e8
Upgrade to python 3.9.13 (#2531)
mathjazz May 19, 2022
f765fa9
Revert "Temporarily disable Microsoft Terminology Service (#2525)" (#…
mathjazz May 19, 2022
38bff45
Special-case empty multi-selector messages
eemeli May 26, 2022
d634a07
Disable rather than remove next/previous message nav buttons
eemeli May 30, 2022
fd7e0f7
Localize FtlSwitch using Fluent
eemeli May 30, 2022
ab8fde1
Revert using submitted query as placeholder instead of "Concordance S…
eemeli May 30, 2022
39df641
Localize remaining part of Translation component
eemeli May 30, 2022
835934b
Merge pull request #2534 from eemeli/editor-context
eemeli May 31, 2022
775f176
Spec Guidelines for new contributors (#2542)
mathjazz Jun 5, 2022
27b1440
Correctly set types of ApiFailedChecks members as optional (#2544)
eemeli Jun 5, 2022
a6dd8a0
Various refactors (#2536)
eemeli Jun 8, 2022
8a6cc96
Do not set pluralForm when hasPluralForms is false (#2550)
eemeli Jun 17, 2022
944eda7
Account for failed post() when forwarding terminology requests
eemeli Jun 18, 2022
951fd1f
Do not set focus on end during manual input
eemeli Jun 18, 2022
b72158e
Group Team contributors by role (#2552)
mathjazz Jun 21, 2022
2377d76
Silence failures in ReactEditor.toDOMRange() for MentionList position…
eemeli Jun 27, 2022
a7f83ba
Refactor RichForm internals as components rather than inner render* f…
eemeli Jun 27, 2022
ed8d0c5
Send new contributor notifications to team managers (#2560)
mathjazz Jul 7, 2022
ed1fe53
Implement New Contributor tooltip (#2564)
mathjazz Jul 7, 2022
f29efa8
Automatically fill editor for missing values with a perfect TM match …
eemeli Jul 7, 2022
5f90335
Use correct source length for FTL strings (#2566)
eemeli Jul 8, 2022
d03c22c
Always show Age of unreviewed chart (#2565)
mathjazz Jul 8, 2022
000861a
Copy only contents of FTL string from other-locales view (#2568)
eemeli Jul 8, 2022
ccdcceb
fix(docker): copy using chown for package.json and .env (#2571)
bufferoverflow Jul 14, 2022
bae2e9b
Control cursor position less, trusting the browser to handle it right…
eemeli Jul 15, 2022
cbb1f79
Bump terser from 5.13.1 to 5.14.2 (#2575)
dependabot[bot] Jul 21, 2022
fbafc74
Update Python requirements (#2580)
mathjazz Jul 27, 2022
b82f043
Restore Locales scrolling in Terminology (#2578)
mathjazz Jul 29, 2022
ee4c9c3
Opt-out of Chrome Auto Dark Theme (#2579)
mathjazz Jul 29, 2022
8ab11d5
Use document.activeElement rather than custom redux value to track Se…
eemeli Jul 29, 2022
b078568
Move EntityViewProvider from Entity to App to allow its use in UserMe…
eemeli Aug 1, 2022
441fcca
Do not render EntityDetails or EditorMenu while still loading data (#…
eemeli Aug 1, 2022
41ee748
Fix issues copying strings from Machinery & OtherLocales to editor us…
eemeli Aug 1, 2022
cf83c52
Add wrapper component for ProjectInfoDialog to satisfy useOnDiscard (…
eemeli Aug 1, 2022
bbc8370
Force-refresh history after submitting a translation with no next str…
eemeli Aug 1, 2022
47f562d
Separate plural-form reset from entity updates in its provider (#2590)
eemeli Aug 1, 2022
7de9c80
Drop redux-logger (#2589)
eemeli Aug 1, 2022
26bc4bb
Only call /get-users/ when adding a comment (#2588)
eemeli Aug 3, 2022
5c8740d
Allow users to add external accounts (#2592)
mathjazz Aug 3, 2022
7c06fb3
Remove ability to auto login users (#2593)
mathjazz Aug 4, 2022
4cfaa0f
Add username field and use it in profile URL (#2594)
mathjazz Aug 4, 2022
181c703
Add User Bio field (#2596)
mathjazz Aug 4, 2022
5542b6b
Run Prettier and ESLint in relevant folders only (#2597)
mathjazz Aug 9, 2022
094ea12
Allow users to set visibility of specific profile fields (#2598)
mathjazz Aug 10, 2022
ca31201
Add `reviewer`, `review_time`, `exclude_self_reviewed` filters (#2600)
mathjazz Aug 10, 2022
e444456
Use POST requests for social login endpoints (#2601)
mathjazz Aug 11, 2022
aad2f84
Turn Sign Out into a synchronous POST request (#2602)
mathjazz Aug 11, 2022
49f2e2f
Allow user to add a contact email address (#2606)
mathjazz Aug 17, 2022
daedb40
Fix Approval and Self-Approval Ratio definition in the Profile page s…
mathjazz Aug 17, 2022
8e709ac
Update Django (#2614)
mathjazz Aug 26, 2022
327962e
New Profile page layout (#2613)
mathjazz Aug 26, 2022
69e7b06
Implement contribution graph (#2615)
mathjazz Aug 29, 2022
f1a69e8
Add contribution timeline (#2617)
mathjazz Sep 8, 2022
f821535
Various Terminology management fixes (#2632)
mathjazz Sep 19, 2022
054f1f3
Adapt code to the new User.managed_locales() API (#2633)
mathjazz Sep 21, 2022
253d77c
Normalise initial FTL values to always end in newline (#2635)
eemeli Sep 22, 2022
6cfef47
Refactor accesskey extraction to include more cases (#2636)
eemeli Oct 11, 2022
b5b19f7
Add missing python-binary-memcached package hash (#2644)
tnovau Oct 25, 2022
48b73a6
Sync should run locales in order of locale code, not language name (#…
willianveiga Oct 27, 2022
4aa419c
Upgrade to python-3.9.15 (#2649)
mathjazz Nov 7, 2022
ca67f5d
Add support for Google AutoML Translation (#2648)
mathjazz Nov 7, 2022
4e80813
Fix MultipleObjectsReturned in retrieving Locale from GT code (#2651)
mathjazz Nov 7, 2022
cc5c515
Re-enable Pretranslated status in dashboards, filters and progress ch…
mathjazz Nov 7, 2022
f84d772
Include pretranslated in completion calculations (#2652)
mathjazz Nov 8, 2022
c023f2c
Add missing placeable parser localizations (#2653)
mathjazz Nov 8, 2022
bf27e92
Add script to generate source-only repos for Thunderbird and Seamonke…
mathjazz Nov 9, 2022
cc8fb12
Keep AutoML Translate latency low (#2659)
mathjazz Nov 16, 2022
7590a59
Serialize pretranslated translations to VCS and downloaded files (#2663)
mathjazz Nov 22, 2022
01cddfd
Upgrade jQuery to v3.6.1 (#2647)
willianveiga Nov 25, 2022
11640c9
Obsolete entities when mass deleting terms (#2667)
mathjazz Nov 30, 2022
943a664
Set up custom Clock Process (#2670)
mathjazz Dec 1, 2022
1c81716
Update clock.py copy (#2671)
mathjazz Dec 1, 2022
a1cbdb5
Fix typo in celeryapp.py (#2672)
mathjazz Dec 2, 2022
fdf94d3
Update to jest 29 & refresh npm lockfile (#2673)
eemeli Dec 7, 2022
eb1e5ab
Update to python 3.9.16 (#2674)
mathjazz Dec 7, 2022
f28ef29
Add missing dependency on initial value to unsaved-changes update (#2…
eemeli Dec 8, 2022
b3a8ed3
Move translate/src/core/utils/ -> translate/src/utils/ (#2678)
eemeli Dec 8, 2022
8d1ebdb
Floor TM quality value (#2681)
mathjazz Dec 12, 2022
3ce3fed
Exclude tutorial from "first contribution" consideration & notificati…
eemeli Dec 12, 2022
012ff09
Collect message utils under translate/src/utils/message/ (#2679)
eemeli Dec 14, 2022
4f29d4b
In the simple view, use an empty string for empty Fluent literals (#2…
eemeli Dec 14, 2022
ba24354
Add warning for empty Fluent entries (#2675)
eemeli Dec 14, 2022
46023d8
Cleanup placeables markup, "Translation" components & originalstring …
eemeli Dec 20, 2022
26c5f70
Render attribute names in plural string labels (#2693)
mathjazz Jan 2, 2023
6c94121
Bump json5 from 1.0.1 to 1.0.2 (#2701)
dependabot[bot] Jan 8, 2023
85047a2
Replace Fluent AST with MF2 data model (#2684)
eemeli Jan 9, 2023
27a4331
Convert fluent strings with single input to simple message before pre…
vishalol Jan 10, 2023
015beab
Avoid throwing errors in editor (#2709)
eemeli Jan 13, 2023
765804f
Add limit (15) for fields in rich editor (#2713)
eemeli Jan 16, 2023
b9f0414
Properly serialize FTL messages coming from TM (#2715)
mathjazz Jan 18, 2023
3711f76
In Fluent strings, only machine translate part that follows the ID (#…
vishalol Jan 22, 2023
716ea59
Include Pretranslated strings in new string notification link (#2725)
mathjazz Jan 24, 2023
3840b51
Fix Pretranslation Locale QuerySet (#2727)
mathjazz Jan 24, 2023
7f56cb7
Fix #2712: Log translation creation action for pretranslations (#2728)
vishalol Jan 24, 2023
eb94f01
Update URL of pontoon-test repo (#2729)
mathjazz Jan 27, 2023
317b4d3
Update CLDR population link (#2730)
ImUrX Jan 27, 2023
64396c2
Add support for implicit TLS emails (#2736)
ImUrX Jan 29, 2023
8159f29
Never include empty literals in simple editor view
eemeli Jan 30, 2023
81a3f56
Merge pull request #2738 from eemeli/empty-terms
flodolo Jan 30, 2023
fd51d4b
Do not crash when serialising & limit selector function names (#2743)
eemeli Jan 31, 2023
016de8a
Add sacrebleu, needed for Pretranslation evaluation (#2747)
mathjazz Feb 9, 2023
930dd23
Exclude system users from Contributors dashboards (#2668)
willianveiga Feb 11, 2023
dad3391
Show bugs in the Bugs tab (#2751)
mathjazz Feb 15, 2023
56819ee
Refactor Editor context (#2720)
eemeli Feb 15, 2023
413c8c5
Update JS dependencies (#2754)
eemeli Feb 15, 2023
a698ac3
Allow reading configuration from the repository (#2546)
Demivan Feb 15, 2023
1192cb7
Unify date and time format in latest activity, profile, bugzilla... (…
willianveiga Feb 15, 2023
ceef698
Set up a dedicated dyno to schedule and execute Google AutoML Transla…
mathjazz Feb 16, 2023
96cd4af
Only exclude system users from contributor dashboards and permissions…
mathjazz Feb 16, 2023
8f89d38
Set refs correctly in EditAccesskey (#2759)
eemeli Feb 16, 2023
8d0d14a
Fix copying content into FTL source view (#2761)
eemeli Feb 16, 2023
4ba8e64
Show "All contributions" by default when accessing own profile (#2762)
willianveiga Feb 17, 2023
5bf80d3
Do not mark translations of DB projects as needing sync (#2765)
willianveiga Feb 28, 2023
9384cf1
Add links to roadmap and good first issues (#2772)
mathjazz Mar 1, 2023
a8e5c74
CC requester to the email sent when requesting a new project (#2770)
willianveiga Mar 1, 2023
2ed126c
Show contributor, not current user email (#2774)
mathjazz Mar 2, 2023
76f2d59
Drop support for email addresses in contributor URLs (#2777)
mathjazz Mar 3, 2023
5a5e13e
Default contributors limit (#2775)
mathjazz Mar 3, 2023
83ec6e4
Preparation work for text-only pretranslation of Fluent strings (#2773)
mathjazz Mar 3, 2023
0ae0630
Fix NaN on /machinery page (#2786)
mathjazz Mar 8, 2023
4eeabce
Exclude locales chosen for pretranslation from available (#2788)
mathjazz Mar 8, 2023
5e85268
Keep editor context fields value updated on relevant changes (#2782)
eemeli Mar 8, 2023
2a005fc
Add special-case plural handling for some locales (#2783)
eemeli Mar 8, 2023
db94fdc
Only pretranslate localizable text in complex Fluent messages (#2789)
mathjazz Mar 9, 2023
3e762b3
Factor out bulk ChangedEntityLocale creation (#2778)
willianveiga Mar 9, 2023
2b1cee4
Move mark_changed() model method from Entity to Translation model (#2…
willianveiga Mar 13, 2023
5c3a4a4
SYNC button should be disabled when a project is disabled (#2795)
willianveiga Mar 13, 2023
59cdc2c
Admin · Current Project link broken in All Projects view (#2796)
willianveiga Mar 15, 2023
1748a01
Restore manual Sync button if Sync disabled (#2797)
mathjazz Mar 15, 2023
de91ac8
Fix CSS import order in index.tsx to maintain expected rule priority …
eemeli Mar 15, 2023
9cbcd2e
Use correct match for highlighted terms (#2801)
eemeli Mar 16, 2023
c0edc2b
Fix empty message generation for be, pl, ru, uk (#2806)
eemeli Mar 20, 2023
6dc4898
Pretranslate Fluent plural expression with target locale plural forms…
mathjazz Mar 20, 2023
9ce1231
Move translate modules from core/ to modules/ (#2799)
eemeli Mar 21, 2023
f2e2b14
Fix review author tooltip (#2803)
willianveiga Mar 21, 2023
27892ff
Add support for React Testing Library (#2800)
eemeli Mar 23, 2023
5e9c28f
Do not mark Pretranslated strings with Errors and Warnings as needing…
mathjazz Apr 11, 2023
641c90c
Update to compare-locales 9.0.1, fluent-syntax 0.19.0, pip-tools 6.13…
eemeli Apr 18, 2023
45e52c6
Prefetch user profile data to speed up role detection (#2822)
mathjazz May 1, 2023
d470fd7
Rename Homepage label in Settings (#2825)
mathjazz May 3, 2023
b35eaf2
Convert multiline messages into single line before pretranslation (#2…
mathjazz May 3, 2023
c52ec2f
Remove docker-compose from a list of requirements (#2827)
mathjazz May 3, 2023
d49eac8
Optimize Thunderbird and Seamonkey sync (#2830)
mathjazz May 3, 2023
4889ea6
Replace LOCALE_REQUEST_FROM_EMAIL with DEFAULT_FROM_EMAIL (#2828)
mathjazz May 3, 2023
c629874
Speed up permission page by removing the ability to select among all …
mathjazz May 4, 2023
22111df
Fix bad operator introduced in #2830 (#2839)
mathjazz May 7, 2023
ff7a85a
Speed up project notifications tab (#2838)
mathjazz May 8, 2023
570121a
Move contact person @mention delay to comment submission (#2835)
eemeli May 8, 2023
e106b5a
Speed up project dashboard (#2841)
mathjazz May 9, 2023
e1b2d0b
Use Keycloak for authentication (#2820)
haodave May 9, 2023
d8696c9
Fix #2824 capitalization and terminology inconsistency (#2842)
ayanaar May 9, 2023
879952f
Exclude obsolete entities when aggregating locale stats (#2845)
mathjazz May 10, 2023
75f434a
Also pretranslate strings that only have rejected suggestions submitt…
mathjazz May 11, 2023
05be289
Sort tags on dashboard by priority (#2852)
ayanaar May 15, 2023
890bd26
Foundations for HTML support in machinery/pretranslation (#2851)
eemeli May 16, 2023
7d414d6
Add ability to opt-out of access key localization (#2847)
mathjazz May 16, 2023
60735c6
Update black and test requirements, fix pip-compile warnings
mathjazz May 16, 2023
0ce71dc
Generate accesskeys (rather than pretranslate)
mathjazz May 17, 2023
8f9c879
Spell access key with a space (#2857)
mathjazz May 22, 2023
d2512ac
Handle specific Git error during push operation (#2856)
ayanaar May 23, 2023
1fa6bc5
Hide "Make Suggestions" for Non-Translators (#2854)
ayanaar May 25, 2023
b44eb2f
Fix #2726 remove custom homepage check in notification verb and model…
ayanaar May 26, 2023
4a1f92a
Speed up server stop in development (#2863)
eemeli May 29, 2023
bd62a6b
Drop zoom:1 from CSS clearfix (#2864)
eemeli May 29, 2023
3f42a6a
Update dependencies (#2865)
eemeli May 29, 2023
a14d1b1
Update packaged Open Sans font to use WOFF2 format (#2861)
eemeli May 31, 2023
7f11bee
Add workaround for google/fonts#6221 (#2869)
eemeli Jun 2, 2023
b46ec36
Include all source string translations in localized XLIFF files (#2871)
ayanaar Jun 14, 2023
1ed5a08
Fix localization in HistoryTranslation (#2859)
eemeli Jun 14, 2023
22dd3e1
Use Glossary to prevent placeables modifications by machine translati…
mathjazz Jun 14, 2023
5a2b145
Drop remnants of in-context localization (#2862)
eemeli Jun 15, 2023
9a1ee55
Replace editor `<textarea>` with CodeMirror v6 (#2866)
eemeli Jun 15, 2023
5a6f16b
Set target-language to locale code or keep it if already set (#2876)
mathjazz Jun 16, 2023
69a2076
Scroll entire main column all together (#2868)
eemeli Jun 19, 2023
9220827
Add syntax highlighting for placeholders and tags (#2879)
eemeli Jun 19, 2023
efa6859
Re-enable spellchecker in translation editor (#2884)
mathjazz Jun 21, 2023
a9e6949
Update python (#2883)
mathjazz Jun 21, 2023
6e1357d
Revert CodeMirror (#2890)
mathjazz Jun 22, 2023
8db9e92
Add specs for Pretranslation opt-in UI (#2895)
flodolo Jun 26, 2023
1e930cf
Disable Microsoft Terminology service in Machinery (#2900)
mathjazz Jul 2, 2023
1f925cf
Add light theme spec (#2891)
mathjazz Jul 6, 2023
e72ef21
Bump tough-cookie from 4.1.2 to 4.1.3 (#2905)
dependabot[bot] Jul 18, 2023
464835d
Updated psycopg2 from 2.8.5 to 2.9.6 (#2906)
flozz Jul 18, 2023
2054358
Bump word-wrap from 1.2.3 to 1.2.4 (#2911)
dependabot[bot] Jul 19, 2023
178d666
Bump pygments from 2.7.4 to 2.15.0 in /docs (#2913)
dependabot[bot] Jul 20, 2023
d913a04
Handle Project URL Slug Changes (#2889)
ayanaar Jul 20, 2023
6c9ca7e
Implement pretranslation request form (#2910)
mathjazz Jul 20, 2023
91662b4
Restore access to the All Projects Translate view (#2914)
mathjazz Jul 20, 2023
856eeaa
Fix broken team dashboard for non-authenticated users (#2915)
mathjazz Jul 21, 2023
976385b
Updated parsimonious to v0.10 (#2916)
flozz Jul 24, 2023
22da53e
Add Pretranslation Monitoring spec (#2904)
mathjazz Jul 25, 2023
93c7179
Do not enforce camel case on sibling entity object keys (#2919)
eemeli Jul 25, 2023
505023d
Do not load team comments or other locales if there is no entity (#2918)
eemeli Jul 25, 2023
d43c73c
Re-introduce CodeMirror editor + delay setting failed checks until ed…
eemeli Jul 26, 2023
7a35e90
Only spellcheck string content; not placeholders or html tags (#2922)
eemeli Aug 7, 2023
6a56005
Update spellcheck decorations on content updates (#2925)
eemeli Aug 8, 2023
373df2b
Add `date_created` Field to Entity and Display in Metadata Component …
ayanaar Aug 14, 2023
e1f1652
Fix for Importing Translations from messages.json Files in Pontoon (#…
ayanaar Aug 14, 2023
088064b
Pretranslation monitoring: Time to review pretranslations chart (#2927)
mathjazz Aug 17, 2023
b042cfd
Pretranslation monitoring: Pretranslation quality chart (#2929)
mathjazz Aug 18, 2023
d1714dd
Pretranslation monitoring: Insights page (#2932)
mathjazz Aug 18, 2023
2ae71e2
Revert "Temporarily disable the ability to Request Pretranslation" (#…
mathjazz Aug 30, 2023
f371040
Restore values in Review activity and Pretranslation quality tooltips…
mathjazz Aug 31, 2023
e65abfd
Drop can_be_requested flag from the pretranslation project request (#…
mathjazz Sep 1, 2023
0c4f74e
Update python to 3.9.18 (#2948)
mathjazz Sep 1, 2023
f57dedf
Do not allow empty translations in strings.xml files (#2952)
mathjazz Sep 7, 2023
1b8f8fa
Re-render EditField on readonly status change (#2959)
eemeli Sep 18, 2023
fef5bc0
Do not clobber EditField value & cursor position if the text does not…
eemeli Sep 18, 2023
3088f8e
Do not grab focus for AddComment edit field if active element is an e…
eemeli Sep 18, 2023
59eb3c0
Update to compare-locales 9.0.2 (#2962)
mathjazz Sep 18, 2023
841a5bb
In parseFlatFluent(), also flatten terms (#2964)
eemeli Sep 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

17 changes: 17 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
comment: off

flags:
backend:
paths:
- pontoon/**.py
carryforward: true

frontend:
paths:
- translate/
carryforward: true

non-frontend-js:
paths:
- tag-admin/src/**.js
- pontoon/static/js/
carryforward: true
39 changes: 23 additions & 16 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
**/*.bundle.js
**/*.js.map
**/dist/**
**/build/**
vendor/**
webpack.config.js
coverage/**
static/*
**/*.min.js
**/js/lib/**/*.js
**/app/error_pages/**/*.js
**/*blockrain*js
assets/*
**/node_modules/**
docs/
.vscode/
tag-admin/dist/
translate/dist/
coverage/
docs/_build/
docs/venv/
package-lock.json
specs/

pontoon/base/templates/js/pontoon.js
/.github/
/media/
/static/

# Jinja templates
translate/public/translate.html
**/templates/**/*.html

# Vendored code
error_pages/css/blockrain.css
error_pages/js/
pontoon/base/static/css/boilerplate.css
pontoon/base/static/css/fontawesome-all.css
pontoon/base/static/css/nprogress.css
pontoon/base/static/js/lib/
138 changes: 73 additions & 65 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,71 +1,79 @@
/* eslint-env node */

module.exports = {
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
env: {
es6: true,
browser: true,
jest: true,
},
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
},
sourceType: 'module',
extends: ['eslint:recommended', 'plugin:react/recommended'],
env: {
es6: true,
browser: true,
jest: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
globals: {
gettext: false,
ngettext: false,
interpolate: false,
l: false,
expect: false,
test: false,
browser: false,
jest: false,
Promise: false,
Set: false,
URLSearchParameters: false,
FormData: false,
require: false,
shortcut: false,
sorttable: false,
$: false,
Pontoon: false,
jQuery: false,
Clipboard: false,
NProgress: false,
diff_match_patch: false,
Highcharts: false,
Sideshow: false,
fullpage: false,
fullpage_api: false,
editor: false,
DIFF_INSERT: false,
DIFF_EQUAL: false,
DIFF_DELETE: false,
ga: false,
SyntheticInputEvent: false,
SyntheticKeyboardEvent: false,
generalShortcutsHandler: true,
traversalShortcutsHandler: true,
editorShortcutsHandler: true,
sourceType: 'module',
babelOptions: {
presets: ['@babel/preset-react'],
},
plugins: [
'react',
requireConfigFile: false,
},
globals: {
gettext: false,
ngettext: false,
interpolate: false,
l: false,
expect: false,
test: false,
browser: false,
jest: false,
Promise: false,
Set: false,
URLSearchParameters: false,
FormData: false,
require: false,
shortcut: false,
sorttable: false,
$: false,
Pontoon: false,
jQuery: false,
Clipboard: false,
Chart: false,
NProgress: false,
diff_match_patch: false,
Highcharts: false,
Sideshow: false,
editor: false,
DIFF_INSERT: false,
DIFF_EQUAL: false,
DIFF_DELETE: false,
ga: false,
process: false,
generalShortcutsHandler: true,
traversalShortcutsHandler: true,
editorShortcutsHandler: true,
},
plugins: ['react'],
rules: {
curly: 'error',
'react/display-name': 0,
'react/prefer-es6-class': 1,
'react/prefer-stateless-function': 0,
'react/prop-types': 0,
'react/jsx-key': 0,
'react/jsx-uses-react': 1,
'react/jsx-uses-vars': 1,
'no-unused-vars': [
'error',
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true },
],
rules: {
'react/prefer-es6-class': 1,
'react/prefer-stateless-function': 0,
"react/prop-types": 0,
"react/jsx-key": 0,
"react/jsx-uses-react": 1,
'react/jsx-uses-vars': 1,
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }],
"no-console": 1,
"react/prefer-stateless-function": [1, {"ignorePureComponents": true}]
'no-console': 1,
},
settings: {
react: {
version: 'detect',
},
},
};
15 changes: 15 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[flake8]
max_line_length = 88
ignore = E203, E501, W503

exclude =
media/*,
*/pontoon-intro/*,
docs/conf.py,
*/migrations/*,
docs/conf.py,
setup.py,
node_modules,
bin,
tag-admin,
translate
12 changes: 12 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Black formatting
e92124bf208c9355cf47b914acd1ce3dfd942fb0
87cb4090099b98553af87817a877019947f05be2

# Prettier formatting
0f31239f210c3a4b3fb1593deaff219a876dec2d
eda809bb42b31aa0fac2abe2648654ff84d08ed7
a9aacb6ce812a9f95fbdc107986a416cfe193f96
9faea69c202376f3f3515ef665be04a12b61a130

# Conversion to Typescript
a77b8cdb6735925027f61515b0c8e6f63e3f578a
35 changes: 35 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Backend

on:
push:
branches:
- master
paths:
- requirements/**
- docker**
- pontoon/**
- .github/workflows/backend.yml
pull_request:
branches:
- master
paths:
- requirements/**
- docker**
- pontoon/**
- .github/workflows/backend.yml
workflow_dispatch:

jobs:
test:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: make build
- name: Pytest
run: make pytest
env:
run_opts: --user=root # volumes are only writable by root on gh
- uses: codecov/codecov-action@v3
with: { flags: backend }
50 changes: 50 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Frontend

on:
push:
branches:
- master
paths:
- translate/**
- .github/workflows/frontend.yml
pull_request:
branches:
- master
paths:
- translate/**
- .github/workflows/frontend.yml
workflow_dispatch:

jobs:
typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with: { node-version: '16' }
- name: Install dependencies
run: npm ci
- name: Check TypeScript
run: npm run types -- --pretty
working-directory: translate
- name: build
run: npm run build
working-directory: translate

jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install globals
run: npm install --global npm@8
- name: Install dependencies
run: npm ci
- name: Test
run: npm test --coverage
working-directory: translate
- uses: codecov/codecov-action@v3
with: { flags: frontend }
25 changes: 25 additions & 0 deletions .github/workflows/heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Heroku

on:
push:
branches:
- master
paths:
- app.json
- .github/workflows/heroku.yml
pull_request:
branches:
- master
paths:
- app.json
- .github/workflows/heroku.yml
workflow_dispatch:

jobs:
app-json:
name: Validating app.json
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate
run: python3 -m json.tool < app.json > /dev/null
Loading