Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Deploy: Consolidated gold tables, fixed nginx docs routing
Browse files
frontend/src/pages/PolicyMap.tsx
CHANGED
|
@@ -196,43 +196,55 @@ export default function PolicyMap() {
|
|
| 196 |
</p>
|
| 197 |
</div>
|
| 198 |
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
onClick={handleBackToTopics}
|
| 203 |
-
className="flex items-center gap-2 px-4 py-2 rounded-md font-medium bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors"
|
| 204 |
-
>
|
| 205 |
-
← Back to Topics
|
| 206 |
-
</button>
|
| 207 |
-
)}
|
| 208 |
-
|
| 209 |
-
{/* View Mode Toggle - only show when topic is selected */}
|
| 210 |
-
{!showTopicSelector && (
|
| 211 |
-
<div className="flex items-center gap-2">
|
| 212 |
<button
|
| 213 |
onClick={() => setViewMode('map')}
|
| 214 |
-
className=
|
| 215 |
-
viewMode === 'map'
|
| 216 |
-
? 'bg-blue-600 text-white'
|
| 217 |
-
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
| 218 |
-
}`}
|
| 219 |
>
|
| 220 |
-
|
| 221 |
-
Map View
|
| 222 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
<button
|
| 224 |
-
onClick={
|
| 225 |
-
className=
|
| 226 |
-
viewMode === 'list'
|
| 227 |
-
? 'bg-blue-600 text-white'
|
| 228 |
-
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
| 229 |
-
}`}
|
| 230 |
>
|
| 231 |
-
|
| 232 |
-
List View
|
| 233 |
</button>
|
| 234 |
-
|
| 235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
</div>
|
| 237 |
</div>
|
| 238 |
|
|
@@ -789,6 +801,43 @@ export default function PolicyMap() {
|
|
| 789 |
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"></div>
|
| 790 |
<p className="mt-4 text-gray-600">Loading bills...</p>
|
| 791 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 792 |
) : (
|
| 793 |
<>
|
| 794 |
<div className="space-y-4 mb-6">
|
|
|
|
| 196 |
</p>
|
| 197 |
</div>
|
| 198 |
|
| 199 |
+
<div className="flex items-center gap-3">
|
| 200 |
+
{/* Back to Map button - show when in list view */}
|
| 201 |
+
{!showTopicSelector && viewMode === 'list' && (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
<button
|
| 203 |
onClick={() => setViewMode('map')}
|
| 204 |
+
className="flex items-center gap-2 px-4 py-2 rounded-md font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
>
|
| 206 |
+
← Back to Map
|
|
|
|
| 207 |
</button>
|
| 208 |
+
)}
|
| 209 |
+
|
| 210 |
+
{/* Back to Topics button */}
|
| 211 |
+
{!showTopicSelector && (
|
| 212 |
<button
|
| 213 |
+
onClick={handleBackToTopics}
|
| 214 |
+
className="flex items-center gap-2 px-4 py-2 rounded-md font-medium bg-gray-200 text-gray-700 hover:bg-gray-300 transition-colors"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
>
|
| 216 |
+
← Back to Topics
|
|
|
|
| 217 |
</button>
|
| 218 |
+
)}
|
| 219 |
+
|
| 220 |
+
{/* View Mode Toggle - only show when topic is selected */}
|
| 221 |
+
{!showTopicSelector && (
|
| 222 |
+
<div className="flex items-center gap-2">
|
| 223 |
+
<button
|
| 224 |
+
onClick={() => setViewMode('map')}
|
| 225 |
+
className={`flex items-center gap-2 px-4 py-2 rounded-md font-medium transition-colors ${
|
| 226 |
+
viewMode === 'map'
|
| 227 |
+
? 'bg-blue-600 text-white'
|
| 228 |
+
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
| 229 |
+
}`}
|
| 230 |
+
>
|
| 231 |
+
<MapIconOutline className="h-5 w-5" />
|
| 232 |
+
Map View
|
| 233 |
+
</button>
|
| 234 |
+
<button
|
| 235 |
+
onClick={() => setViewMode('list')}
|
| 236 |
+
className={`flex items-center gap-2 px-4 py-2 rounded-md font-medium transition-colors ${
|
| 237 |
+
viewMode === 'list'
|
| 238 |
+
? 'bg-blue-600 text-white'
|
| 239 |
+
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
|
| 240 |
+
}`}
|
| 241 |
+
>
|
| 242 |
+
<ListBulletIcon className="h-5 w-5" />
|
| 243 |
+
List View
|
| 244 |
+
</button>
|
| 245 |
+
</div>
|
| 246 |
+
)}
|
| 247 |
+
</div>
|
| 248 |
</div>
|
| 249 |
</div>
|
| 250 |
|
|
|
|
| 801 |
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"></div>
|
| 802 |
<p className="mt-4 text-gray-600">Loading bills...</p>
|
| 803 |
</div>
|
| 804 |
+
) : billsData && billsData.total === 0 ? (
|
| 805 |
+
<div className="bg-yellow-50 border border-yellow-200 rounded-lg p-8 text-center">
|
| 806 |
+
<div className="text-yellow-600 text-5xl mb-4">📭</div>
|
| 807 |
+
<h3 className="text-xl font-semibold text-yellow-900 mb-2">
|
| 808 |
+
No Bills Found
|
| 809 |
+
</h3>
|
| 810 |
+
<p className="text-yellow-700 mb-4">
|
| 811 |
+
{selectedState === 'LA' || selectedState === 'Louisiana' ? (
|
| 812 |
+
<>Louisiana data is not yet available in our database. We currently have data for Alabama, Georgia, Massachusetts, Washington, and Wisconsin.</>
|
| 813 |
+
) : (
|
| 814 |
+
<>No bills found for the selected filters. Try adjusting your search criteria or clearing filters.</>
|
| 815 |
+
)}
|
| 816 |
+
</p>
|
| 817 |
+
<div className="flex gap-3 justify-center">
|
| 818 |
+
{(selectedSession || selectedChamber || selectedBillType || selectedStatus || searchQuery) ? (
|
| 819 |
+
<button
|
| 820 |
+
onClick={() => {
|
| 821 |
+
setSearchQuery('')
|
| 822 |
+
setSelectedSession('')
|
| 823 |
+
setSelectedChamber('')
|
| 824 |
+
setSelectedBillType('')
|
| 825 |
+
setSelectedStatus('')
|
| 826 |
+
setPage(1)
|
| 827 |
+
}}
|
| 828 |
+
className="px-6 py-2 bg-yellow-600 text-white rounded-md hover:bg-yellow-700 transition-colors font-medium"
|
| 829 |
+
>
|
| 830 |
+
Clear Filters
|
| 831 |
+
</button>
|
| 832 |
+
) : null}
|
| 833 |
+
<button
|
| 834 |
+
onClick={() => setViewMode('map')}
|
| 835 |
+
className="px-6 py-2 bg-gray-200 text-gray-700 rounded-md hover:bg-gray-300 transition-colors font-medium"
|
| 836 |
+
>
|
| 837 |
+
Back to Map
|
| 838 |
+
</button>
|
| 839 |
+
</div>
|
| 840 |
+
</div>
|
| 841 |
) : (
|
| 842 |
<>
|
| 843 |
<div className="space-y-4 mb-6">
|
website/.docusaurus/client-modules.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
export default [
|
| 2 |
require("/home/developer/projects/open-navigator/website/.docusaurus/docusaurus-plugin-css-cascade-layers/default/layers.css"),
|
| 3 |
-
require("/home/developer/projects/open-navigator/website/node_modules/@docusaurus/plugin-google-gtag/lib/gtag"),
|
| 4 |
require("/home/developer/projects/open-navigator/website/node_modules/infima/dist/css/default/default.css"),
|
| 5 |
require("/home/developer/projects/open-navigator/website/node_modules/@docusaurus/theme-classic/lib/prism-include-languages"),
|
| 6 |
require("/home/developer/projects/open-navigator/website/node_modules/@docusaurus/theme-classic/lib/nprogress"),
|
|
|
|
| 1 |
export default [
|
| 2 |
require("/home/developer/projects/open-navigator/website/.docusaurus/docusaurus-plugin-css-cascade-layers/default/layers.css"),
|
|
|
|
| 3 |
require("/home/developer/projects/open-navigator/website/node_modules/infima/dist/css/default/default.css"),
|
| 4 |
require("/home/developer/projects/open-navigator/website/node_modules/@docusaurus/theme-classic/lib/prism-include-languages"),
|
| 5 |
require("/home/developer/projects/open-navigator/website/node_modules/@docusaurus/theme-classic/lib/nprogress"),
|
website/.docusaurus/site-metadata.json
CHANGED
|
@@ -22,14 +22,9 @@
|
|
| 22 |
"name": "@docusaurus/plugin-content-pages",
|
| 23 |
"version": "3.10.0"
|
| 24 |
},
|
| 25 |
-
"docusaurus-plugin-
|
| 26 |
"type": "package",
|
| 27 |
-
"name": "@docusaurus/plugin-
|
| 28 |
-
"version": "3.10.0"
|
| 29 |
-
},
|
| 30 |
-
"docusaurus-plugin-sitemap": {
|
| 31 |
-
"type": "package",
|
| 32 |
-
"name": "@docusaurus/plugin-sitemap",
|
| 33 |
"version": "3.10.0"
|
| 34 |
},
|
| 35 |
"docusaurus-plugin-svgr": {
|
|
|
|
| 22 |
"name": "@docusaurus/plugin-content-pages",
|
| 23 |
"version": "3.10.0"
|
| 24 |
},
|
| 25 |
+
"docusaurus-plugin-debug": {
|
| 26 |
"type": "package",
|
| 27 |
+
"name": "@docusaurus/plugin-debug",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"version": "3.10.0"
|
| 29 |
},
|
| 30 |
"docusaurus-plugin-svgr": {
|