Skip to content

Commit

Permalink
merge Release v0.10.0 into master (#4903)
Browse files Browse the repository at this point in the history
* tW Rewrite QA Fail Fixes (#4662)

* added tc-ui-toolkit version

* Merge branch 'develop' of https://github.com/unfoldingWord-dev/translationCore into feature-jay-4318

# Conflicts:
#	package-lock.json
#	package.json

* added code to improve check invalidation detection

* removed console logs

* Working on unit tests.

* path cleanup.

* loaded entire bibles

* removed unused code

* added tests

* fixed bug in loading book resource

* Initial User Story Template

* Fix for overwrite button on usfm import.

* simplified.

* simplified - undo.

* Fix to update project name when stepper is finished.

* fix to wait on promise.

* Working on tests.

* Fix for already imported projects.

* fix unit tests.

* fix unit tests.

* more work on online import.

* tweaking comments.

* updated feedback api endpoint (#4666)

* fix to handle double validate on online import.

* exposed more apis from tc

* fix to handle double validate on local import.

* comment fixes.

* more work on online import.

* renaming repo

* fixed deleting project file

* updated group menu when deleting project file

* working implementation without passing project repo name

* removed bad code from tc api

* added api documentation

* Addressed QA fail issues for 3670 (#4663)

* Added tc-ui-toolkit 0.9.13

* added new package-lock.json

* added new version of tc-ui-toolkit

* fixed case of Overwrite for consistancy.

* moved git functions to corresponding file

* Update repos via translationCore Submodule Updater

* added documentation and tests

* Update repos via translationCore Submodule Updater

* removed white space changes

* added small fixes

* added git mock tests

* added more tests

* Updated English udt references to ust

* Bumped version number

* Fix - #4613 - Removes the unneeded %language% file from the locale dir

* Adds test to make sure we only have two locale files

* Changes test to just make sure no file names contain %

* Fix syntax error breaking local project rename.

* Update repos via translationCore Submodule Updater

* separate out prompting from renaming.

* Update repos via translationCore Submodule Updater

* merging fixes.

* bumped tc-ui-toolkit version number to 0.9.15

* updated package-lock.json

* Feature - #3559 - Reimport and full-project invalidation check (#4562)

* progress

* Adding file handling

* Update to USFM3 import

* Fixes to reimport

* Work before reverting back

* Revert back to upstream to implement differently

* Changes to allow reimport

* Work on invalidations of all tools

* Work on invalidations of all tools

* Finalization of reimport code

* Code cleanup

* Code cleanup

* Invalidation of WA from import works

* Invalidation of WA from import works

* Update to tests

* Adds tests

* Tests

* Tests

* Fix to tests

* Fix onlineimport tests

* Fix linting issues

* After merge

* More fixes

* Fixes to import

* Fixes alignment from USFM3

* Fixed unit tests

* Fixes WA reimport

* Fix to Local Import test

* Refactors reimport functions to merge functions

* Reverts ProjectActions

* update

* test fixes

* Removed invalidation code

* Updates to workflow

* Update to tests

* Update tests

* Updated to work with the Overwrite renaming feature

* Adds hindi translations for QA

* Code cleanup

* fixes to leave merge project in imports folder.

* fixes for unit tests.

* fixes for project locations on overwrite/merge.

* fixes for online import.

* Removed test of en hi comparison

* Code cleanup

* fixes for online import snapshots.

* fix rename alert on selecting project.

* added delay after overwrite warning before project list is refreshed.

* New translations English-en_US.json (Hindi)

* Update repos via translationCore Submodule Updater

* adding tc-ui-toolkit 0.9.16

* New translations English-en_US.json (Hindi) (#4690)

* Update repos via translationCore Submodule Updater

* updated word-aligner to restore missing USFM tags.

* fix to initialize project details save button to enabled if fields are valid.

* USFM Export Bugfix (#4686)

* added initial fix

* fixed tests

* fixed tests

* added updated package-lock.json

* updated word-aligner to restore missing USFM tags.

* fix for Hindi duplicate keys.

* Fixes to get DCS renaming working.  Happy path working now.

* removed invalidated check/alignment count from tool cards

* added create new repo support.

* updated snapshots

* changed some console errors to warnings

* Fix syntax error breaking local project rename.

* Fix UI bug.

* Update repos via translationCore Submodule Updater

* fix findRepo to catch rejects.  Added some error handling

* fix findRepo to resolve results

* updated feedback to handle circular data logs correctly

* Update repos via translationCore Submodule Updater

* fixes to dialog text and button text.

* fixes to dialog text and button text.

* Fix unit test

* merge develop.

* merge develop.

* revert change.

* fix unit tests.

* Update repos via translationCore Submodule Updater

* unit test fixes.

* New translations English-en_US.json (Hindi)

* Update repos via translationCore Submodule Updater

* fixed spelling in locale

* Update repos via translationCore Submodule Updater

* Update repos via translationCore Submodule Updater

* New translations English-en_US.json (Hindi)

* New translations English-en_US.json (Hindi)

* fixes for git error handling.

* Update repos via translationCore Submodule Updater

* lint fix

* added fixes for test

* added unit tests for GogsApiHelpers.

* simplified some actions

* FeedbackDialog - fixed setting of initial message, added display on reduce state, added callback on feedback close.

* updated api docs

* updated api docs

* added reference to tool props docs

* init

* removed fs.setMockFS

* updated snapsot and return old implementation

* updated return types in docs

* updated tc-tool dependency

* worked on feedback logging

* console.log removes

* cleaned up the status bar container

* streamlined props in status bar container

* fixed feedback dialog disappearing

* bumped tc-tool version

* working on unit tests.

* working on unit tests.

* fix string.

* Added checks to make sure project belongs to current user and user is logged on.  working on unit tests.

* Update repos via translationCore Submodule Updater

* merged with develop

* updated tc-tool package

* QA Fail - #3559 - Fixes Local Reimport (#4716)

* Fixes for qaFail and other bugs

* Do all import deleting in Workflow

* Quick fix to update save location after overwrite merge.

* Fixes lint error

* fixed lint error.

* Made fixes to online import similar to local import.  Local import made fix to timing issue that would cause second project info prompt.

* working on unit tests.

* fix for not showing details page of import with valid project name.

* Fixed wrong translation key on button.

* Update repos via translationCore Submodule Updater

* New translations English-en_US.json (Hindi)

* added email to feedback and improved speed

* updated tc-ui-toolkit

* New translations English-en_US.json (Hindi) (#4726)

* Update repos via translationCore Submodule Updater

* Update repos via translationCore Submodule Updater

* working on updating origin on door43 upload.  Fix to remove remote before setting it.

* fix method name.

* New translations English-en_US.json (Hindi)

* Fix to use token to push to new repo.

* fix unit tests.

* New Crowdin translations (#4733)

* New translations English-en_US.json (Hindi)

* New translations English-en_US.json (Hindi)

* fix comment.

* Fix issue that Deleting Imports would throw an exception when folder did not exist.

* fix unit test

* fix unit test

* Made Greek info popup consistent throughout tC  (#4735)

* bumped tc-ui-toolkit version

* reduced tc app version to 0.10.0

* Update repos via translationCore Submodule Updater

* Update repos via translationCore Submodule Updater

* Update repos via translationCore Submodule Updater

* Update repos via translationCore Submodule Updater

* added timeout fix (#4739)

* fix for looking for duplicates if current project is in imports folder.

* Update repos via translationCore Submodule Updater

* fixes to handle all the project name formats and extract correct bible id.

* Fix for when project id changes on import.

* refactoring.

* lint fixes.

* updated unit tests.

* Removes 'Reimport Project' from project context menu

* Put back reimport_project to be removed automatically by crowdin

* fixed unit tests

* New translations English-en_US.json (Hindi)

* New Crowdin translations (#4762)

* New translations English-en_US.json (Hindi)

* New translations English-en_US.json (Hindi)

* New translations English-en_US.json (Hindi)

* Update repos via translationCore Submodule Updater

* Fix - #4763 - Fixes online import error

* New translations English-en_US.json (Hindi)

* Fixes test for Windows by using path.join

* New translations English-en_US.json (Hindi)

* Fixes test for Windows by using path.join

* Make the move from imports to projects sync

* Fix to clear out settings from reducers before import.

* Fix to clear out settings from reducers before import.

* Unit test fix.

* Clean up.

* revert tool

* Update repos via translationCore Submodule Updater

* Update repos via translationCore Submodule Updater

* merge latest wordAlignment

* Fix for bug that continue button on project details page started disabled on migration even though details were valid.

* Comment fix.

* updated WA

* base off release 0.10.0 and pull in changes from bugfix-klappy-4842.

* base off release 0.10.0 and pull in changes from bugfix-klappy-4842.

* Updated change log for v0.10.0 release.
  • Loading branch information
PhotoNomad0 authored Aug 16, 2018
1 parent 0132115 commit edc4676
Show file tree
Hide file tree
Showing 401 changed files with 34,322 additions and 9,302 deletions.
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
codecov:
ci:
- ci.door43.org
6 changes: 6 additions & 0 deletions .concourse/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -xe

npm run ci-test
./node_modules/.bin/codecov
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Story Explanation
### User Story
<!-- This is a short, simple description of the feature told from
the perspective of the person who desires the new capability -->

As a [type of user], I want [some goal] so that [some reason].

### Features / Specifications
<!-- What are the high level features that need to be completed? -->
- [ ]
- [ ]
- [ ]

### Definition of Done
<!-- This is all the conditions, or acceptance criteria, that a
software product must satisfy are met and ready to be
accepted by a user, customer, team, or consuming system. -->
- [ ]
- [ ]
- [ ]

<!--
## QA
### Fails
- [ ]
- [ ]
-->
## Additional Context
### Mockups
51 changes: 51 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Bug report
about: Create a report to help us improve

---

<!--
Do you want to ask a question? Are you looking for support? You can email our help desk at: [email protected]
-->

### Prerequisites

* Put an X between the brackets on this line if you have done all of the following:
<!-- Checked checkbox should look like this: [x] -->
- [ ] I have searched the [issues](https://github.com/unfoldingWord-dev/translationCore/issues) of this repository and believe that this is not a duplicate.

### Description

[Description of the issue]

### Steps to Reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Expected behavior:** [What you expect to happen]

**Actual behavior:** [What actually happens]

### Context
<!---
How has this issue affected you? What are you trying to accomplish?
Providing context helps us come up with a solution that is most useful in the real world.
-->

**Enviorment**
| Tech | Version |
|--------------|---------|
| tc | v0.?.? |
| build # | |
| OS | |


### Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Feature request
about: Suggest an idea for this project

---

<!--
Do you want to ask a question? Are you looking for support? You can email our helpdesk at [email protected]
-->

## Summary

One paragraph explanation of the feature.

## Motivation

Why are we doing this? What use cases does it support? What is the expected outcome?

## Specifications (If applicable)
A clear and concise description of the details about the feature that may or may not be obvious

## Additional context

Add any other context or screenshots about the feature request here.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test/output
/release
/docs/
/.env
/.vs/

# just in case people are lazy while writing tests
__tests__/output
Expand Down
12 changes: 0 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
[submodule "tC_apps/translationWords"]
path = tC_apps/translationWords
url = https://github.com/translationCoreApps/translationWords_Check_plugin.git
[submodule "tC_apps/ScripturePane"]
path = tC_apps/ScripturePane
url = https://github.com/translationCoreApps/ScripturePane.git
[submodule "tC_apps/TranslationHelps"]
path = tC_apps/TranslationHelps
url = https://github.com/translationCoreApps/translationHelps.git
[submodule "tC_apps/translationNotes"]
path = tC_apps/translationNotes
url = https://github.com/translationCoreApps/translationNotes_Check_plugin.git
[submodule "tC_apps/VerseCheck"]
path = tC_apps/VerseCheck
url = https://github.com/translationCoreApps/VerseCheck.git
[submodule "tC_resources"]
path = tC_resources
url = https://github.com/translationCoreApps/tC_Resources
Expand Down
68 changes: 34 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,40 @@ deploy:
all_branches: true

# develop branch
- provider: surge
project: "./release/overview"
domain: tc-develop.unfoldingword.surge.sh
skip_cleanup: true
on:
branch: develop

- provider: surge
project: "./release/linux-x64"
domain: linux.tc-develop.unfoldingword.surge.sh
skip_cleanup: true
on:
branch: develop

- provider: surge
project: "./release/macos-x64"
domain: macos.tc-develop.unfoldingword.surge.sh
skip_cleanup: true
on:
branch: develop

- provider: surge
project: "./release/win-x64"
domain: win64.tc-develop.unfoldingword.surge.sh
skip_cleanup: true
on:
branch: develop

- provider: surge
project: "./release/win-x32"
domain: win32.tc-develop.unfoldingword.surge.sh
skip_cleanup: true
on:
branch: develop
#- provider: surge
# project: "./release/overview"
# domain: tc-develop.unfoldingword.surge.sh
# skip_cleanup: true
# on:
# branch: develop

#- provider: surge
# project: "./release/linux-x64"
# domain: linux.tc-develop.unfoldingword.surge.sh
# skip_cleanup: true
# on:
# branch: develop

#- provider: surge
# project: "./release/macos-x64"
# domain: macos.tc-develop.unfoldingword.surge.sh
# skip_cleanup: true
# on:
# branch: develop
#
#- provider: surge
# project: "./release/win-x64"
# domain: win64.tc-develop.unfoldingword.surge.sh
# skip_cleanup: true
# on:
# branch: develop
#
#- provider: surge
# project: "./release/win-x32"
# domain: win32.tc-develop.unfoldingword.surge.sh
# skip_cleanup: true
# on:
# branch: develop

# sandbox branch
- provider: surge
Expand Down
108 changes: 108 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# tC API

translationCore (tC) can be extended by tools using the [tC Tool library](https://github.com/translationCoreApps/tc-tool).

For a description of how these and additional props are made available within tools see [tC Tool Props](https://github.com/translationCoreApps/tc-tool/blob/master/TOOL_PROPS.md).

Below is a description of *some* properties inject into tools.

## Method Props

### writeProjectData

```js
writeProjectData(filePath: string, data: string): Promise
```
Writes data to a project's `.apps` folder given a relative file path.
### readProjectData
```js
readProjectData(filePath: string): Promise<string>
```

Reads data from a project's `.apps` folder given a relative file path.

### readProjectDataSync

```js
readProjectDataSync(filePath: string): string
```

A synchronous form of `readProjectData`.

### projectDataPathExists

```js
projectDataPathExists(filePath: string): Promise<boolean>
```

Check if a path exists in a project's `.apps` folder given a relative file path.

### projectDataPathExistsSync

```js
projectDataPathExistsSync(filePath: string): boolean
```

A synchronous form of `projectDataPathExists`.

### deleteProjectFile

```js
deleteProjectFile(filePath: string): Promise
```
Deletes a file from a project's `.apps` folder given a relative file path.
### showDialog
```js
showDialog(message: string, confirmText: string, cancelText: string): Promise
```
Displays a modal dialog with a message.
The promise will resolve when the dialog is closed.
### showLoading
```js
showLoading(message: string)
```

Displays an asynchronous loading dialog.

### closeLoading

```js
closeLoading()
```

Closes the asynchronous loading dialog.

## Data Props

### contextId
Provides information regarding the currently selected context.

### targetVerseText
The target language text of the currently selected verse.

### sourceVerse
The source language verse objects of the currently selected verse.

### targetChapter
The target language chapter objects of the currently selected chapter.

### sourceChapter
The source language chapter objects of the currently selected chapter.

### targetBook
The target language book

### sourceBook
The source language book

### appLanguage
The language selected for application localization.
Loading

0 comments on commit edc4676

Please sign in to comment.