Conversation
force https
Replace card grid with a sticky sidebar + main column dossier layout. Sidebar shows When/Where/People/Weapon with browse links; main column holds description, legal record, outcome (dot indicators), witnesses, archival sources, and a new Related Cases section. - Add judge to select_related in crime_detail view - Compute related_crimes (cases sharing a victim or perpetrator, capped at 10) and annotate each with the shared person names - Make victim/perpetrator names link to the filtered data table - Embed a Leaflet mini-map in the sidebar with tooltip showing location, weapon, and people involved Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace floating filter panel and slide-out Alpine.js drawer with a two-zone layout: a fixed 288px sidebar and a full-height map area. - Sidebar: collapsible filter section (collapsed by default) above a scrollable case list that shows all loaded crimes on initial load - Clicking a marker replaces the case list with that location's crimes and reveals a back button to restore the full list - Color-by select auto-applies immediately on change; gender sub-option radio also auto-applies - Markers use bindTooltip (hover) instead of popups - Legend moved to bottom-right of the map area - Alpine.js dependency removed entirely Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Status column now renders plain comma-separated text (Fatal, Convicted, Pardoned) instead of coloured pill badges, matching the lighter tone of the table. Pagination was showing double-bordered boxes (individual item borders inside the shadow card). Fix by targeting the django-tables2 Bootstrap 4 classes (.page-item/.page-link) directly, removing borders from individual items, and using hover backgrounds instead. Active page uses site burgundy; a single top border separates pagination from table rows. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces enhancements to the crime detail view, updates the crime table to provide more nuanced status information, and improves the pagination UI for a more modern look. The most significant changes are grouped below.
Crime Detail View Enhancements:
crime_detailview now finds and displays related crimes that share a victim or perpetrator with the current crime, including the specific people shared between cases. This provides users with richer context and connections between cases.Crime Table Improvements:
CrimeTableinmapping_violence/tables.pyreplaces thefatalityboolean column with a newstatuscolumn. This column summarizes the crime's status by combining information about fatality, conviction, and pardon into a single, more descriptive field. [1] [2] [3]UI and UX Improvements:
theme/templates/crimes/list.htmlis restyled for better alignment, spacing, and accessibility, with clearer active/disabled states and improved visual hierarchy.Configuration Update:
'https'inconfig/settings.py, improving security for authentication flows.Code Quality:
Qfromdjango.db.modelsinmapping_violence/views.pyto support complex queries.