feat: Allow super-admins to retrieve courses across organizations and update navigation link styles to text-sm and text-slate-600.

This commit is contained in:
2026-03-02 11:59:38 -03:00
parent 9abe631782
commit 420003f2d5
6 changed files with 26 additions and 16 deletions
@@ -42,9 +42,9 @@ export default function CourseEditorLayout({ children, activeTab }: CourseEditor
<Link
href={tab.href}
aria-current={isActive ? "page" : undefined}
className={`flex items-center gap-1.5 px-4 py-3 text-xs font-bold uppercase tracking-widest transition-all whitespace-nowrap flex-shrink-0 border-b-2 ${isActive
? "border-blue-600 dark:border-blue-500 bg-black/5 dark:bg-white/5 text-blue-600 dark:text-white"
: "border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white"
className={`nav-link-standard px-4 py-3 border-b-2 whitespace-nowrap ${isActive
? "border-blue-600 dark:border-blue-500 text-blue-600 dark:text-white"
: "border-transparent text-slate-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white"
}`}
>
<Icon className="w-4 h-4 flex-shrink-0" aria-hidden="true" />
+6 -6
View File
@@ -44,7 +44,7 @@ export function Navbar() {
<div className="flex items-center gap-4">
<Link
href="/"
className="nav-link-standard text-gray-500 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400"
className="nav-link-standard text-slate-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400"
>
<LayoutDashboard className="w-4 h-4" />
{t('nav.courses')}
@@ -52,7 +52,7 @@ export function Navbar() {
<Link
href="/library/assets"
className="nav-link-standard text-gray-500 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400"
className="nav-link-standard text-slate-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400"
>
<Library className="w-4 h-4" aria-hidden="true" />
{t('nav.library') || 'Library'}
@@ -64,7 +64,7 @@ export function Navbar() {
{user.organization_id === '00000000-0000-0000-0000-000000000001' && (
<Link
href="/admin"
className="text-xs font-black text-indigo-400 hover:text-indigo-300 transition-colors flex items-center gap-2 bg-indigo-500/10 px-3 py-1.5 rounded-lg border border-indigo-500/20 shadow-glow-sm uppercase tracking-widest"
className="text-sm font-black text-indigo-400 hover:text-indigo-300 transition-colors flex items-center gap-2 bg-indigo-500/10 px-3 py-1.5 rounded-lg border border-indigo-500/20 shadow-glow-sm uppercase tracking-wider"
>
<ShieldCheck className="w-4 h-4" aria-hidden="true" />
{t('nav.globalControl')}
@@ -72,14 +72,14 @@ export function Navbar() {
)}
<Link
href="/settings/webhooks"
className="nav-link-standard text-gray-400 hover:text-blue-400"
className="nav-link-standard text-slate-600 dark:text-gray-400 hover:text-blue-400"
>
<Webhook className="w-4 h-4" />
{t('nav.webhooks')}
</Link>
<Link
href="/profile"
className="nav-link-standard text-gray-400 hover:text-blue-400"
className="nav-link-standard text-slate-600 dark:text-gray-400 hover:text-blue-400"
>
<Settings className="w-4 h-4" />
{t('nav.profile')}
@@ -89,7 +89,7 @@ export function Navbar() {
<Link
href="/settings"
className="nav-link-standard text-gray-400 hover:text-blue-400"
className="nav-link-standard text-slate-600 dark:text-gray-400 hover:text-blue-400"
>
<Settings className="w-4 h-4" />
Settings