Skip to content
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

Feat/#806 adding okr module #1494

Merged
merged 3 commits into from Jun 23, 2020
Merged

Feat/#806 adding okr module #1494

merged 3 commits into from Jun 23, 2020

Conversation

abinandh15
Copy link
Contributor

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.


@abinandh15
Copy link
Contributor Author

  • Fixed Bug: Goal result view, makes the browser crash with out of memory error  #1490 , Now the chart loads properly. Creating a Goal without deadline was the reason for the issue. It is now fixed.
  • Validators added to key result deadlines.
  • Only updates that are 'on track' will be displayed on the chart.
  • If there are multiple updates on the same day, the update with max progress and with status 'on track' will be displayed on the chart.

https://www.loom.com/share/0ce36bb3a4924c31944ffb1b163a8ff6

Goal/ Objectives can now be deleted
https://www.loom.com/share/d5df9be473c9430d87b01d6e0342475f

<nb-option value="organization">Organization</nb-option>
<nb-option value="team">Team</nb-option>
<nb-option value="individual">Individual</nb-option>
<nb-option value="Organization">Organization</nb-option>
Copy link
Contributor

@rmagon rmagon Jun 23, 2020

Choose a reason for hiding this comment

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

Please add translation key

async openSetTimeFrame() {
const dialog = this.dialogService.open(EditTimeFrameComponent, {
context: {
type: 'add'
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make this an enum? Or if it just add/edit convert it into a boolean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will make this an enum

});
const response = await dialog.onClose.pipe(first()).toPromise();
if (!!response) {
if (response === 'yes') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same.. maybe this can be a boolean? Let's try to avoid string comparisons like this is possible ?

this.loadPage();
}
});
if (response === 'deleted') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@@ -42,6 +45,19 @@ export class KeyResultDetailsComponent implements OnInit, OnDestroy {
new Date(b.createdAt).getTime() -
new Date(a.createdAt).getTime()
);

// prevent keyresult updates after deadline
if (this.keyResult.deadline === 'No Custom Deadline') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.. string comparisons like these can cause errors in the future and it's usually hard to debug

Copy link
Contributor

@rmagon rmagon left a comment

Choose a reason for hiding this comment

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

You can just avoid using string comparisons, otherwise really great work! Thank you

@rmagon rmagon merged commit 25c39d3 into develop Jun 23, 2020
@rmagon rmagon deleted the feat/#806-adding-OKR-module branch June 23, 2020 10:00
@rmagon
Copy link
Contributor

rmagon commented Jun 23, 2020

@abinandh15 One last thing, can you please see if your delete confirmation dialog is the same as others in the system?

@abinandh15
Copy link
Contributor Author

One last thing, can you please see if your delete confirmation dialog is the same as others in the system?

@rmagon Sorry, I'm not getting your question. Are you asking about this confirmation dialog

image
If yes, this is the alert dialog component I added in @shared - using it for KeyResult delete confirmation as well.

image

@rmagon
Copy link
Contributor

rmagon commented Jun 23, 2020

Ohh.. okay.. I guess we use the delete-confirmation.component everywhere

Screenshot 2020-06-23 at 4 09 50 PM

I guess you don't need to change it now, but further down the road you can use this one 😄 Thank you! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants