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 overrides for the Chef card #1589

Merged
merged 23 commits into from
Jun 20, 2024
Merged

Add overrides for the Chef card #1589

merged 23 commits into from
Jun 20, 2024

Commits on Jun 20, 2024

  1. Add chef image field

    jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    7eb4c92 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4537b2e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3fdf066 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    adcdecd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    104b18e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    07ae0ef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ea38d70 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    329afb2 View commit details
    Browse the repository at this point in the history
  9. Lint

    jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    6625634 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    833978b View commit details
    Browse the repository at this point in the history
  11. Fix test cases

    jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    fe40766 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8be01d7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8674eed View commit details
    Browse the repository at this point in the history
  14. Lint

    jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    19c1716 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    de003e3 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    dfd9e61 View commit details
    Browse the repository at this point in the history
  17. Nest palette fields

    jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    8b5e23a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e2d0563 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    c9a3cb2 View commit details
    Browse the repository at this point in the history
  20. linting fix

    Co-authored-by: Jonathon Herbert <jonathon.herbert@guardian.co.uk>
    Divs-B and jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2d915af View commit details
    Browse the repository at this point in the history
  21. set criteria by collection type, style portrait thumbnails, validate …

    …on drop (#1591)
    
    * use hard coded constant so all trails are required to be portrait
    
    * allow grid to select either image type, add state for the dimension of the selected replacement image, use to style the ImageContainer
    
    * bug fix? aspect ratio test should use absolute difference
    
    * use the criteria to set the gird url, not a separate prop
    
    * export the default trail image criteria from constants
    
    * remove unused imports
    
    * shorted var name, comments about use of constant criteria
    
    * add selectCollectionType selector
    
    * provide the collection type to the InputImage
    
    * add feature switch for whether to allow portrait crops
    
    * if the feature switch is enabled, set criteria based on collection type
    
    * dont change the FeatureSwitch class - just hide the new one client-side
    
    * provide criteria to slideshow
    
    * dont need state for imageDims - can get from props.input.value
    
    * remove collection type from render
    
    * use horrendous css funcions to style the image containers for small portraits in slideshows
    
    * wrangle the css for ImageContainer
    
    * move the image container to own file
    
    * validate image error distinguishes between 'no crops' and 'no matching crops'
    
    * dont use the default criteria
    
    * move constants to constants/image
    
    * Card components check the collection type to set criteria for image drops
    
    * add TO DO about dragging images from card to card
    
    * cards check replacement image dimensions and style thumbnails to display portraits right
    
    * validate dimensions of incoming dragged images from other cards
    
    * undo switch change
    
    * more coherent comments
    
    * update tests to account for more specific error messaging
    
    * message correctly when crops fail validation of a criteria without aspect ratio
    
    * refactor validation to reduce duplication of dimension criteria checks
    
    * add a crop icon next to the Collection title if it uses 5:4 crops
    
    * remove import
    
    * don't show the crop icon with feature switch off
    
    * remove test value from COLLECTIONS_USING_PORTRAIT_TRAILS
    
    * define type for empty string array
    dblatcher authored and jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    26732b1 View commit details
    Browse the repository at this point in the history
  22. Patch after rebase

    jonathonherbert committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    1cf0783 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    564fab7 View commit details
    Browse the repository at this point in the history