Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

feat: Job Manager v3 #30

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from
Open

feat: Job Manager v3 #30

wants to merge 25 commits into from

Conversation

AdrianAlzamoraG
Copy link
Contributor

What does it do

Dialogs for adding and updating bids have been implemented in the bid manager interface.

Additional context

The dialog to update offers is not yet fully implemented

@AdrianAlzamoraG AdrianAlzamoraG self-assigned this Jun 21, 2022
@AdrianAlzamoraG AdrianAlzamoraG added the enhancement New feature or request label Jun 21, 2022
@AdrianAlzamoraG AdrianAlzamoraG changed the base branch from main to develop June 21, 2022 16:05
Copy link
Contributor

@dalbitresb12 dalbitresb12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things, just make sure to remove all the console.log calls, we don't need them outside of development.

src/app/jobs/pages/jobs/jobs.component.ts Outdated Show resolved Hide resolved
src/app/jobs/pages/jobs/jobs.component.ts Outdated Show resolved Hide resolved
src/app/jobs/pages/jobs/jobs.component.ts Outdated Show resolved Hide resolved
<button
mat-raised-button
color="warn"
class="box-border h-12 w-28"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

box-border is already the default in Taliwind's preflight.

Suggested change
class="box-border h-12 w-28"
class="h-12 w-28"

Copy link
Contributor

@dalbitresb12 dalbitresb12 Jun 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdrianAlzamoraG I think you forgot about this one.

@dalbitresb12 dalbitresb12 changed the title feat/job-manager-v3 feat: Job Manager v3 Jun 24, 2022
@dalbitresb12 dalbitresb12 added this to the Sprint 5 milestone Jun 24, 2022
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 24, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7bda13d
Status: ✅  Deploy successful!
Preview URL: https://ecabf16f.waw-frontend-angular.pages.dev
Branch Preview URL: https://feat-job-manager-v3.waw-frontend-angular.pages.dev

View logs

Copy link
Contributor

@dalbitresb12 dalbitresb12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I noticed is that we are keeping the form at the top of the data table, but also adding a dialog with the same form. I think the dialog looks really good, so maybe try removing all the code needed for the original form and just keeping the dialog.

Comment on lines 106 to 122
handleSubmit() {
console.log("handling submit...");
if (!this.jobsForm.form.valid) return;
console.log("passed validation...");
const job = this.currentItem as JobOffer;
if (this.isEditMode) {
console.log("sending update...");
this.updateJob(job.id, job);
} else {
console.log("sending create...");
this.createJob(job);
}

this.cancelEdit();
console.log("finished...");
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot about the console.logs here.

@dalbitresb12
Copy link
Contributor

By the way, tests are failing due to the spec file in the new dialog component. To fix it, do it as in any of the other component test files:

First import the imports variable from app.module.ts:

import { imports } from "src/app/app.module";

Then add it to the configuration object in TestBed.configureTestingModule:

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [...imports],
declarations: [ProfileComponent],
}).compileComponents();
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants