Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9afac54
feat: partial work on visa request view
emlimlf Apr 10, 2026
5ce8e26
feat: added endpoint and ui for visa and travel fund requests list
emlimlf Apr 10, 2026
b9bb9da
chore: partial work on the travel funding application dialog
emlimlf Apr 10, 2026
c361957
chore: added all the steps ui for the travel fund application
emlimlf Apr 10, 2026
d530927
feat: added stub travel fund application submission endpoint
emlimlf Apr 10, 2026
0fc4478
feat: added the ui for the visa request application dialog
emlimlf Apr 10, 2026
3d5913f
feat: added stub endpoint for submitting visa request application
emlimlf Apr 10, 2026
cad8c69
Merge branch 'main' into feat/visa-tf-request-ui
emlimlf Apr 13, 2026
a3d62c3
fix(review): address PR #415 review feedback
emlimlf Apr 13, 2026
5d5c6a9
fix: address pr issue
emlimlf Apr 13, 2026
e032655
Merge branch 'main' into feat/visa-tf-request-ui
emlimlf Apr 14, 2026
7df661f
chore: remove the me prefix on the events routes
emlimlf Apr 14, 2026
ee67e08
fix: coderabbit comments
emlimlf Apr 14, 2026
be6758a
Merge branch 'main' into feat/visa-tf-request-ui
emlimlf Apr 15, 2026
e29db49
fix: error caused by incorrect merge
emlimlf Apr 15, 2026
9d93ab7
fix(review): address PR #415 review feedback
emlimlf Apr 15, 2026
7a30072
fix(review): address PR #415 review feedback
emlimlf Apr 15, 2026
d6f5ca3
Merge branch 'main' into feat/visa-tf-request-ui
emlimlf Apr 15, 2026
07d17b9
fix: pr issues
emlimlf Apr 15, 2026
df73d24
chore: fix lazy loading pagination signal
emlimlf Apr 16, 2026
e294652
chore: update the visa request terms text
emlimlf Apr 16, 2026
5dc1f66
Merge branch 'main' into feat/visa-tf-request-ui
asithade Apr 16, 2026
266c4b7
fix(events): emit initial form state, handle load-more errors, and us…
emlimlf Apr 16, 2026
6a6aa33
Merge branch 'feat/visa-tf-request-ui' of github.com:linuxfoundation/…
emlimlf Apr 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions apps/lfx-one/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,13 @@ export const routes: Routes = [
path: 'profile',
loadChildren: () => import('./modules/profile/profile.routes').then((m) => m.PROFILE_ROUTES),
},
{
path: 'me/events',
loadChildren: () => import('./modules/events/events.routes').then((m) => m.EVENTS_ROUTES),
},
{
path: 'me/training',
loadChildren: () => import('./modules/trainings/trainings.routes').then((m) => m.TRAINING_ROUTES),
},
{
path: 'events',
data: { lens: 'foundation' },
loadChildren: () => import('./modules/events/events.routes').then((m) => m.FOUNDATION_EVENTS_ROUTES),
loadChildren: () => import('./modules/events/events.routes').then((m) => m.EVENTS_ROUTES),
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class MainLayoutComponent {
{
label: 'My Events',
icon: 'fa-light fa-ticket',
routerLink: '/me/events',
routerLink: '/events',
},
{
label: 'My ' + COMMITTEE_LABEL.plural,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ export class EventsTopBarComponent {
.subscribe(() => {
this.searchForm.get('foundation')?.setValue(null, { emitEvent: false });
});

// Clear status when the available options change (e.g. switching between event tabs
// and visa/TF tabs which have different status sets).
toObservable(this.statusOptions)
.pipe(skip(1), takeUntilDestroyed())
.subscribe(() => {
this.searchForm.get('status')?.setValue(null);
});

// Clear role when the role filter is hidden so stale values don't persist.
toObservable(this.showRoleFilter)
.pipe(skip(1), takeUntilDestroyed())
.subscribe((show) => {
if (!show) {
this.searchForm.get('role')?.setValue(null);
}
});
}

public clearSearch(): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Copyright The Linux Foundation and each contributor to LFX. -->
<!-- SPDX-License-Identifier: MIT -->

@if (isFoundationLens()) {
<lfx-foundation-event-dashboard />
} @else {
<lfx-my-events-dashboard />
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT

import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
import { LensService } from '@app/shared/services/lens.service';
import { FoundationEventDashboardComponent } from '../foundation-event-dashboard/foundation-event-dashboard.component';
import { MyEventsDashboardComponent } from '../my-events-dashboard/my-events-dashboard.component';

@Component({
selector: 'lfx-events-dashboard',
imports: [MyEventsDashboardComponent, FoundationEventDashboardComponent],
templateUrl: './events-dashboard.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class EventsDashboardComponent {
private readonly lensService = inject(LensService);

protected readonly isFoundationLens = computed(() => this.lensService.activeLens() === 'foundation');
}
11 changes: 1 addition & 10 deletions apps/lfx-one/src/app/modules/events/events.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ import { authGuard } from '@shared/guards/auth.guard';
export const EVENTS_ROUTES: Routes = [
{
path: '',
loadComponent: () => import('./my-events-dashboard/my-events-dashboard.component').then((m) => m.MyEventsDashboardComponent),
canActivate: [authGuard],
data: { preload: true, preloadDelay: 1500 },
},
];

export const FOUNDATION_EVENTS_ROUTES: Routes = [
{
path: '',
loadComponent: () => import('./foundation-event-dashboard/foundation-event-dashboard.component').then((m) => m.FoundationEventDashboardComponent),
loadComponent: () => import('./events-dashboard/events-dashboard.component').then((m) => m.EventsDashboardComponent),
canActivate: [authGuard],
data: { preload: true, preloadDelay: 1500 },
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
<!-- Copyright The Linux Foundation and each contributor to LFX. -->
<!-- SPDX-License-Identifier: MIT -->

<form [formGroup]="form" class="flex flex-col gap-4" data-testid="about-me-form">
<!-- Row 1: First Name | Last Name -->
<div class="grid grid-cols-2 gap-4">
<div class="flex flex-col gap-1">
<label for="about-me-first-name" class="text-sm font-medium text-gray-700"> First Name <span class="text-red-500">*</span> </label>
<lfx-input-text
[form]="form"
control="firstName"
id="about-me-first-name"
size="small"
placeholder="Jane"
styleClass="w-full"
dataTest="about-me-first-name" />
@if (form.get('firstName')?.invalid && form.get('firstName')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-first-name-error">First name is required</span>
}
</div>
<div class="flex flex-col gap-1">
<label for="about-me-last-name" class="text-sm font-medium text-gray-700"> Last Name <span class="text-red-500">*</span> </label>
<lfx-input-text
[form]="form"
control="lastName"
id="about-me-last-name"
size="small"
placeholder="Smith"
styleClass="w-full"
dataTest="about-me-last-name" />
@if (form.get('lastName')?.invalid && form.get('lastName')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-last-name-error">Last name is required</span>
}
</div>
</div>

<!-- Row 2: Email | Citizenship Country -->
<div class="grid grid-cols-2 gap-4">
<div class="flex flex-col gap-1">
<label for="about-me-email" class="text-sm font-medium text-gray-700">Email</label>
<lfx-input-text [form]="form" control="email" id="about-me-email" type="email" size="small" styleClass="w-full" dataTest="about-me-email" />
</div>
<div class="flex flex-col gap-1">
<label for="about-me-citizenship-country" class="text-sm font-medium text-gray-700">
What country are you a citizen of? <span class="text-red-500">*</span>
</label>
<lfx-select
[form]="form"
control="citizenshipCountry"
[options]="countryOptions"
placeholder="Select country"
[filter]="true"
styleClass="w-full"
dataTest="about-me-citizenship-country" />
@if (form.get('citizenshipCountry')?.invalid && form.get('citizenshipCountry')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-citizenship-country-error">Country of citizenship is required</span>
}
</div>
</div>

<!-- Row 3: Profile Link | Company -->
<div class="grid grid-cols-2 gap-4">
<div class="flex flex-col gap-1">
<label for="about-me-profile-link" class="text-sm font-medium text-gray-700">
Link to your LinkedIn, personal website or GitHub page <span class="text-red-500">*</span>
</label>
<lfx-input-text
[form]="form"
control="profileLink"
id="about-me-profile-link"
size="small"
placeholder="https://"
styleClass="w-full"
dataTest="about-me-profile-link" />
@if (form.get('profileLink')?.invalid && form.get('profileLink')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-profile-link-error">Profile link is required</span>
}
</div>
<div class="flex flex-col gap-1">
<label for="about-me-company" class="text-sm font-medium text-gray-700"> Company <span class="text-red-500">*</span> </label>
<lfx-input-text
[form]="form"
control="company"
placeholder="Company Name"
id="about-me-company"
size="small"
styleClass="w-full"
dataTest="about-me-company" />
@if (form.get('company')?.invalid && form.get('company')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-company-error">Company is required</span>
}
</div>
</div>

<!-- Row 4: Can Receive Funds | Travel From Country -->
<div class="grid grid-cols-2 gap-4">
<div class="flex flex-col gap-1">
<label class="text-sm font-medium text-gray-700"> Can you receive funds from your organization? <span class="text-red-500">*</span> </label>
<lfx-select
[form]="form"
control="canReceiveFunds"
[options]="yesNoOptions"
placeholder="- Select -"
styleClass="w-full"
dataTest="about-me-can-receive-funds" />
@if (form.get('canReceiveFunds')?.invalid && form.get('canReceiveFunds')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-can-receive-funds-error">This field is required</span>
}
</div>
<div class="flex flex-col gap-1">
<label class="text-sm font-medium text-gray-700"> What country would you be travelling from? <span class="text-red-500">*</span> </label>
<lfx-select
[form]="form"
control="travelFromCountry"
[options]="countryOptions"
placeholder="Select country"
[filter]="true"
styleClass="w-full"
dataTest="about-me-travel-from-country" />
@if (form.get('travelFromCountry')?.invalid && form.get('travelFromCountry')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-travel-from-country-error">Travel from country is required</span>
}
</div>
</div>

<!-- Row 5: Open Source Involvement (full width) -->
<div class="flex flex-col gap-1">
<label class="text-sm font-medium text-gray-700">
Briefly describe your involvement in open source communities and why you'd like to attend
<span class="text-red-500">*</span>
</label>
<lfx-textarea
[form]="form"
control="openSourceInvolvement"
[rows]="4"
placeholder="Tell us about your contributions and motivation..."
styleClass="w-full"
dataTest="about-me-open-source-involvement" />
@if (form.get('openSourceInvolvement')?.invalid && form.get('openSourceInvolvement')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-open-source-involvement-error">This field is required</span>
}
</div>

<!-- Row 6: Underrepresented Groups -->
<div class="flex flex-col gap-2" data-testid="about-me-underrepresented-groups">
<label class="text-sm font-medium text-gray-700"> Do you belong to an underrepresented and/or marginalized group? Check all that apply: </label>
<div class="flex flex-wrap items-center gap-x-6 gap-y-2">
<lfx-checkbox [form]="form" control="isLgbtqia" label="LGBTQIA+" />
<lfx-checkbox [form]="form" control="isWoman" label="Woman" />
<lfx-checkbox [form]="form" control="isPersonWithDisability" label="Person with Disability" />
<lfx-checkbox [form]="form" control="isDiversityOther" label="Other" />
<lfx-checkbox [form]="form" control="preferNotToAnswer" label="Prefer not to answer" />
</div>
</div>

<!-- Row 7: Attending for Company | Willing to Blog -->
<div class="grid grid-cols-2 gap-4">
<div class="flex flex-col gap-1">
<label class="text-sm font-medium text-gray-700"> Are you attending on behalf of a company? <span class="text-red-500">*</span> </label>
<lfx-select
[form]="form"
control="attendingForCompany"
[options]="yesNoOptions"
placeholder="- Select -"
styleClass="w-full"
dataTest="about-me-attending-for-company" />
@if (form.get('attendingForCompany')?.invalid && form.get('attendingForCompany')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-attending-for-company-error">This field is required</span>
}
</div>
<div class="flex flex-col gap-1">
<label class="text-sm font-medium text-gray-700"> Are you willing to write a blog about the event? <span class="text-red-500">*</span> </label>
<lfx-select
[form]="form"
control="willingToBlog"
[options]="yesNoOptions"
placeholder="- Select -"
styleClass="w-full"
dataTest="about-me-willing-to-blog" />
@if (form.get('willingToBlog')?.invalid && form.get('willingToBlog')?.touched) {
<span class="text-xs text-red-500" data-testid="about-me-willing-to-blog-error">This field is required</span>
}
</div>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
</div>
</form>
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT

import { ChangeDetectionStrategy, Component, inject, output } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { NonNullableFormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';
import { UserService } from '@app/shared/services/user.service';
import { CheckboxComponent } from '@components/checkbox/checkbox.component';
import { InputTextComponent } from '@components/input-text/input-text.component';
import { SelectComponent } from '@components/select/select.component';
import { TextareaComponent } from '@components/textarea/textarea.component';
import { COUNTRIES } from '@lfx-one/shared/constants';
import { TravelFundAboutMe } from '@lfx-one/shared/interfaces';
import { YES_NO_OPTIONS } from '@lfx-one/shared/constants/events.constants';
import { startWith } from 'rxjs';

@Component({
selector: 'lfx-about-me-form',
imports: [ReactiveFormsModule, InputTextComponent, SelectComponent, TextareaComponent, CheckboxComponent],
templateUrl: './about-me-form.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AboutMeFormComponent {
private readonly userService = inject(UserService);
private readonly fb = inject(NonNullableFormBuilder);

public readonly formValidityChange = output<boolean>();
public readonly formChange = output<TravelFundAboutMe>();

public readonly form = this.fb.group({
firstName: ['', Validators.required],
lastName: ['', Validators.required],
email: [''],
citizenshipCountry: ['', Validators.required],
profileLink: ['', Validators.required],
company: ['', Validators.required],
canReceiveFunds: ['', Validators.required],
travelFromCountry: ['', Validators.required],
openSourceInvolvement: ['', Validators.required],
isLgbtqia: [false],
isWoman: [false],
isPersonWithDisability: [false],
isDiversityOther: [false],
preferNotToAnswer: [false],
attendingForCompany: ['', Validators.required],
willingToBlog: ['', Validators.required],
});

public readonly countryOptions = [...COUNTRIES];
public readonly yesNoOptions = YES_NO_OPTIONS;

public constructor() {
this.form.get('email')?.disable();

const user = this.userService.user();
if (user) {
this.form.patchValue({
firstName: user.given_name ?? '',
lastName: user.family_name ?? '',
Comment thread
emlimlf marked this conversation as resolved.
email: user.email ?? '',
});
}

this.form.statusChanges.pipe(startWith(this.form.status), takeUntilDestroyed()).subscribe(() => {
this.formValidityChange.emit(this.form.valid);
});

this.form.valueChanges.pipe(startWith(this.form.getRawValue()), takeUntilDestroyed()).subscribe(() => {
this.formChange.emit(this.buildFormValue());
});
}
Comment thread
emlimlf marked this conversation as resolved.

private buildFormValue(): TravelFundAboutMe {
return this.form.getRawValue() as TravelFundAboutMe;
}
}
Loading
Loading