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

Suggestion feedback and accepting altered suggestions #4659

Merged
merged 26 commits into from
Apr 29, 2016

Commits on Apr 29, 2016

  1. Adjust suggestions UI for pluralform units

    - Put time under all plural forms;
    - Show buttons only once;
    - Show user avatar only once;
    
    Fix translate#4688
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    335baa2 View commit details
    Browse the repository at this point in the history
  2. Support rejecting/accepting suggestions with comments

    - Add `body` to xhr handlers in UnitAPI.js;
    - Save comments via UnsecureCommentForm;
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    4060a85 View commit details
    Browse the repository at this point in the history
  3. Add suggestion feedback form React component

    This commit adds accept/reject white icons used in the form.
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    350ac7f View commit details
    Browse the repository at this point in the history
  4. Show suggestion feedback form

    - Edit css styles to render form properly;
    - Adjust editor HTML template;
    - Add JS handlers to work with suggestion feedback form;
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    a99475c View commit details
    Browse the repository at this point in the history
  5. Add backend support for suggestion alterations via submit

    Accepting a suggestion with alteration can be handled as:
    - accepting the suggestion without alterations;
    - editing accepted suggestion and submit new translation.
    Refs. translate#4629
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    9250767 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e4a49a1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    96577ee View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    64fd646 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c1b2c7d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d7bf7a9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6726e3c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c053133 View commit details
    Browse the repository at this point in the history
  13. Set unit.state to TRANSLATED before altering accepted suggestion

    If suggestion is provided in submit request data we accept this suggestion
    before submitting. When we calculate updated_fields during submission
    we should cout unit.state as already TRANSLATED.
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    526fc49 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4c3c615 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3e8ab9a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c001c11 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    668d228 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ad3879e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    dfae55d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    2bd73b6 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    22746b6 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ef12779 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    727c254 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    cedec4b View commit details
    Browse the repository at this point in the history
  25. Bind component event handlers

    It allows to refer to `this` in the handlers instead of `PTL.editor`.
    ta2-1 committed Apr 29, 2016
    Configuration menu
    Copy the full SHA
    dd4e1c4 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c099ab4 View commit details
    Browse the repository at this point in the history