Skip to content

Conversation

@zanetagebka
Copy link
Contributor

Screenshot 2025-10-08 at 10 40 51 Screenshot 2025-10-08 at 10 31 24 Screenshot 2025-10-08 at 10 31 16

@zanetagebka zanetagebka requested a review from foton October 8, 2025 08:45
@zanetagebka zanetagebka self-assigned this Oct 8, 2025
@zanetagebka zanetagebka requested review from cabaktom and mreq October 9, 2025 08:02
end
ensure
@nullified_file_ids = nil
end
Copy link
Member

Choose a reason for hiding this comment

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

Chybi test. Folio::MediaSource nema zadny test? Prosim doplnit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pridano. Opraveno taky before_delete aby to rusilo taky sites_links pridane pres media_source


file = file_klass.find_by(id: file_id)
file && !file.can_be_used_on_site?(site)
end
Copy link
Member

Choose a reason for hiding this comment

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

Chybi test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pridano

Rails.logger.error("Folio::Tiptap site validation error: #{e.message}") if defined?(Rails)
end

def file_invalid_for_site?(placement_hash, file_klass, site)
Copy link
Member

Choose a reason for hiding this comment

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

Tohle nezni jako vec, ktera by mela byt na Folio::Tiptap::Node, ale nekde jinde

@zanetagebka zanetagebka requested a review from mreq October 14, 2025 11:58
Copy link
Member

@mreq mreq left a comment

Choose a reason for hiding this comment

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

Diky za doplneni testu 👍

Nelibi se mi obcasne predavani site do node pro potreby validace. Bud

  1. musi mit node vzdy record (ktery muze mit site a pak lze resit validace)
  2. nebo lepe omezme vyber obrazku jen na pouzitelne. Pak neni potreba validovat primo na node, ale staci obecne na zaznamu, jehoz je node skrze tiptap content soucasti.

Klidne si na to zavolejme, dik

@zanetagebka zanetagebka merged commit 59facfc into v7 Oct 16, 2025
jzlamal pushed a commit that referenced this pull request Oct 29, 2025
* fix: selectedOptions.map.map is not a function, add missing locale, add alert about missing alt
---------

Co-authored-by: Petr Marek <contact@petrmarek.eu>
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.

3 participants