"Back" now works for search results (#3)
- Made the application only retrieve the list of continents once per visit - Update the verbiage for phase 3 completion
This commit is contained in:
@@ -28,29 +28,30 @@ else
|
||||
started!
|
||||
</p>
|
||||
}
|
||||
@{
|
||||
/**
|
||||
This is phase 3 stuff...
|
||||
<hr>
|
||||
<p>
|
||||
There @(ProfileCount == 1 ? "is" : "are") @(ProfileCount == 0 ? "no" : ProfileCount) employment
|
||||
profile@(ProfileCount != 1 ? "s" : "") from citizens of Gitmo Nation.
|
||||
@if (ProfileCount > 0)
|
||||
{
|
||||
<text>Take a look around and see if you can help them find work!</text> <em>(coming soon)</em>
|
||||
<text>Take a look around and see if you can help them find work!</text>
|
||||
}
|
||||
</p> */
|
||||
}
|
||||
</p>
|
||||
</ErrorList>
|
||||
}
|
||||
<hr>
|
||||
<h4>Phase 3 – What Works <small><em>(<span class="text-uppercase">In Progress</span> ~~ Last Updated January 10<sup>th</sup>, 2021)</em></small></h4>
|
||||
<h4>
|
||||
<a href="https://github.com/bit-badger/jobs-jobs-jobs/issues/3" target="_blank">Phase 3</a> – What Works
|
||||
<small><em>(v0.8 – Last Updated January 19<sup>th</sup>, 2021)</em></small>
|
||||
</h4>
|
||||
<p>
|
||||
The “View Profiles” link at the side does not have any search capabilities, but it does provide a list of
|
||||
citizens who have filled out profiles, along with a way to view those profiles.
|
||||
The “View Profiles” link at the side now allows you to search for profiles by continent, the
|
||||
citizen’s desire for remote work, a skill, or any text in their professional biography and experience. If you
|
||||
find someone with whom you’d like to discuss potential opportunities, the name at the top of the profile links
|
||||
to their No Agenda Social account, where you can use its features to get in touch.
|
||||
</p>
|
||||
<hr>
|
||||
<h4>Phase 2 – What Works <small><em>(Last Updated January 8<sup>th</sup>, 2021)</em></small></h4>
|
||||
<h4>Phase 2 – What Works <small><em>(v0.7 – Last Updated January 8<sup>th</sup>, 2021)</em></small></h4>
|
||||
<p>
|
||||
If you’ve gotten this far, you’ve already passed
|
||||
<a href="https://github.com/bit-badger/jobs-jobs-jobs/issues/1" target="_blank">Phase 1</a>, which enabled users of
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
<InputSelect id="continentId" @bind-Value=@ProfileForm.ContinentId class="form-control">
|
||||
<option>– Select –</option>
|
||||
@foreach (var (id, name) in Continents)
|
||||
{
|
||||
<option value="@id">@name</option>
|
||||
}
|
||||
{
|
||||
<option value="@id">@name</option>
|
||||
}
|
||||
</InputSelect>
|
||||
<ValidationMessage For=@(() => ProfileForm.ContinentId) />
|
||||
</div>
|
||||
|
||||
@@ -46,19 +46,12 @@ namespace JobsJobsJobs.Client.Pages.Citizen
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
ServerApi.SetJwt(http, state);
|
||||
var continentTask = ServerApi.RetrieveMany<Continent>(http, "continent/all");
|
||||
var continentTask = state.GetContinents(http);
|
||||
var profileTask = ServerApi.RetrieveProfile(http, state);
|
||||
|
||||
await Task.WhenAll(continentTask, profileTask);
|
||||
|
||||
if (continentTask.Result.IsOk)
|
||||
{
|
||||
Continents = continentTask.Result.Ok;
|
||||
}
|
||||
else
|
||||
{
|
||||
ErrorMessages.Add(continentTask.Result.Error);
|
||||
}
|
||||
Continents = continentTask.Result;
|
||||
|
||||
if (profileTask.Result.IsOk)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user