-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
portalicious: add registrations breadcrumb and handle not found v2 (#…
…5896) portalicious: add registrations breadcrumb and handle not found AB#30165 AB#30395 I combined these two tasks because I found one relying on the other, and figured that they wouldn't be a large set of changes even when combined. The design of the "registration not found" deviates from what is in Figma based on a convo with Tal. I also took the liberty of adding a "project not found" error.
- Loading branch information
Showing
12 changed files
with
151 additions
and
44 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
7 changes: 7 additions & 0 deletions
7
...out/components/page-layout-title-and-actions/page-layout-title-and-actions.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="flex items-start justify-between pb-9 pt-1"> | ||
<h1 class="min-w-48"> | ||
<ng-content select="[page-layout-title]"></ng-content> | ||
</h1> | ||
|
||
<ng-content select="[page-layout-actions]"></ng-content> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
...ayout/components/page-layout-title-and-actions/page-layout-title-and-actions.component.ts
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 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-page-layout-title-and-actions', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './page-layout-title-and-actions.component.html', | ||
styles: ``, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class PageLayoutTitleAndActionsComponent {} |
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
72 changes: 46 additions & 26 deletions
72
interfaces/Portalicious/src/app/components/page-layout/page-layout.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,37 +1,57 @@ | ||
<div class="flex min-h-screen flex-col"> | ||
<app-header [projectId]="projectId()" /> | ||
<div class="flex-1"> | ||
@if (projectId()) { | ||
<app-project-menu [projectId]="projectId()!" /> | ||
} | ||
@if (registrationId()) { | ||
<div class="mt-2 px-6 pb-8 pt-4 lg:px-24"> | ||
<app-registration-header | ||
[projectId]="projectId()!" | ||
[registrationId]="registrationId()!" | ||
<div class="flex flex-1 flex-col"> | ||
@if (project.isError()) { | ||
<div class="flex-1 px-6 py-8 lg:px-24"> | ||
<p-message | ||
severity="warn" | ||
styleClass="w-full" | ||
text="Project not found. Please check the URL and try again." | ||
i18n-text | ||
/> | ||
<p-card styleClass="mt-6"> | ||
<app-registration-menu | ||
[projectId]="projectId()!" | ||
[registrationId]="registrationId()!" | ||
/> | ||
<ng-content select="[registration-page]"></ng-content> | ||
</p-card> | ||
</div> | ||
} @else { | ||
<div class="px-6 py-8 lg:px-24"> | ||
@if (pageTitle()) { | ||
<div class="flex items-start justify-between pb-9 pt-1"> | ||
<h1 class="my-0 min-w-48"> | ||
{{ pageTitle() }} | ||
</h1> | ||
@if (projectId()) { | ||
<app-project-menu [projectId]="projectId()!" /> | ||
} | ||
<div class="flex-1 px-6 py-8 lg:px-24"> | ||
@if (registration.isError()) { | ||
<p-message | ||
severity="warn" | ||
styleClass="w-full" | ||
text="Registration not found. Please check the URL and try again." | ||
i18n-text | ||
/> | ||
} @else { | ||
@if (registrationId()) { | ||
<app-registration-header | ||
[projectId]="projectId()!" | ||
[registrationId]="registrationId()!" | ||
/> | ||
<p-card styleClass="mt-6"> | ||
<app-registration-menu | ||
[projectId]="projectId()!" | ||
[registrationId]="registrationId()!" | ||
/> | ||
<ng-content select="[registration-page]"></ng-content> | ||
</p-card> | ||
} @else { | ||
@if (pageTitle()) { | ||
<app-page-layout-title-and-actions> | ||
<ng-container page-layout-title> | ||
{{ pageTitle() }} | ||
</ng-container> | ||
<ng-container page-layout-actions> | ||
<ng-content select="[header-actions]"></ng-content> | ||
</ng-container> | ||
</app-page-layout-title-and-actions> | ||
} | ||
|
||
<ng-content select="[header-actions]"></ng-content> | ||
</div> | ||
<ng-content></ng-content> | ||
} | ||
} | ||
<ng-content></ng-content> | ||
</div> | ||
} | ||
<app-footer /> | ||
</div> | ||
<app-footer /> | ||
</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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -857,4 +857,4 @@ | |
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> | ||
</xliff> |
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 |
---|---|---|
|
@@ -646,4 +646,4 @@ | |
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> | ||
</xliff> |