869 Commits

Author SHA1 Message Date
Grzegorz Leoniec
370734bdde
Merged master in, fixed translation and modal linting issues 2019-03-12 17:58:04 +01:00
Robert Schäfer
6e003d428b
Merge pull request #233 from Human-Connection/get_rid_of_resource_type
Update ReportModal to work with back end
2019-03-12 13:52:30 +01:00
Robert Schäfer
3b7ffde4c2 Merge branch 'master' of github.com:Human-Connection/Nitro-Web into get_rid_of_resource_type 2019-03-12 13:26:56 +01:00
Grzegorz Leoniec
610aa470fb
Merge pull request #250 from Human-Connection/lokalise-2019-03-12_10-42-56
Lokalise: Translations update
2019-03-12 10:44:07 +01:00
lokalise-bot
d1be013c3c Lokalise: update of locales/pt.json 2019-03-12 10:43:01 +01:00
lokalise-bot
bcedf11c69 Lokalise: update of locales/pl.json 2019-03-12 10:43:00 +01:00
Grzegorz Leoniec
39933995c5
Merge pull request #240 from Human-Connection/update_translations
Update translations
2019-03-12 10:42:31 +01:00
Robert Schäfer
31c056e8d3 Display who disabled a resource 2019-03-10 22:40:29 +01:00
Robert Schäfer
2d1ea0e251 Cypres should be a development dependency 2019-03-10 18:24:37 +01:00
Robert Schäfer
d114d71fac Remove unrelated translations 2019-03-10 18:24:37 +01:00
Robert Schäfer
c794e5acb4 Fix yarn.lock 2019-03-10 18:24:37 +01:00
Robert Schäfer
ff926ae35f Bugfix: ReportModal keeps showing success screen 2019-03-10 18:24:37 +01:00
Robert Schäfer
dd6f9ddd25 Improve locales 2019-03-10 15:49:02 +01:00
Robert Schäfer
9eba745b83 We probably don't even need 'disabled' property 2019-03-10 15:47:23 +01:00
Robert Schäfer
7efc56a227 Fine-tune styling 2019-03-10 15:24:04 +01:00
Robert Schäfer
4cc02a6200 Import ReportModal in Modal 2019-03-10 15:19:23 +01:00
Robert Schäfer
bc2471c5df Refactor ReportModal 2019-03-10 15:19:23 +01:00
Robert Schäfer
b7ca8a426b Render modals in a closed state and hide
I found out that when you umount the modals completely you don't get the
nice hide effect of `<ds-modal>`. It should be safe to still have all
modals in the DOM.
2019-03-10 15:19:23 +01:00
Robert Schäfer
0b9ad5c395 Refactor context => resourceType
@appinteractive `context` is probably the broadest term you can think
of. If possible avoid and prefer a descriptive name.
2019-03-10 15:19:23 +01:00
Robert Schäfer
3b7308c7ef ModalWrapper closes if DisableModel closes 2019-03-10 15:19:23 +01:00
Robert Schäfer
7d7a1be43d Refactor: Put id in data.resource object 2019-03-10 15:19:23 +01:00
Robert Schäfer
173c2c3281 Test+implement modal wrapper for DisableModal 2019-03-10 15:19:23 +01:00
Robert Schäfer
b1bc46e170 DisableModal ready 2019-03-10 15:19:23 +01:00
Robert Schäfer
ca397b6674 Behaviour of DisableModal fully tested 2019-03-10 15:19:23 +01:00
Robert Schäfer
61e6773e86 Sketch a component test for DisableModal 2019-03-10 15:19:23 +01:00
Robert Schäfer
cdc9cd0af2 Await async mehtods in ReportModal.spec.js 2019-03-10 15:19:23 +01:00
Robert Schäfer
03422920a2 Start to implement wrapper modal 2019-03-10 15:19:23 +01:00
Robert Schäfer
221958ba10 Merge remote-tracking branch 'victorrms2/patch-1' into update_translations 2019-03-09 22:33:17 +01:00
Robert Schäfer
6f558db8aa Upload/Download translations from lokalise.co
@appinteractive @mattwr18 @Tirokk I did the following steps:

1. Upload current translations for `en` and `de` to lokalise.co
  * this did not update or create any keys, instead
    all keys were skipped (apparently already there)
2. Download the translations on lokalise with the following settings:
  * ICU message with numeric pluralization
  * Don't escape forward slashes
  * Indent with 2 spaces
2019-03-09 22:02:43 +01:00
Victor
a3e4633329
Small changes on translation mistakes - Portuguese
The translation of "post" is "postagem", and not "pastagem". Pastagem means where the cow eats grass.
The "admin" was as "Administrator", while the correct word is "Administrador".

I'm not sure about what "Shouts" are, but I don't really know if the word "Gritos" is the properly for this thing. In portuguese, when you say "Grito", the literal translation of "Shouts" you think of a person screaming, and I don't think that's was the intention. If somebody could explain me what a "Shout" means in this code I could help in a more accurate translation.
2019-03-09 17:47:34 -03:00
Lala Sabathil
f247e8657e
Merge branch 'master' into 27_disable_posts 2019-03-09 20:28:50 +01:00
Robert Schäfer
3903c2a4ff
Merge pull request #237 from Human-Connection/remove_portal
[WIP] Remove portal
2019-03-09 13:03:40 +01:00
Robert Schäfer
148bd03d4d Update styleguide to a version without vue-portal 2019-03-09 12:22:06 +01:00
dependabot[bot]
54c6fe1332 Bump tiptap-extensions from 1.13.0 to 1.14.0
Bumps [tiptap-extensions](https://github.com/scrumpy/tiptap) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/scrumpy/tiptap/releases)
- [Commits](https://github.com/scrumpy/tiptap/compare/tiptap-extensions@1.13.0...tiptap-extensions@1.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-09 12:22:04 +01:00
dependabot[bot]
61f6e8d7c2 Bump babel-jest from 24.1.0 to 24.3.1
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 24.1.0 to 24.3.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v24.3.1/packages/babel-jest)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-09 12:20:51 +01:00
dependabot[bot]
48732c50b5 Bump vue-jest from 3.0.3 to 3.0.4
Bumps [vue-jest](https://github.com/eddyerburgh/vue-jest) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/eddyerburgh/vue-jest/releases)
- [Commits](https://github.com/eddyerburgh/vue-jest/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-09 12:20:23 +01:00
Robert Schäfer
525da7a303 Without vue-portal all the oddities vanish
CC @Tirokk @mattwr18 @appinteractive

Major breakthrough: If I remove `vue-portal` entirely from the
styleguide, problem solved. Not only that we can remove the TODOs from
the tests. Even wrappers of subcomponents get updated when I interact
with the root component. What a bliss 😂

Example code:
```js
let button = wrapper.find('div div div button')
expect(button.attributes()).toEqual({disabled: 'disabled'})
wrapper.doSomeAction()
expect(button.attributes()).toEqual({})
```
2019-03-09 12:20:23 +01:00
Robert Schäfer
2831af469a Remove all code related to vue-portal 2019-03-09 12:20:23 +01:00
dependabot[bot]
4aa640a2e5
Merge pull request #232 from Human-Connection/dependabot/npm_and_yarn/tiptap-extensions-1.14.0 2019-03-09 00:03:47 +00:00
dependabot[bot]
013192f048
Bump tiptap-extensions from 1.13.0 to 1.14.0
Bumps [tiptap-extensions](https://github.com/scrumpy/tiptap) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/scrumpy/tiptap/releases)
- [Commits](https://github.com/scrumpy/tiptap/compare/tiptap-extensions@1.13.0...tiptap-extensions@1.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-08 21:45:59 +00:00
dependabot[bot]
5673ba831d
Merge pull request #235 from Human-Connection/dependabot/npm_and_yarn/babel-jest-24.3.1 2019-03-08 21:43:41 +00:00
Robert Schäfer
93a0e6654d Fledge out the test case for ReportModal
@Tirokk I think I could narrow down our problem to an additional call of
Wrapper(). The fact that we have to call it at least twice is a strong
indicator of non-atomic tests, which is bad.
2019-03-08 20:41:17 +01:00
Robert Schäfer
c0d545bae0 Refactor ReportModal
@Tirokk and I had a hard time to reason about the then/catch block if
$toast is undefined.
2019-03-08 20:41:17 +01:00
Robert Schäfer
193cff45e2 Test ReportModal with a wrapper component
... called ModalTestbed
2019-03-08 20:41:17 +01:00
Robert Schäfer
2a1276cdc3 Better test ReportModal first 2019-03-08 20:41:17 +01:00
Robert Schäfer
e10b9fde74 Fix translations, lint and some tests 2019-03-08 20:41:17 +01:00
Matt Rider
3cebb0eea0 Update ReportModal to work with back end 2019-03-08 20:41:17 +01:00
Robert Schäfer
44b216f138 Scaffold DisableModal and .spec 2019-03-08 20:41:16 +01:00
dependabot[bot]
a374099a1e
Bump babel-jest from 24.1.0 to 24.3.1
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 24.1.0 to 24.3.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v24.3.1/packages/babel-jest)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-08 19:26:40 +00:00
Lala Sabathil
8a15ef99f6
Merge pull request #220 from Human-Connection/dependabot/npm_and_yarn/vue-jest-3.0.4
Bump vue-jest from 3.0.3 to 3.0.4
2019-03-08 20:24:15 +01:00