-
Notifications
You must be signed in to change notification settings - Fork 0
feat(meetings): improve meeting join and registration filtering #198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
73 changes: 73 additions & 0 deletions
73
apps/lfx-one/src/app/modules/meetings/components/guest-form/guest-form.component.html
This file contains hidden or 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,73 @@ | ||
| <!-- Copyright The Linux Foundation and each contributor to LFX. --> | ||
| <!-- SPDX-License-Identifier: MIT --> | ||
|
|
||
| <div class="flex flex-col gap-4"> | ||
| <p class="font-semibold text-sm text-blue-900">Enter your information</p> | ||
|
|
||
| <form [formGroup]="form()" class="flex flex-col gap-4"> | ||
| <!-- Name + Email Row --> | ||
| <div class="flex flex-col md:flex-row gap-4"> | ||
| <div class="flex-1"> | ||
| <label class="flex items-center gap-1 text-xs text-blue-900 mb-2"> | ||
| <i class="fa-light fa-user text-gray-600"></i> | ||
| <span>Full Name</span> | ||
| <span class="text-red-500">*</span> | ||
| </label> | ||
| <lfx-input-text size="small" [form]="form()" control="name" placeholder="John Doe" styleClass="w-full" [attr.data-testid]="'guest-form-name'"> | ||
| </lfx-input-text> | ||
| </div> | ||
|
|
||
| <div class="flex-1"> | ||
| <label class="flex items-center gap-1 text-xs text-blue-900 mb-2"> | ||
| <i class="fa-light fa-envelope text-gray-600"></i> | ||
| <span>Email</span> | ||
| <span class="text-red-500">*</span> | ||
| </label> | ||
| <lfx-input-text | ||
| size="small" | ||
| [form]="form()" | ||
| control="email" | ||
| type="email" | ||
| placeholder="john.doe@example.com" | ||
| styleClass="w-full" | ||
| [attr.data-testid]="'guest-form-email'"> | ||
| </lfx-input-text> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Organization Row --> | ||
| <div> | ||
| <label class="flex items-center gap-1 text-xs text-blue-900 mb-2"> | ||
| <i class="fa-light fa-building text-gray-600"></i> | ||
| <span>Organization</span> | ||
| </label> | ||
| <lfx-input-text | ||
| size="small" | ||
| [form]="form()" | ||
| control="organization" | ||
| placeholder="Your Company" | ||
| styleClass="w-full" | ||
| [attr.data-testid]="'guest-form-organization'"> | ||
| </lfx-input-text> | ||
| </div> | ||
|
|
||
| <!-- Submit Button --> | ||
| @if (showSubmitButton()) { | ||
| <div class="flex justify-end md:justify-center"> | ||
| <lfx-button | ||
| class="w-full md:w-auto" | ||
| styleClass="w-full md:w-auto" | ||
| size="small" | ||
| [label]="submitButtonLabel()" | ||
| icon="fa-light fa-arrow-right-to-bracket" | ||
| severity="info" | ||
| [disabled]="form().invalid || !joinUrl() || isLoading()" | ||
| [href]="joinUrl()" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| [attr.data-testid]="'join-meeting-button-form'"> | ||
| </lfx-button> | ||
| </div> | ||
| } | ||
| </form> | ||
| </div> |
23 changes: 23 additions & 0 deletions
23
apps/lfx-one/src/app/modules/meetings/components/guest-form/guest-form.component.ts
This file contains hidden or 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,23 @@ | ||
| // Copyright The Linux Foundation and each contributor to LFX. | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| import { CommonModule } from '@angular/common'; | ||
| import { Component, input } from '@angular/core'; | ||
| import { FormGroup, ReactiveFormsModule } from '@angular/forms'; | ||
| import { ButtonComponent } from '@components/button/button.component'; | ||
| import { InputTextComponent } from '@components/input-text/input-text.component'; | ||
|
|
||
| @Component({ | ||
| selector: 'lfx-guest-form', | ||
| standalone: true, | ||
| imports: [CommonModule, ReactiveFormsModule, InputTextComponent, ButtonComponent], | ||
| templateUrl: './guest-form.component.html', | ||
| }) | ||
| export class GuestFormComponent { | ||
| // Inputs | ||
| public form = input.required<FormGroup>(); | ||
| public joinUrl = input<string | undefined>(undefined); | ||
| public isLoading = input<boolean>(false); | ||
| public showSubmitButton = input<boolean>(true); | ||
| public submitButtonLabel = input<string>('Join Meeting'); | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.