Fix lint and Changelog

This commit is contained in:
Simon Prévost 2020-11-11 08:10:42 -05:00
parent 555bfe7998
commit a2544dd51d
5 changed files with 33 additions and 9 deletions

24
CHANGELOG.md Normal file
View File

@ -0,0 +1,24 @@
# Changelog
## v1.6.0
### 1. Enhancements
- New review page that includes more context on translations
- Add recent projects section in projects listing
- Add Resx 2.0 format
- Add batch activity support for batch activity (sync, add translations)
- Add markdown conversation
- Add file comment UI on a translation page
### 2. Bug fixes
- Fix slow textarea and text input
- Fix large strings textarea that broke the UI
### 3. Refactor
- Add type-safe Gleam language to build linting rules
- Replae homemade gen_stage async jobs processor with Oban
- Upgrade to latest Elixir and latest EmberJS
- Use animated svg for skeleton UI instead of plain CSS

View File

@ -14,7 +14,7 @@
{{on "input" (fn this.changePath)}} {{on "input" (fn this.changePath)}}
local-class="textInput" local-class="textInput"
value={{this.renamedDocumentPath}} value={{this.renamedDocumentPath}}
/> >
</label> </label>
{{else}} {{else}}
<span local-class="item-toggle-edit"> <span local-class="item-toggle-edit">

View File

@ -15,7 +15,7 @@
value={{this.email}} value={{this.email}}
placeholder={{t "components.collaborator_create_form.email_placeholder"}} placeholder={{t "components.collaborator_create_form.email_placeholder"}}
data-test-new-collaborator-email data-test-new-collaborator-email
/> >
<AsyncButton <AsyncButton
@onClick={{perform this.submitTask}} @onClick={{perform this.submitTask}}

View File

@ -6,7 +6,7 @@
{{on "input" (fn this.setName)}} {{on "input" (fn this.setName)}}
local-class="textInput" local-class="textInput"
value={{this.name}} value={{this.name}}
/> >
<input <input
type="color" type="color"

View File

@ -79,12 +79,12 @@ export default class TranslationEditForm extends Component<Args> {
} }
@action @action
changeHTML(value: string) { async changeHTML(value: string) {
const previousText = this.args.value; const previousText = this.args.value;
this.args.onKeyUp?.(value); this.args.onKeyUp?.(value);
if (previousText !== value) if (previousText !== value)
(this.fetchLintMessagesTask as Task).perform(value); await (this.fetchLintMessagesTask as Task).perform(value);
} }
@action @action
@ -93,13 +93,13 @@ export default class TranslationEditForm extends Component<Args> {
} }
@action @action
changeText(event: Event) { async changeText(event: Event) {
const target = event.target as HTMLInputElement; const target = event.target as HTMLInputElement;
const previousText = this.args.value; const previousText = this.args.value;
this.args.onKeyUp?.(target.value); this.args.onKeyUp?.(target.value);
if (previousText !== target.value) if (previousText !== target.value)
(this.fetchLintMessagesTask as Task).perform(target.value); await (this.fetchLintMessagesTask as Task).perform(target.value);
} }
@restartableTask @restartableTask
@ -120,8 +120,8 @@ export default class TranslationEditForm extends Component<Args> {
} }
@action @action
replaceText(value: string) { async replaceText(value: string) {
this.args.onKeyUp?.(value); this.args.onKeyUp?.(value);
(this.fetchLintMessagesTask as Task).perform(value); await (this.fetchLintMessagesTask as Task).perform(value);
} }
} }