AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
823 stars 311 forks source link

A Proposal: A resource table component #2785

Closed kulturbande closed 3 months ago

kulturbande commented 5 months ago

What is this pull request for?

Add an experimental resource table component. The idea is to make it easier to create resource tables without duplicating the table structure and be in sync between the index view and the row partial.

Screenshots

An example: CleanShot 2024-03-09 at 16 00 32@2x

Checklist

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 95.55556% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 95.91%. Comparing base (8175627) to head (e353cff). Report is 28 commits behind head on main.

Files Patch % Lines
app/components/alchemy/admin/resource/table.rb 95.55% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2785 +/- ## ========================================== + Coverage 95.90% 95.91% +0.01% ========================================== Files 225 226 +1 Lines 6103 6173 +70 ========================================== + Hits 5853 5921 +68 - Misses 250 252 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

kulturbande commented 3 months ago

Maybe we need a bigger approach in creating REST - Interfaces in Alchemy. I will close the pull request for now.

kulturbande commented 1 month ago

I had a change of mind and try it again