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

Feature/enhance interviews deletion #30

Merged
merged 48 commits into from
Oct 27, 2023

Conversation

buckhalt
Copy link
Member

@buckhalt buckhalt commented Oct 26, 2023

This PR applies refactoring from #25 to the InterviewsTable.

  • Enhanced delete functionality using a dialog which warns if interviews are not exported
  • Refactor of actions dropdown functionality. ActionsDropdown as custom component passed to DataTable

buckhalt and others added 30 commits October 11, 2023 10:30
prob needs to be moved elsewhere and used as a shared def. duplicated code for now
inc datatable, basic delete functionality
includes refactor of activate protocol procedure
lastUploadedProtocol is stale and needs fix
ported over from feature/participant deletion
removed but needed for interview/new route
more consistent with participants dashboard
provide whole dropdown to DataTable as actions prop, append this to other columns if provided, simplify confirm dialog component props interface, delete all button manages its own dialog state
stale data due to async setstates. fixes by making all info for dialog contained in one state
passing entire actions column to datatable, simpler delete props interface, calculating hasinterviews and hasunexportedinterviews from table component
…is refactor simplifies code in all instances of this component. parent

 components now just control opening the dialog and passing it the selected participants. the dialog itself handles calculating derived properties, deleting, and cancelling. this makes this logic reusable across instances and removes duplicated code
actionsdropdown manages dialog state, deleteprotocolsdialog manages actual deletion, calculating derived props, cancelling dialog
allows actionsdropdown and addparticipantbutton to use the same modal, but with separate instances and separately controlling state
pass actionsdropdown and optional header as simple props. let datatable handle passing row and data to the actionsdropdowns
@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fresco ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2023 8:04pm

no longer needed as tables will have custom actionsdropdowns defined
@buckhalt buckhalt marked this pull request as ready for review October 26, 2023 20:23
@jthrilly jthrilly merged commit c8d9b39 into main Oct 27, 2023
3 checks passed
@jthrilly jthrilly deleted the feature/enhance-interviews-deletion branch April 16, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants