-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADVAPP-917]: Improve the UI/UX design of the student profile page (#…
…1060) * init header and student profile section * chore: fix enforcement of copyright on all files * chore: fix code style * add tables livewire component * chore: fix enforcement of copyright on all files * added relation manager tabs and other component (wip) * chore: fix code style * Remove unuse blade and convert managerecord to relation manage component and other changes * Remove unuse code and comment * chore: fix code style * add access right in tab view and timeline (wip) * student timeline section * chore: fix enforcement of copyright on all files * chore: fix code style * remove unuse * chore: fix code style * Refactor classes and handle nullable things and dark mode * refactor classes and other changes * Fix test issue * change refence route * remove copy * Fix the filament timeline modal Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * add parrent access and modal open issue * change empty timeline message and remove border * Fix the address call Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * fix the table height * Update the font-weight of the student profile section Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Fix access and write tests Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * chore: fix enforcement of copyright on all files * More access tests Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Test for last premium feature Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * make sure permissions are put in place to render the components properly Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Delete the old ManageStudentInformation Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Test for ProgramsRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Fix the test name Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Add a test for EnrollmentsRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * chore: fix code style * Add test for StudentInteractionsRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Add test for StudentFilesRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * chore: fix code style * Add a test for and adjust permissions of StudentEngagementRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Remove unneeded permissions from tests Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Fix unneeded items in tests Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * add test for StudentAlertsRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Test for StudentTasksRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Update tests Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Remove files that are no longer needed Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Just load to the first 10 Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Prevent loading of more than 10 records Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Setup lazy loading Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * chore: fix code style * Change the default record previews to only show 5 Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Make sure the timeline preview only ever shows 5 Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Hide columns by default in StudentAlertsRelationManager Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> * Remove commented code Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> --------- Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> Co-authored-by: amit-canyon <amit-canyon@users.noreply.github.com> Co-authored-by: joelicatajr <joelicatajr@users.noreply.github.com> Co-authored-by: Kevin Ullyott <kevin.ullyott@canyongbs.com> Co-authored-by: Orrison <Orrison@users.noreply.github.com>
- Loading branch information
1 parent
ec5d46e
commit 02472c4
Showing
36 changed files
with
2,223 additions
and
406 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
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 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 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 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
63 changes: 63 additions & 0 deletions
63
app-modules/student-data-model/resources/views/components/header/index.blade.php
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,63 @@ | ||
{{-- | ||
<COPYRIGHT> | ||
Copyright © 2016-2024, Canyon GBS LLC. All rights reserved. | ||
Advising App™ is licensed under the Elastic License 2.0. For more details, | ||
see https://github.com/canyongbs/advisingapp/blob/main/LICENSE. | ||
Notice: | ||
- You may not provide the software to third parties as a hosted or managed | ||
service, where the service provides users with access to any substantial set of | ||
the features or functionality of the software. | ||
- You may not move, change, disable, or circumvent the license key functionality | ||
in the software, and you may not remove or obscure any functionality in the | ||
software that is protected by the license key. | ||
- You may not alter, remove, or obscure any licensing, copyright, or other notices | ||
of the licensor in the software. Any use of the licensor’s trademarks is subject | ||
to applicable law. | ||
- Canyon GBS LLC respects the intellectual property rights of others and expects the | ||
same in return. Canyon GBS™ and Advising App™ are registered trademarks of | ||
Canyon GBS LLC, and we are committed to enforcing and protecting our trademarks | ||
vigorously. | ||
- The software solution, including services, infrastructure, and code, is offered as a | ||
Software as a Service (SaaS) by Canyon GBS LLC. | ||
- Use of this software implies agreement to the license terms and conditions as stated | ||
in the Elastic License 2.0. | ||
For more information or inquiries please visit our website at | ||
https://www.canyongbs.com or contact us via email at legal@canyongbs.com. | ||
</COPYRIGHT> | ||
--}} | ||
@props([ | ||
'actions' => [], | ||
'breadcrumbs' => [], | ||
'heading', | ||
'subheading' => null, | ||
]) | ||
|
||
<header {{ $attributes->class(['fi-header flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between']) }}> | ||
<div> | ||
@if ($breadcrumbs) | ||
<x-filament::breadcrumbs | ||
class="mb-2 hidden sm:block" | ||
:breadcrumbs="$breadcrumbs" | ||
/> | ||
@endif | ||
</div> | ||
|
||
<div @class([ | ||
'flex shrink-0 items-center gap-3', | ||
'sm:mt-7' => $breadcrumbs, | ||
])> | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
@if ($actions) | ||
<x-filament::actions :actions="$actions" /> | ||
@endif | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_ACTIONS_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
</div> | ||
</header> |
166 changes: 166 additions & 0 deletions
166
app-modules/student-data-model/resources/views/components/page/index.blade.php
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,166 @@ | ||
{{-- | ||
<COPYRIGHT> | ||
Copyright © 2016-2024, Canyon GBS LLC. All rights reserved. | ||
Advising App™ is licensed under the Elastic License 2.0. For more details, | ||
see https://github.com/canyongbs/advisingapp/blob/main/LICENSE. | ||
Notice: | ||
- You may not provide the software to third parties as a hosted or managed | ||
service, where the service provides users with access to any substantial set of | ||
the features or functionality of the software. | ||
- You may not move, change, disable, or circumvent the license key functionality | ||
in the software, and you may not remove or obscure any functionality in the | ||
software that is protected by the license key. | ||
- You may not alter, remove, or obscure any licensing, copyright, or other notices | ||
of the licensor in the software. Any use of the licensor’s trademarks is subject | ||
to applicable law. | ||
- Canyon GBS LLC respects the intellectual property rights of others and expects the | ||
same in return. Canyon GBS™ and Advising App™ are registered trademarks of | ||
Canyon GBS LLC, and we are committed to enforcing and protecting our trademarks | ||
vigorously. | ||
- The software solution, including services, infrastructure, and code, is offered as a | ||
Software as a Service (SaaS) by Canyon GBS LLC. | ||
- Use of this software implies agreement to the license terms and conditions as stated | ||
in the Elastic License 2.0. | ||
For more information or inquiries please visit our website at | ||
https://www.canyongbs.com or contact us via email at legal@canyongbs.com. | ||
</COPYRIGHT> | ||
--}} | ||
@props([ | ||
'fullHeight' => false, | ||
]) | ||
|
||
@php | ||
use Filament\Pages\SubNavigationPosition; | ||
$subNavigation = $this->getCachedSubNavigation(); | ||
$subNavigationPosition = $this->getSubNavigationPosition(); | ||
$widgetData = $this->getWidgetData(); | ||
@endphp | ||
|
||
<div {{ $attributes->class(['fi-page', 'h-full' => $fullHeight]) }}> | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_START, scopes: $this->getRenderHookScopes()) }} | ||
|
||
<section @class(['flex flex-col gap-y-8 py-8', 'h-full' => $fullHeight])> | ||
@if ($header = $this->getHeader()) | ||
{{ $header }} | ||
@elseif ($heading = $this->getHeading()) | ||
@php | ||
$subheading = $this->getSubheading(); | ||
@endphp | ||
|
||
<x-student-data-model::header | ||
:actions="$this->getCachedHeaderActions()" | ||
:breadcrumbs="filament()->hasBreadcrumbs() ? $this->getBreadcrumbs() : []" | ||
> | ||
</x-student-data-model::header> | ||
@endif | ||
|
||
<div @class([ | ||
'flex flex-col gap-8' => $subNavigation, | ||
match ($subNavigationPosition) { | ||
SubNavigationPosition::Start, | ||
SubNavigationPosition::End | ||
=> 'md:flex-row md:items-start', | ||
default => null, | ||
} => $subNavigation, | ||
'h-full' => $fullHeight, | ||
])> | ||
@if ($subNavigation) | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_SELECT_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
<x-filament-panels::page.sub-navigation.select :navigation="$subNavigation" /> | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_SELECT_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
|
||
@if ($subNavigationPosition === SubNavigationPosition::Start) | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_START_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
<x-filament-panels::page.sub-navigation.sidebar :navigation="$subNavigation" /> | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_START_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
@endif | ||
|
||
@if ($subNavigationPosition === SubNavigationPosition::Top) | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_TOP_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
<x-filament-panels::page.sub-navigation.tabs :navigation="$subNavigation" /> | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_TOP_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
@endif | ||
@endif | ||
|
||
<div @class(['grid flex-1 auto-cols-fr gap-y-8', 'h-full' => $fullHeight])> | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_WIDGETS_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
@if ($headerWidgets = $this->getVisibleHeaderWidgets()) | ||
<x-filament-widgets::widgets | ||
class="fi-page-header-widgets" | ||
:columns="$this->getHeaderWidgetsColumns()" | ||
:data="$widgetData" | ||
:widgets="$headerWidgets" | ||
/> | ||
@endif | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_HEADER_WIDGETS_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
|
||
{{ $slot }} | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_FOOTER_WIDGETS_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
@if ($footerWidgets = $this->getVisibleFooterWidgets()) | ||
<x-filament-widgets::widgets | ||
class="fi-page-footer-widgets" | ||
:columns="$this->getFooterWidgetsColumns()" | ||
:data="$widgetData" | ||
:widgets="$footerWidgets" | ||
/> | ||
@endif | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_FOOTER_WIDGETS_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
</div> | ||
|
||
@if ($subNavigation && $subNavigationPosition === SubNavigationPosition::End) | ||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_END_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
<x-filament-panels::page.sub-navigation.sidebar :navigation="$subNavigation" /> | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_SUB_NAVIGATION_END_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
@endif | ||
</div> | ||
|
||
@if ($footer = $this->getFooter()) | ||
{{ $footer }} | ||
@endif | ||
</section> | ||
|
||
@if (!($this instanceof \Filament\Tables\Contracts\HasTable)) | ||
<x-filament-actions::modals /> | ||
@elseif ($this->isTableLoaded() && filled($this->defaultTableAction)) | ||
<div | ||
wire:init="mountTableAction(@js($this->defaultTableAction), @if (filled($this->defaultTableActionRecord)) | ||
@js($this->defaultTableActionRecord) | ||
@else | ||
{{ 'null' }} | ||
@endif @if (filled($this->defaultTableActionArguments)) | ||
, @js($this->defaultTableActionArguments) | ||
@endif)"> | ||
</div> | ||
@endif | ||
|
||
@if (filled($this->defaultAction)) | ||
<div wire:init="mountAction(@js($this->defaultAction) @if (filled($this->defaultActionArguments)) | ||
, @js($this->defaultActionArguments) | ||
@endif)"> | ||
</div> | ||
@endif | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::PAGE_END, scopes: $this->getRenderHookScopes()) }} | ||
|
||
<x-filament-panels::unsaved-action-changes-alert /> | ||
</div> |
56 changes: 56 additions & 0 deletions
56
...dules/student-data-model/resources/views/components/relation-managers-component.blade.php
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,56 @@ | ||
{{-- | ||
<COPYRIGHT> | ||
Copyright © 2016-2024, Canyon GBS LLC. All rights reserved. | ||
Advising App™ is licensed under the Elastic License 2.0. For more details, | ||
see https://github.com/canyongbs/advisingapp/blob/main/LICENSE. | ||
Notice: | ||
- You may not provide the software to third parties as a hosted or managed | ||
service, where the service provides users with access to any substantial set of | ||
the features or functionality of the software. | ||
- You may not move, change, disable, or circumvent the license key functionality | ||
in the software, and you may not remove or obscure any functionality in the | ||
software that is protected by the license key. | ||
- You may not alter, remove, or obscure any licensing, copyright, or other notices | ||
of the licensor in the software. Any use of the licensor’s trademarks is subject | ||
to applicable law. | ||
- Canyon GBS LLC respects the intellectual property rights of others and expects the | ||
same in return. Canyon GBS™ and Advising App™ are registered trademarks of | ||
Canyon GBS LLC, and we are committed to enforcing and protecting our trademarks | ||
vigorously. | ||
- The software solution, including services, infrastructure, and code, is offered as a | ||
Software as a Service (SaaS) by Canyon GBS LLC. | ||
- Use of this software implies agreement to the license terms and conditions as stated | ||
in the Elastic License 2.0. | ||
For more information or inquiries please visit our website at | ||
https://www.canyongbs.com or contact us via email at legal@canyongbs.com. | ||
</COPYRIGHT> | ||
--}} | ||
<div> | ||
@if ($this->table->getColumns()) | ||
<div class="flex flex-col gap-y-6"> | ||
<x-filament-panels::resources.tabs /> | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::RESOURCE_PAGES_MANAGE_RELATED_RECORDS_TABLE_BEFORE, scopes: $this->getRenderHookScopes()) }} | ||
|
||
{{ $this->table }} | ||
|
||
{{ \Filament\Support\Facades\FilamentView::renderHook(\Filament\View\PanelsRenderHook::RESOURCE_PAGES_MANAGE_RELATED_RECORDS_TABLE_AFTER, scopes: $this->getRenderHookScopes()) }} | ||
</div> | ||
@endif | ||
|
||
@if (count($relationManagers = $this->getRelationManagers())) | ||
<x-filament-panels::resources.relation-managers | ||
:active-locale="isset($activeLocale) ? $activeLocale : null" | ||
:active-manager="$this->activeRelationManager ?? array_key_first($relationManagers)" | ||
:managers="$relationManagers" | ||
:owner-record="$record" | ||
:page-class="static::class" | ||
/> | ||
@endif | ||
</div> |
Oops, something went wrong.