jcbowyer commited on
Commit
ddbd63e
·
verified ·
1 Parent(s): 7f63fd0

Deploy: Consolidated gold tables, fixed nginx docs routing

Browse files
CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at conduct@communityone.com or by [opening an issue on GitHub](https://github.com/getcommunityone/open-navigator/issues). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
44
+
45
+ For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
46
+
47
+ [homepage]: https://www.contributor-covenant.org
api/static/assets/index-thxspIrN.js ADDED
The diff for this file is too large to render. See raw diff
 
api/static/index.html CHANGED
@@ -85,7 +85,7 @@
85
  }
86
  }
87
  </script>
88
- <script type="module" crossorigin src="/assets/index-BiXTU5yP.js"></script>
89
  <link rel="stylesheet" crossorigin href="/assets/index-DHPGfrfk.css">
90
  </head>
91
  <body>
 
85
  }
86
  }
87
  </script>
88
+ <script type="module" crossorigin src="/assets/index-thxspIrN.js"></script>
89
  <link rel="stylesheet" crossorigin href="/assets/index-DHPGfrfk.css">
90
  </head>
91
  <body>
frontend/src/components/Layout.tsx CHANGED
@@ -21,6 +21,7 @@ import {
21
  MapPinIcon,
22
  HeartIcon,
23
  CodeBracketIcon,
 
24
  } from '@heroicons/react/24/outline'
25
  import { useAuth } from '../contexts/AuthContext'
26
  import { useLocation as useLocationContext } from '../contexts/LocationContext'
@@ -70,7 +71,7 @@ export default function Layout() {
70
  const [searchQuery, setSearchQuery] = useState('')
71
  const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
72
  const [showLoginMenu, setShowLoginMenu] = useState(false)
73
- const { user, isAuthenticated, login, logout, isLoading } = useAuth()
74
  const { location: userLocation, hasLocation } = useLocationContext()
75
 
76
  // Environment-aware URLs
@@ -300,8 +301,8 @@ export default function Layout() {
300
  onClick={() => { login('google'); setShowLoginMenu(false); }}
301
  className="flex items-center gap-3 w-full px-4 py-3 hover:bg-gray-100 transition-colors"
302
  >
303
- <div className="w-6 h-6 flex items-center justify-center">
304
- <svg viewBox="0 0 24 24" className="w-5 h-5">
305
  <path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
306
  <path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
307
  <path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
@@ -489,6 +490,33 @@ export default function Layout() {
489
 
490
  {/* Main content */}
491
  <div className="md:pl-64 pt-16">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
492
  <main>
493
  <Outlet />
494
  </main>
 
21
  MapPinIcon,
22
  HeartIcon,
23
  CodeBracketIcon,
24
+ XCircleIcon,
25
  } from '@heroicons/react/24/outline'
26
  import { useAuth } from '../contexts/AuthContext'
27
  import { useLocation as useLocationContext } from '../contexts/LocationContext'
 
71
  const [searchQuery, setSearchQuery] = useState('')
72
  const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
73
  const [showLoginMenu, setShowLoginMenu] = useState(false)
74
+ const { user, isAuthenticated, login, logout, isLoading, authError, clearAuthError } = useAuth()
75
  const { location: userLocation, hasLocation } = useLocationContext()
76
 
77
  // Environment-aware URLs
 
301
  onClick={() => { login('google'); setShowLoginMenu(false); }}
302
  className="flex items-center gap-3 w-full px-4 py-3 hover:bg-gray-100 transition-colors"
303
  >
304
+ <div className="w-6 h-6 flex items-center justify-center flex-shrink-0">
305
+ <svg viewBox="0 0 24 24" className="w-5 h-5" preserveAspectRatio="xMidYMid meet">
306
  <path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
307
  <path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
308
  <path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
 
490
 
491
  {/* Main content */}
492
  <div className="md:pl-64 pt-16">
493
+ {/* Auth Error Banner - Mobile Friendly */}
494
+ {authError && (
495
+ <div className="bg-red-50 border-l-4 border-red-500 p-4 m-4">
496
+ <div className="flex items-start">
497
+ <div className="flex-shrink-0">
498
+ <XCircleIcon className="h-5 w-5 text-red-500" aria-hidden="true" />
499
+ </div>
500
+ <div className="ml-3 flex-1">
501
+ <p className="text-sm font-medium text-red-800">
502
+ Login failed
503
+ </p>
504
+ <p className="mt-1 text-sm text-red-700">
505
+ {authError}
506
+ </p>
507
+ </div>
508
+ <div className="ml-auto pl-3">
509
+ <button
510
+ onClick={clearAuthError}
511
+ className="inline-flex rounded-md bg-red-50 p-1.5 text-red-500 hover:bg-red-100 focus:outline-none focus:ring-2 focus:ring-red-600 focus:ring-offset-2 focus:ring-offset-red-50"
512
+ >
513
+ <span className="sr-only">Dismiss</span>
514
+ <XMarkIcon className="h-5 w-5" aria-hidden="true" />
515
+ </button>
516
+ </div>
517
+ </div>
518
+ </div>
519
+ )}
520
  <main>
521
  <Outlet />
522
  </main>
frontend/src/contexts/AuthContext.tsx CHANGED
@@ -21,6 +21,8 @@ interface AuthContextType {
21
  logout: () => void;
22
  isAuthenticated: boolean;
23
  isLoading: boolean;
 
 
24
  }
25
 
26
  const AuthContext = createContext<AuthContextType | undefined>(undefined);
@@ -29,6 +31,7 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
29
  const [user, setUser] = useState<User | null>(null);
30
  const [token, setToken] = useState<string | null>(null);
31
  const [isLoading, setIsLoading] = useState(true);
 
32
 
33
  const API_URL = import.meta.env.PROD
34
  ? '/api'
@@ -43,7 +46,7 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
43
 
44
  if (urlError) {
45
  // Show OAuth error to user
46
- alert(`Login failed: ${urlError}`);
47
  // Clean URL (remove error from address bar)
48
  window.history.replaceState({}, document.title, window.location.pathname);
49
  setIsLoading(false);
@@ -109,6 +112,10 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
109
  setUser(null);
110
  };
111
 
 
 
 
 
112
  return (
113
  <AuthContext.Provider
114
  value={{
@@ -118,6 +125,8 @@ export const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) =>
118
  logout,
119
  isAuthenticated: !!user,
120
  isLoading,
 
 
121
  }}
122
  >
123
  {children}
 
21
  logout: () => void;
22
  isAuthenticated: boolean;
23
  isLoading: boolean;
24
+ authError: string | null;
25
+ clearAuthError: () => void;
26
  }
27
 
28
  const AuthContext = createContext<AuthContextType | undefined>(undefined);
 
31
  const [user, setUser] = useState<User | null>(null);
32
  const [token, setToken] = useState<string | null>(null);
33
  const [isLoading, setIsLoading] = useState(true);
34
+ const [authError, setAuthError] = useState<string | null>(null);
35
 
36
  const API_URL = import.meta.env.PROD
37
  ? '/api'
 
46
 
47
  if (urlError) {
48
  // Show OAuth error to user
49
+ setAuthError(urlError);
50
  // Clean URL (remove error from address bar)
51
  window.history.replaceState({}, document.title, window.location.pathname);
52
  setIsLoading(false);
 
112
  setUser(null);
113
  };
114
 
115
+ const clearAuthError = () => {
116
+ setAuthError(null);
117
+ };
118
+
119
  return (
120
  <AuthContext.Provider
121
  value={{
 
125
  logout,
126
  isAuthenticated: !!user,
127
  isLoading,
128
+ authError,
129
+ clearAuthError,
130
  }}
131
  >
132
  {children}
frontend/src/pages/HomeModern.tsx CHANGED
@@ -1465,6 +1465,11 @@ export default function HomeModern() {
1465
  <path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/>
1466
  </svg>
1467
  </a>
 
 
 
 
 
1468
  <a href="https://github.com/getcommunityone" target="_blank" rel="noopener noreferrer" className="text-gray-400 hover:text-white transition-colors" aria-label="GitHub">
1469
  <svg className="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
1470
  <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
 
1465
  <path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/>
1466
  </svg>
1467
  </a>
1468
+ <a href="https://communityone-hq.slack.com/" target="_blank" rel="noopener noreferrer" className="text-gray-400 hover:text-white transition-colors" aria-label="Slack">
1469
+ <svg className="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
1470
+ <path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"/>
1471
+ </svg>
1472
+ </a>
1473
  <a href="https://github.com/getcommunityone" target="_blank" rel="noopener noreferrer" className="text-gray-400 hover:text-white transition-colors" aria-label="GitHub">
1474
  <svg className="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
1475
  <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>