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

[#7255] Add category notes #8178

Merged
merged 7 commits into from
Apr 12, 2024
Merged

[#7255] Add category notes #8178

merged 7 commits into from
Apr 12, 2024

Commits on Apr 9, 2024

  1. Add Category#root

    Add method to the return the uppermost root category for a given child
    category.
    
    This will be useful for finding the root in the `current_klass` helper
    in `Admin::CategoriesController`. Needed in order to not required the
    `model_type` parameter for all controller actions.
    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    c71e5f1 View commit details
    Browse the repository at this point in the history
  2. Add Admin::CategoryController#show

    We don't have a show view so lets redirect to the edit form.
    
    This is needed as we will be adding notes to categories and after a
    concrete note is saved it redirects to the notable show action.
    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    3fa7877 View commit details
    Browse the repository at this point in the history
  3. Update Notable concern

    Update the `#all_notes` method to check if the current class is Taggable
    before combining tagged notes.
    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    cdbb7fc View commit details
    Browse the repository at this point in the history
  4. Add category_both_link helper

    This will be used in the admin UI when creating Notes for a given
    Category.
    
    We're not yet showing the public link as this depends on the type of
    category being used.
    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a0375cb View commit details
    Browse the repository at this point in the history
  5. Add Notable to Category

    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    45bbd70 View commit details
    Browse the repository at this point in the history
  6. Add rich text body to Category

    Will be used to allow rich text non-note styled content on the public
    category pages.
    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    08c2f4d View commit details
    Browse the repository at this point in the history
  7. Update changelog

    gbp committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    9c22e2d View commit details
    Browse the repository at this point in the history