Skip to content

Commit

Permalink
Alex krasn/receipt demo featture (#324)
Browse files Browse the repository at this point in the history
* feature: shortcuts icon toolbar (#288)

* fix: fix mime check bug for jpeg/jpg and tiff (#291)

* doc: update version to 2.0-2760166

* Update CHANGELOG.md

* feat: Add better error message for CORS  (#289)

* feat: refactor CORS error message

* refactor: remove unuse import and console

* refactor: fix Spanish message and add multilineMessage function in Alert

* refactor: change number to bullet points

* add div when return multiline message

* style:remove extra space

Co-authored-by: kunzheng <58841788+kunzms@users.noreply.github.com>

* fix: check ocrread results before getting image extent (#296)

* feat: enable download analyze script (#304)

* migrating from npm to yarn (#305)

* migrating from npm to yarn

* added Typescript

* updated azure-pipeliens.yml

* style:  deletes run in scripts

* Update CHANGELOG.md

* migrating to Fluent UI (#306)

Co-authored-by: kunzheng <58841788+kunzms@users.noreply.github.com>

* feat: add description - how to delete info (#292)

* feat: add description - how to delete info

* style: new line

* style: removes extra line

* fix: correction of text

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update statusBar.tsx

* refactor: use yarn in dockerfile (#309)

* refactor: use yarn in dockerfile

* refactor: upgrade node to 12.x

* feature: keep prediction in UI (#285)

* feature: we're keepin prediction in UI now

* feat: add protection for additional hidden elements for skipButton

* bugfix: - delete forgoten changes

* rerender on train model change + refactor

* fix: forgotten log , and comment

* fix: now rerender when setting changes and on new project

* refactor: delete unnecessary helper file

* fix: add  this.props.project check

Co-authored-by: stew-ro <60453211+stew-ro@users.noreply.github.com>

* fix: fix spelling correction for string match (#318)

* fix: capitalize python in analyze page (#320)

* fix: capitalize python in analyze page

* Alex krasn/docs update readme keyboard shortcuts (#313)

* fix:  deletes trailing whitespaces

* docs: added icon and updated description

* refactor: rephrasing and icon on new line

* feat: enable re-run OCR (#297)

* feat: enable re-run OCR (draft)

* add rerun OCR for single file functionality

* added tooltip

* add icon and changed position

* added - rerun OCR for all documents in project

* fix: remove idents

* feat: enable re-run OCR (draft)

* add rerun OCR for single file functionality

* added tooltip

* add icon and changed position

* added - rerun OCR for all documents in project

* refactor: delete redundant local state and rename

* fix: indent

* style: change submenu text

* docs: added manual test runbook

* style: idents

* refactor: rename dropdown class name

* renaming: re-run.. to run, files to documents..

* fix: style and grammar

* fix: run on not visited

* docs: new Test Runbook revision

* style: fix wording and spacing

* refactor: use anonymous wrapper function for onclick

Co-authored-by: kunzheng <58841788+kunzms@users.noreply.github.com>
Co-authored-by: Robert Stewart (eXcell <v-stewro@microsoft.com>

* feature: localization for canvas commandbar items #319 (#323)

* feat: localization all canvas commandbar items

* fix: labe in Layers - has to be plural

* style: - extra line

* fix: quick reordering tags (#322)

* fix: added debounce for quick reordering tags

* docs: added use case

* refactor: incresed dedounce interval so its not affect when reordering slowly

* decrease debounce time to 3000ms

* style: - indent

* add: show prediction component for both (receipts, predict) routes

* fixing icons + add alternative receipts icon

* + badge "Preview"

* Update README.md

* fix: error on copy APIKey undefined

* increase visibility of higlied values, separation valueNames and values ,misc styles fixes

* disable sidebar links

* fix: sigle quotes -> double

* fix: trailing whitespaces  + spelling "separator"

* redirect to receipt page + now showing python script download

* hide disabled links

* deletes prepended currency units

* fix: accessibility

* misc: styling and accessibility

Co-authored-by: kunzheng <58841788+kunzms@users.noreply.github.com>
Co-authored-by: tianxiang <60452964+tianxiangs@users.noreply.github.com>
Co-authored-by: stew-ro <60453211+stew-ro@users.noreply.github.com>
Co-authored-by: Robert Stewart (eXcell <v-stewro@microsoft.com>
  • Loading branch information
5 people authored Jun 25, 2020
1 parent 1768faa commit 7295839
Show file tree
Hide file tree
Showing 66 changed files with 14,657 additions and 20,842 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# FoTT Changelog

## 2.0.0-1c39800 (06-05-2020)
* feat: add description - how to delete info ([#292](https://github.com/microsoft/OCR-Form-Tools/commit/1c39800b1152f186dfc19834bb969abbc4fe0ac2))
* feat: enable download analyze script ([#304](https://github.com/microsoft/OCR-Form-Tools/commit/9c97ed0ff9b0aa72ec9a197fc92f3a5998135c36))
* fix: check ocrread results before getting image extent ([#296](https://github.com/microsoft/OCR-Form-Tools/commit/61dba02fc6f19eb854e1f499e475b1336e6171b9))
* feat: Add better error message for CORS ([#289](https://github.com/microsoft/OCR-Form-Tools/commit/8f210792b4d84e424b00499efb540b0e27e9fdad))

## 2.0.0-2760166 (05-30-2020)
* fix: fix mime check bug for jpeg/jpg and tiff ([#291](https://github.com/microsoft/OCR-Form-Tools/commit/2760166bcb809bbfdc207b01db49f00153318624))
* refactor: simplify shortcut descriptions ([#277](https://github.com/microsoft/OCR-Form-Tools/commit/db95b0e2510f6cef9bc7279fe0a19dce239c816e))

## 2.0.0-a5e4e07 (05-21-2020)
* feature: show table view when table icon is clicked ([#271](https://github.com/microsoft/OCR-Form-Tools/commit/a5e4e079d4c0d1c7c52e3b015c0ddf9b8601bbf2))

Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1
FROM node:10 AS build
FROM node:12 AS build

# Create app directory
WORKDIR /usr/src/app
Expand All @@ -10,12 +10,13 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
COPY yarn.lock ./
RUN yarn install

COPY . .

# Build the app for production
RUN npm run build
RUN yarn build

# Stage 2
# Use Nginx to serve files
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile.cdpx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM node:10 AS build
FROM node:12 AS build
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package*.json ./
RUN npm install
COPY yarn.lock ./
RUN yarn install
COPY . .
RUN npm run build
RUN yarn build
FROM nginx:1.18.0-alpine
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/run.sh .
Expand Down
375 changes: 189 additions & 186 deletions README.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ pool:
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
versionSpec: '12.x'
displayName: 'Install Node.js'

- script: |
npm install
npm run tslint
yarn install
yarn tslint
if [ $? -ne 0 ]; then
exit 1
fi
npm run compile
yarn compile
if [ $? -ne 0 ]; then
exit 1
fi
npm run build
yarn build
if [ $? -ne 0 ]; then
exit 1
fi
displayName: 'npm install and build'
displayName: 'yarn install and build'
Binary file added docs/images/keyboard-shortcuts-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions docs/manual_testing/manual-test-runbook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Test Runbook

## **Fix: enable to reorder tags quickly**

> ### Feature description ###
Enable reordering tags quickly

> ### Use Case ###
**`As`** a user\
**`I want`** to be able to move though tags list quickly\
**`So`** I can reorder long list of tags faster

> ### Acceptance criteria ###
#### Scenario One ####

**`Given`** I've opened a project containing documents with long tags list.\
**`When`** I clicking fast on tags buttons `'Move tag up'` or `'Move tag down'`\
**`Then`** it moves without visible jittering.

___
___

## **Enable rerun OCR for current or all documents**

> ### Feature description ###
Adding the following buttons to the canvas command bar:

- "Run OCR on current document"
- "Run OCR on all documents"

> ### Use Case ###
**`As`** a user
**`I want`** to rerun OCR on documents
**`So`** I can update OCR results

> ### Acceptance criteria ###
#### Scenario One ####

**`Given`** I've opened a project containing documents and I'm on the Tag Editor page.\
**`When`** I click "Run OCR on current document" in the canvas command bar\
**`Then`** I should see "Running OCR..." for the current docucment. When running OCR finishes, I should be able to view the document's updated OCR JSON file.

#### **Scenario Two** ####

**`Given`** I've opened a project containing documents and I'm on the Tag Editor page.\
**`When`** I click "Run OCR on all documents" in the canvas command bar\
**`Then`** I should see "Running OCR..." for all documents. When running OCR finishes for each document, I should be ale to view each document's updated OCR JSON file.
Loading

0 comments on commit 7295839

Please sign in to comment.