[web] Fix FileTreeModalCreateFile modal style on "too many files" error (#28995)

* Temporarily update `maxEntitiesPerProject` to test `FileTreeModalCreateFile`

* Remove unused CSS

* Move project_has_too_many_files Notification to the modal body

* Turn project_approaching_file_limit message into a Notification

* Update project_has_too_many_files translation with `fileCount.limit`

* Update other project_has_too_many_files with limit parameter

* Add translations for project_has_too_many_files_limit

* Revert "Temporarily update `maxEntitiesPerProject` to test `FileTreeModalCreateFile`"

This reverts commit 704996aa96c9ba592c7e44d165def0b97d30bed1.

* Fix unit tests

* Move the warning notification to the modal's body

---------

Co-authored-by: Rebeka <o.dekany@gmail.com>
GitOrigin-RevId: 0f54db7021e4cd4537a14e4f9e1d8ef54337778c
This commit is contained in:
Antoine Clausse
2025-10-14 17:00:47 +02:00
committed by Copybot
parent 03ea7edcfd
commit dd11adfdc3
13 changed files with 55 additions and 50 deletions
@@ -524,7 +524,7 @@ describe('EditorHttpController', function () {
)
await new Promise(resolve => {
ctx.res.callback = () => {
expect(ctx.res.body).to.equal('"project_has_too_many_files"')
expect(ctx.res.body).to.equal('"project_has_too_many_files_limit"')
expect(ctx.res.status).to.have.been.calledWith(400)
resolve()
}
@@ -584,7 +584,7 @@ describe('EditorHttpController', function () {
new Error('project_has_too_many_files')
)
ctx.res.callback = () => {
expect(ctx.res.body).to.equal('"project_has_too_many_files"')
expect(ctx.res.body).to.equal('"project_has_too_many_files_limit"')
expect(ctx.res.statusCode).to.equal(400)
resolve()
}