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

Implement Grammatical Category / Part of Speech #2245

Merged
merged 33 commits into from
Jun 15, 2023
Merged

Implement Grammatical Category / Part of Speech #2245

merged 33 commits into from
Jun 15, 2023

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Jun 5, 2023

Add grammatical category to backend model;
Only enable grammatical category in projects that import senses with grammatical info;
Display grammatical category in frontend as "Part of speech":

  • DataEntry: another column in SenseDialog and VernDialog;
  • MergeDups: a small colored icon in a sense's upper-left corner;
  • ReviewEntries: a new column between glosses and semantic domains

Resolves the first part of #604
Also, fixes #976, fixes #2274

This change is Reviewable

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2023

Codecov Report

Patch coverage: 65.00% and project coverage change: -13.44 ⚠️

Comparison is base (f27e387) 58.85% compared to head (b874969) 45.41%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2245       +/-   ##
===========================================
- Coverage   58.85%   45.41%   -13.44%     
===========================================
  Files         236      196       -40     
  Lines        7779     3928     -3851     
  Branches      502      510        +8     
===========================================
- Hits         4578     1784     -2794     
+ Misses       2830     1772     -1058     
- Partials      371      372        +1     
Flag Coverage Δ
backend ?
frontend 45.41% <65.00%> (+1.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/Buttons/FlagButton.tsx 41.17% <ø> (ø)
src/components/Buttons/IconButtonWithTooltip.tsx 100.00% <ø> (ø)
...DataEntryTable/EntryCellComponents/DeleteEntry.tsx 33.33% <ø> (ø)
...y/DataEntryTable/EntryCellComponents/EntryNote.tsx 60.00% <ø> (ø)
src/components/Dialogs/ButtonConfirmation.tsx 42.85% <ø> (ø)
src/components/Dialogs/CancelConfirmDialog.tsx 100.00% <ø> (ø)
src/components/Dialogs/DeleteEditTextDialog.tsx 23.80% <ø> (ø)
src/components/Dialogs/EditTextDialog.tsx 26.66% <ø> (ø)
src/components/Login/LoginPage/LoginComponent.tsx 58.62% <ø> (ø)
...rc/components/Login/SignUpPage/SignUpComponent.tsx 47.82% <ø> (ø)
... and 40 more

... and 43 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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 15 of 29 files at r1, 52 of 75 files at r2, all commit messages.
Reviewable status: 67 of 95 files reviewed, all discussions resolved (waiting on @imnasnainaec)


src/components/Buttons/PartOfSpeechButton.tsx line 38 at r2 (raw file):

    <IconButtonWithTooltip
      buttonId={props.buttonId}
      icon={<Square fontSize="small" sx={{ color }} />}

What about Hexagon? Circle was too easily confused with record, but Square also looks like Stop when playing.

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 5 of 29 files at r1, 23 of 75 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)


src/goals/ReviewEntries/ReviewEntriesComponent/CellComponents/SenseCell.tsx line 15 at r2 (raw file):

export default function SenseCell(
  props: SenseCellProps & FieldParameterStandard

🤦

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.

:lgtm:

Reviewed 4 of 4 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@imnasnainaec imnasnainaec enabled auto-merge (squash) June 15, 2023 15:11
@imnasnainaec imnasnainaec merged commit 5830cff into master Jun 15, 2023
@imnasnainaec imnasnainaec deleted the gramma branch June 15, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export data - 403 error seen Console error during npm run test-frontend -- VernDialog
3 participants