Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Word.note field #756

Merged
merged 33 commits into from
Oct 13, 2020
Merged

Add Word.note field #756

merged 33 commits into from
Oct 13, 2020

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Oct 9, 2020

Resolves #755

This change is Reviewable

@codecov-io

This comment has been minimized.

@johnthagen johnthagen marked this pull request as draft October 9, 2020 16:31
@johnthagen johnthagen changed the title Add note field Add Word.note field Oct 9, 2020
@johnthagen
Copy link
Collaborator

@imnasnainaec Is there a way if a Note is entered that we give it more space? Either vertically or horizontally?

review

@johnthagen
Copy link
Collaborator

@imnasnainaec When I add a note, confirm and then edit again, the previous note contents are not shown.

step1

step2

@imnasnainaec
Copy link
Collaborator Author

@imnasnainaec Is there a way if a Note is entered that we give it more space? Either vertically or horizontally?

@johnthagen Just pushed a fix for that.

@imnasnainaec
Copy link
Collaborator Author

@imnasnainaec When I add a note, confirm and then edit again, the previous note contents are not shown.

@johnthagen Curious. I'm not experiencing the same behavior.

@johnthagen
Copy link
Collaborator

Just pushed a fix for that.

Confirmed fixed.

@johnthagen
Copy link
Collaborator

Curious. I'm not experiencing the same behavior.

I am no longer able to reproduce it either.

@johnthagen
Copy link
Collaborator


src/goals/ReviewEntries/ReviewEntriesComponent/CellComponents/CellColumns.tsx, line 15 at r8 (raw file):

enum SortStyle {
  // vernacular, noteText: neither have a customSort defined,
  // so there is currently no way to trigger their SortStyles.

Is this the column sort option in the table? I am able to click the arrow next to Note and have it sort. Should this not work?

@johnthagen
Copy link
Collaborator

johnthagen commented Oct 9, 2020


src/goals/ReviewEntries/ReviewEntriesComponent/CellComponents/CellColumns.tsx, line 11 at r8 (raw file):

There are a lot of uses of : any in this file. Can any of them be converted to a stronger type?

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 20 of 22 files reviewed, 1 unresolved discussion (waiting on @johnthagen)


src/goals/ReviewEntries/ReviewEntriesComponent/CellComponents/CellColumns.tsx, line 11 at r8 (raw file):

Previously, johnthagen wrote…

There are a lot of uses of : any in this file. Can any of them be converted to a stronger type?

Improved


src/types/word.tsx, line 39 at r8 (raw file):

Previously, johnthagen wrote…

(I could be mistaken about the purpose/function of this function).

For the bare type definitions, "" is best.

@johnthagen johnthagen marked this pull request as ready for review October 9, 2020 20:13
Copy link
Collaborator

@johnthagen johnthagen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r10, 1 of 1 files at r11.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first glance it looks good (might give it a more thorough look_. Should we handle the Lift Import/Export in a second PR?

Reviewable status: 16 of 22 files reviewed, all discussions resolved (waiting on @johnthagen)

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 16 of 22 files reviewed, 2 unresolved discussions (waiting on @imnasnainaec and @johnthagen)


Backend/Models/Word.cs, line 187 at r11 (raw file):

The language used the note is written in.

I'd probably write it as:
The bcp-47 code for the language the note is written in.


src/resources/translations.json, line 439 at r11 (raw file):

noNot

Changing ids isn't kind to Crowdin translators, so we should avoid it in the future. Now is probably a good time for this though. :)

@lgtm-com

This comment has been minimized.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 8 of 9 files at r12, 1 of 1 files at r13.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @imnasnainaec)

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 21 of 23 files reviewed, all discussions resolved (waiting on @jasonleenaylor and @johnthagen)


Backend/Models/Word.cs, line 187 at r11 (raw file):

Previously, jasonleenaylor (Jason Naylor) wrote…
The language used the note is written in.

I'd probably write it as:
The bcp-47 code for the language the note is written in.

Done.


src/resources/translations.json, line 439 at r11 (raw file):

Previously, jasonleenaylor (Jason Naylor) wrote…
noNot

Changing ids isn't kind to Crowdin translators, so we should avoid it in the future. Now is probably a good time for this though. :)

Affirmative.

Copy link
Collaborator

@johnthagen johnthagen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r14.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@johnthagen
Copy link
Collaborator

@jasonleenaylor

Should we handle the Lift Import/Export in a second PR?

I looked into LiftMerger.FinishEntry and when I use the example you sent us, the entry.Notes field wasn't filled in. I'm not super familiar with the SIL Lift parsing stack, so I think you'll probably need to take a look at this one. I would enjoy reviewing what you do to learn from though.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r15.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 19 files at r7, 10 of 19 files at r8, 1 of 2 files at r10, 1 of 1 files at r11, 7 of 9 files at r12, 1 of 1 files at r13, 2 of 2 files at r14, 2 of 3 files at r15, 1 of 1 files at r16.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@imnasnainaec imnasnainaec merged commit 3d880c8 into master Oct 13, 2020
@imnasnainaec imnasnainaec deleted the note-property branch October 13, 2020 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Notes field to Word
4 participants