-
Notifications
You must be signed in to change notification settings - Fork 53
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
🎬 Detail actions #302
🎬 Detail actions #302
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #302 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 68 68
Lines 4963 4997 +34
=========================================
+ Hits 4963 4997 +34
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @mrharpo,
Thank you for making the changes; everything looks great!
During testing on my local machine, I noticed one issue. The detail page does not reload after executing an action. As a result, there are inconsistencies between the data in the database and the data displayed in the view. I have some ideas on how to fix this and will do my best to assist you.
Co-authored-by: Jocelin Hounon <hounonj@gmail.com>
Fixes get_all_actions bug: change check order to remove forbidden action from detail page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution🎉.
There is a weird error on Python 3.8 in the CI that I need to investigate and resolve before merging this.
The python3.8 tests all passed, but it failed with It might be a transient runner error. Try re-running the job. |
* main: Update sqlalchemy-file requirement from <0.6.0,>=0.5.0 to >=0.5.0,<0.7.0 (jowilf#326) 🎬 Detail actions (jowilf#302) [pre-commit.ci] pre-commit autoupdate (jowilf#293) Bump fasteners from 0.18 to 0.19 (jowilf#322) Update httpx requirement from <0.25.0,>=0.23.3 to >=0.23.3,<0.26.0 (jowilf#314) Skip odmantic Test Suite on Python 3.8 Due to Segment Fault and Lack of Maintenance (jowilf#325) Bump ruff from 0.0.286 to 0.0.292 (jowilf#323) Update mkdocstrings[python] requirement (jowilf#315) Update arrow requirement from <1.3.0,>=1.2.3 to >=1.2.3,<1.4.0 (jowilf#316) Bump black from 23.7.0 to 23.9.1 (jowilf#317) Bump actions/checkout from 3 to 4 (jowilf#318) 🏓 Datatables options (jowilf#308)
Actions: Detail page
Adds custom action buttons to detail page.
BaseView
properties:exclude_actions_from_detail = []
exclude an action from that view's detail pageexclude_actions_from_list = []
exclude an action from that view's list pageExamples
Currently working from our app's feature branch: WGBH-MLA/chowda#158
List page
Optional icons
Detail page
☝️ Here, "Combine" is excluded from this detail view.
actions.py
Added:
action_btn_class
: action button class (default:btn-outline
)icon_class
: icon class for icon next to button (default:fa-solid fa-plus
)Templates
action.html
from list pageJS
actions.js
with custom js to apply to#modal-action
list.js
, with minor changesalerts.js
fromlist.js
Closes #301