Commit Graph

226 Commits

Author SHA1 Message Date
Simon Prévost
3cd67cd2c6 Fix machine translation error handling 2023-03-02 11:03:12 -05:00
Simon Prévost
c0cb687fe6 Fix invalid unicode file parsing 2023-02-27 13:09:02 -05:00
Simon Prévost
4feb86228e
Add ecto_psql_extras in telemetry_ui (#342)
* Add pg_stat_statements metrics

* Upgrade telemetry_ui

* v1.14.0

* Update ember template lint and format
2023-02-23 09:03:06 -05:00
Simon Prévost
c4c9a96ba5 Fix default vault key 2023-02-11 14:18:34 -05:00
Simon Prévost
a37b1831fe Add machine translations config 2023-02-07 09:21:48 -05:00
Simon Prévost
bb8979d325 Add api token create/revoke 2023-01-31 15:02:42 -05:00
Simon Prévost
84741452e9 Add canonical host and refactor config runtime module 2023-01-20 16:01:45 -05:00
Simon Prévost
70926dd492 Fix Rails formatter 2023-01-18 14:02:25 -05:00
Simon Prévost
773fd24f2a Fix gettext line break reject 2023-01-16 13:08:51 -05:00
Simon Prévost
042dc7e0a2 Fix lint for nil master value 2023-01-16 12:28:52 -05:00
Simon Prévost
593d080b43 format 2023-01-08 22:27:08 -05:00
Simon Prévost
40d37a4526 m1 stuff 2022-12-19 10:50:26 -05:00
Simon Prévost
4b142e7b23 wip 2022-12-16 08:56:46 -05:00
Simon Prévost
38897cdc53 Update telemetry_ui 2022-11-25 21:54:35 -05:00
Simon Prévost
0e3cbfc30f Add ecto in telemetry_ui 2022-11-22 10:10:43 -05:00
Simon Prévost
3e244bc301 Fix compile warning 2022-11-21 20:48:03 -05:00
Simon Prévost
02b273288b Add telemetry_ui 2022-11-21 20:41:09 -05:00
Simon Prévost
d40d32dbbb
Fix placeholder lint and bad documents list UX (#326) 2022-11-16 20:18:44 -05:00
Simon Prévost
4efe980129
Add support for version sync/export/infos in CLI (#325) 2022-11-16 20:18:35 -05:00
Simon Prévost
9027a832fe
Add rtl support for languages in webapp (#321) 2022-11-16 20:18:15 -05:00
Simon Prévost
ad018c0af5
Add document format on CLI (#308)
A new /format endpoint is available that simply returns the given file
as formatted by Accent. This can be useful locally to format or re-order
before committing the changes and not modify anything in your Accent
projet.
2022-09-01 08:45:19 -04:00
Simon Prévost
56400886f9 Update deps 2022-08-30 10:01:22 -04:00
Simon Prévost
a5667dd6eb Fix source translation on new slave 2022-08-29 08:30:50 -04:00
Simon Prévost
3325e5e9d8
Add batched SQL for insert/update operations (#306)
This introduce a new way of doing "migration" of data based on the
operation table. Before, we simply executed the SQL query as the
migration were run. Like for a "new" operation, we did an insert of a
"transactions" row and an update to the "operations" table _for each
entry in the synced file._ For a file containing 1000 keys, we did a
total of 2000 SQL queries.

After this commit, we only do 2 SQL queries (well 4 since we batch the
SQL params by 500). By aggregating operation like {:update_all,
operation.id, %{synced: true}}, we are able to batch the operations
efficiently.

This results in a much faster sync/add translations/correct/uncorrect
operations.
2022-08-29 07:50:55 -04:00
Simon Prévost
e04dccf6bd Fix review percentage, personal access token, batch, diffable strings 2022-06-20 09:55:53 -04:00
Simon Prévost
9e26cfb34d Fix first letter lint for non-latin languages 2022-06-16 15:06:42 -04:00
Simon Prévost
c3253e0439 Fix format 2022-03-30 09:07:30 -04:00
Simon Prévost
4fb82dcf16 Fix credo 2022-03-30 08:51:12 -04:00
Simon Prévost
730b6b9dda Fix lint without master value 2022-03-30 08:37:11 -04:00
Simon Prévost
9c57b53904 Add db timeout error grouping in sentry 2022-03-18 07:01:03 -04:00
Simon Prévost
ef42ef0531 Fix empty replacement on lint view 2022-03-18 06:44:09 -04:00
Simon Prévost
dd133b3ff4 Fix machine translations from language select take 2 2022-03-15 15:09:15 -04:00
Simon Prévost
54d0462f70 Fix machine translations from language select 2022-03-15 10:17:39 -04:00
Simon Prévost
78b2c65fe1 Add machine translations document translate 2022-03-15 06:18:21 -04:00
Simon Prévost
b24a115b6d Add new relic optional setup 2022-02-28 11:50:22 -05:00
Simon Prévost
ffdb353848 Update NodeJS deps for webapp and cli 2022-02-28 11:41:08 -05:00
Simon Prévost
66f6d32b21 Fixes 2022-02-23 11:39:47 -05:00
Simon Prévost
aa4335b9a3 Fix inspect changes in 1.13.3 2022-02-23 07:46:56 -05:00
Simon Prévost
e7c56e3eff Add lint in CLI 2022-02-23 07:18:51 -05:00
Simon Prévost
5554d6446a Add apostrophe lint for fr languages 2022-01-21 15:29:45 -05:00
Simon Prévost
d45cfa26f1 Fix media queries, linting and other small improvements 2022-01-21 15:07:59 -05:00
Simon Prévost
e04d267cba Add revision on lint translation item 2021-12-23 07:59:52 -05:00
Simon Prévost
cde90b66ba Remove autocorrect stuff 2021-12-18 21:07:01 -05:00
Simon Prévost
bc72f50b4b Remove gleam 2021-12-12 21:18:48 -05:00
Simon Prévost
559eef3794 wip 2021-12-09 18:45:23 -05:00
Simon Prévost
eea5ec0410 Add lint translations page 2021-06-30 07:08:31 -04:00
Simon Prévost
8b7ef7b367 Refactor navigation and add badges 2021-06-28 12:57:38 -04:00
Simon Prévost
edcc7dc042 Add batched operations in activity item and refactor machine translations UI 2021-06-23 12:43:28 -04:00
Simon Prévost
8a58f8bf99 Add timeout on user socket to prevent heroky router error 2021-06-09 15:03:50 -04:00
Simon Prévost
43055188c3 Add default null option on new slave 2021-06-07 11:10:00 -04:00
Simon Prévost
e9ec74ef61 Add merge options on add translation to correct translation in the same operation 2021-06-04 16:12:33 -04:00
Simon Prévost
c874b64e97 Add export advanced filters 2021-06-04 10:18:43 -04:00
Simon Prévost
2dc3c421be Fix long text machine translations 2021-06-04 10:17:48 -04:00
Simon Prévost
37840f1492 Update elixir deps 2021-04-23 07:28:20 -04:00
Simon Prévost
09e4301aea
Add update comment UI and API on translation and projet comments (#236)
* Add update comment UI and API on translation and projet comments

* Use erlef/setup-elixir in GitHub Actions

* Fix setup gleam
2021-02-12 06:38:47 -05:00
Simon Prévost
8b84d0f1a5 Fix related translations ordering 2021-02-09 07:48:22 -05:00
François Richard
62ed72ec4e
Allow comment deletion (#224)
* Allow comment deletion

* Add delete_changeset for comment, decrement comments count

* Add comment delete resolver test

* Don't use pipe on single function call

Co-authored-by: Simon Prévost <sprevost@mirego.com>

* Improve controller functions

* Run format

Co-authored-by: Simon Prévost <sprevost@mirego.com>
2021-01-27 08:25:42 -05:00
Simon Prévost
8f1e8786e5 Add WEBAPP_SKIP_SUBRESOURCE_INTEGRITY setting to remove integrity attributes on link and script tags 2020-12-02 07:58:29 -05:00
Simon Prévost
897719dd48 Fix duplicate translations on search, search reset and refactor box-shadow 2020-11-26 08:00:03 -05:00
Simon Prévost
c937a2ace1 Fix value_type not set for some parsers 2020-11-25 18:01:32 -05:00
Simon Prévost
704553e0dd Fix lint 2020-11-25 07:53:48 -05:00
Simon Prévost
8e50afc874 Run format 2020-11-25 07:34:47 -05:00
Simon Prévost
2b649acc88 Fix gettext multiline value serializing 2020-11-25 07:34:47 -05:00
Simon Prévost
8c94168c0f Fix translations scope 2020-11-25 07:34:47 -05:00
Simon Prévost
6e0c3e129a Add Google Translate service with machine translations feature 2020-11-25 07:34:47 -05:00
Simon Prévost
3274fbb13d Fix key separator for nested json key 2020-11-10 12:03:57 -05:00
Simon Prévost
e40fe4cb86 Add file comment section in translation edit form 2020-11-05 13:06:32 -05:00
Simon Prévost
83ebde9c9a Fix tests 2020-10-20 21:27:26 -04:00
Simon Prévost
61661d438e Fix elixir 1.11 config and pell config 2020-10-18 20:56:14 -04:00
Simon Prévost
6cd211ee83 Update elixir 1.11.0 and OTP 23 2020-10-09 07:46:58 -04:00
Simon Prévost
cd92e2f79a Add batched sync/merge actions 2020-10-08 16:46:36 -04:00
Simon Prévost
de6cdd15a4 Add recent projects locally stored in projects list 2020-10-07 07:37:59 -04:00
Simon Prévost
23ed664569 Fix, format and service logo reuse 2020-09-30 08:09:12 -04:00
Simon Prévost
d2dbce9358 Add Logger metadata for current user and graphql operations 2020-09-30 07:38:19 -04:00
Simon Prévost
54b68840b0 Fix tests 2020-08-31 20:54:40 -04:00
Simon Prévost
3c5b5d2c6c Refactor select and update deps 2020-08-29 18:06:27 -04:00
Simon Prévost
13fceebf22 Add RESX 2.0 format 2020-07-08 10:52:28 -04:00
Simon Prévost
67874cedbb Add HTML form for html valueType translation 2020-07-02 20:54:47 -04:00
Simon Prévost
e0c0709c61 Update deps 2020-06-10 21:38:14 -04:00
Simon Prévost
19ab6a44f1 Add gleam library to implement type-safe linting module 2020-06-10 13:04:13 -04:00
Simon Prévost
2743d93409 Refactor review and translation UI 2020-06-10 13:02:47 -04:00
Simon Prévost
3a2bb5dd45
Replace custom gen stage event handling with oban to execute async tasks (#187) 2020-06-10 13:02:35 -04:00
Simon Prévost
b033294017 Add FirstLetterCase lint rule 2020-05-25 20:16:42 -04:00
Simon Prévost
5893a518b4 Add ping github event handler
Closes #178
2020-05-09 13:14:45 -04:00
Simon Prévost
e11088f6ec
Add version requirement filter fallback for version tag param (#183) 2020-05-08 08:47:45 -04:00
Simon Prévost
9cdd5626da
Fix parsed document as nil for other formats (#184) 2020-05-08 08:13:08 -04:00
Simon Prévost
7e7abcb9ee
Add version runtime tag in footer when served from the API (#182) 2020-05-08 07:50:53 -04:00
Adam Dobrawy
985d240ade
Update docs for "version" parameter of /export (#172) 2020-05-04 20:36:53 -04:00
Simon Prévost
416df5932e Add page size on document to fix cli documents listing 2020-05-04 12:30:11 -04:00
romarickb
c6ee149163
Collaborator's email must be unique for a projet (#169)
* Collaborator's email must be unique for a projet. Can't add multiple time the same collaborator in a project

* Update priv/repo/migrations/20200430174230_unique_collaborator_email.exs

Co-authored-by: Rémi Prévost <remi@exomel.com>

Co-authored-by: Simon Prévost <sprevost@mirego.com>
Co-authored-by: Rémi Prévost <remi@exomel.com>
2020-05-01 09:18:58 -04:00
Simon Prévost
d2aa3c7c62 Fix input change event 2020-04-27 06:55:44 -04:00
Simon Prévost
9567db9b4d
Convert codebase to typescript and latest Ember (#157)
* Update eslint setup (#134)

* Convert services (#136)

* Convert login and logged-in routes (#137)

* Convert project routes and controllers (#138)

* Convert activities and comments routes (#140)

* Convert project edit sub-routes and controllers (#139)

* Convert files routes and controllers (#141)

* Convert revision routes and controllers (#142)

* Convert phoenix service (#143)

* Convert translation routes and controllers (#144)

* Convert versions routes and controllers (#145)

* Convert JIPT routes and controllers (#146)

* Convert Sass variables to CSS modules @value (#147)

* Convert CSS variables and fix projects page components

* Fix a bunch of components

* Fix another bunch of components

* Update styles and missing global for powerselect

* Fix typings

* Fix typescript warnings

* Add typings for phoenix and file-saver vendor

* Fix github ci

Co-authored-by: Charles Demers <cdemers@mirego.com>
Co-authored-by: Charles Demers <charles.demers6@gmail.com>
2020-04-07 07:47:33 -04:00
Simon Prévost
c63243ce78 Rename original_file_name to document_path 2020-01-11 20:37:09 -05:00
Simon Prévost
d193f300bb Remove dead code 2020-01-09 12:58:45 -05:00
Simon Prévost
bc6b349954 Fix document pagination with empty translations by using joins as select 2020-01-09 12:29:22 -05:00
Simon Prévost
8689caae7e Update deps and fix activity item styles 2020-01-03 16:03:43 -05:00
Simon Prévost
1968150385 Update app.json and jsone dep to remove slash escaping 2019-12-16 18:46:05 -05:00
Simon Prévost
d7a778d22c Fix revision language overwrite for sync/merge/export controller 2019-12-12 12:36:50 -05:00
Simon Prévost
7b3579cae7 Fix breaking graphql API 2019-12-12 12:36:50 -05:00
Simon Prévost
605509d1de Use overridable revision slug/name in CLI 2019-12-12 12:36:50 -05:00