-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Remove in-app footer and add it to a new settings modal (#51)
- Loading branch information
1 parent
ac4d66c
commit 7e9dc0c
Showing
18 changed files
with
317 additions
and
243 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"specif-ai": patch | ||
--- | ||
|
||
Remove in-app footer and add it to a new settings modal | ||
|
||
- Deleted FooterComponent and its related files | ||
- Updated Header component to remove logout button and company logo | ||
- Refactored Settings component with improved UI and added logout functionality | ||
- Updated color scheme from secondary to slate in various components | ||
- Added company logo color configuration in environment files |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,5 @@ | |
<router-outlet /> | ||
</div> | ||
<app-toaster /> | ||
<app-footer /> | ||
</div> | ||
</div> |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
90 changes: 36 additions & 54 deletions
90
ui/src/app/components/layout/header/header.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,54 @@ | ||
<ng-container *ngIf="(authService.isLoggedIn$ | async) === true"> | ||
<div class="relative bg-secondary-950"> | ||
<div | ||
class="flex items-center justify-between py-4 px-8" | ||
> | ||
<div class="flex items-center justify-between py-4 px-8"> | ||
<div class="hidden lg:flex lg:items-center lg:pr-0.5"> | ||
<a routerLink="/apps"> | ||
<ng-container *ngIf="themeConfiguration.appLogo.length > 0;else showAppName"> | ||
<ng-container | ||
*ngIf="themeConfiguration.appLogo.length > 0; else showAppName" | ||
> | ||
<span class="sr-only">{{ themeConfiguration.appName }}</span> | ||
<img [src]="themeConfiguration.appLogo" class="mx-auto h-6" [alt]="themeConfiguration.appName"/> | ||
<img | ||
[src]="themeConfiguration.appLogo" | ||
class="mx-auto h-6" | ||
[alt]="themeConfiguration.appName" | ||
/> | ||
</ng-container> | ||
<ng-template #showAppName> | ||
<h1 class="text-2xl text-secondary-50">{{ themeConfiguration.appName }}</h1> | ||
<h1 class="text-2xl text-secondary-50"> | ||
{{ themeConfiguration.appName }} | ||
</h1> | ||
</ng-template> | ||
</a> | ||
</div> | ||
|
||
<!-- Logo --> | ||
<div | ||
class="flex items-center gap-4" | ||
> | ||
<img | ||
*ngIf="themeConfiguration.companyLogo.length > 0" | ||
class="h-3.5 opacity-50 w-auto" | ||
[src]="themeConfiguration.companyLogo" | ||
[alt]="themeConfiguration.companyName" | ||
/> | ||
<div class="grid gap-2 grid-cols-3"> | ||
|
||
<div | ||
class="flex justify-center items-center h-8 w-8 rounded-full bg-transparent text-gray-400 hover:text-gray-600 hover:bg-gray-200 cursor-pointer" | ||
role="button" | ||
tabindex="0" | ||
(click)="openSettingsModal()" | ||
(keydown.enter)="openSettingsModal()" | ||
(keydown.space)="openSettingsModal(); $event.preventDefault()" | ||
matTooltip="Settings" | ||
> | ||
<ng-icon name="heroCog8Tooth"/> | ||
</div> | ||
|
||
<div | ||
class="flex justify-center items-center h-8 w-8 rounded-full bg-transparent text-gray-400 hover:text-gray-600 hover:bg-gray-200 cursor-pointer" | ||
role="button" | ||
tabindex="0" | ||
(click)="openSelectRootDirectoryModal()" | ||
(keydown.enter)="openSelectRootDirectoryModal()" | ||
(keydown.space)="openSelectRootDirectoryModal(); $event.preventDefault()" | ||
matTooltip="Choose Destination Folder" | ||
> | ||
<ng-icon name="heroFolder"/> | ||
</div> | ||
<div | ||
class="flex justify-center items-center h-8 w-8 rounded-full bg-transparent text-gray-400 hover:text-gray-600 hover:bg-gray-200 cursor-pointer" | ||
role="button" | ||
tabindex="0" | ||
(click)="logout()" | ||
(keydown.enter)="logout()" | ||
(keydown.space)="logout(); $event.preventDefault()" | ||
matTooltip="Logout" | ||
> | ||
<ng-icon name="heroArrowRightOnRectangle"/> | ||
</div> | ||
|
||
<div class="flex items-center gap-4"> | ||
<div | ||
class="flex justify-center items-center h-8 w-8 rounded-full bg-transparent text-slate-400 hover:text-slate-600 hover:bg-slate-200 cursor-pointer" | ||
role="button" | ||
tabindex="0" | ||
(click)="openSelectRootDirectoryModal()" | ||
(keydown.enter)="openSelectRootDirectoryModal()" | ||
(keydown.space)=" | ||
openSelectRootDirectoryModal(); $event.preventDefault() | ||
" | ||
matTooltip="Choose Destination Folder" | ||
> | ||
<ng-icon name="heroFolder" /> | ||
</div> | ||
|
||
<button | ||
(click)="openSettingsModal()" | ||
(keydown.enter)="openSettingsModal()" | ||
(keydown.space)="openSettingsModal(); $event.preventDefault()" | ||
class="flex items-center justify-center font-medium opacity-100 transition-colors duration-300 px-3 py-2 gap-2 text-xs rounded-lg border border-slate-700 bg-transparent text-white hover:bg-slate-900" | ||
> | ||
<ng-icon name="heroCog8Tooth" strokeWidth="2" size="16" /> | ||
Settings | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="w-full px-8 py-3 flex items-center justify-start"> | ||
<app-breadcrumbs/> | ||
<app-breadcrumbs /> | ||
</div> | ||
</ng-container> |
This file contains 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
76 changes: 0 additions & 76 deletions
76
ui/src/app/components/llm-settings/llm-settings.component.html
This file was deleted.
Oops, something went wrong.
Empty file.
21 changes: 0 additions & 21 deletions
21
ui/src/app/components/llm-settings/llm-settings.component.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.