Skip to content

Chapter list 'last action' column coloring, hide FB columns #235

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 2 commits into from
Mar 23, 2025

Conversation

alexsapps
Copy link
Collaborator

@alexsapps alexsapps commented Mar 19, 2025

Updated color ranges based on request from IC (Michelle) and add tooltips for days since last action / days remaining before offboarding.

Also hide FB columns by default.

@alexsapps alexsapps requested a review from jakehobbs March 19, 2025 20:30
@alexsapps alexsapps changed the title Chapter list 'last action' column color/tooltip Chapter list 'last action' column coloring, hide FB columns Mar 19, 2025
@@ -754,12 +775,14 @@ export default Vue.extend({

const csrfToken = $('meta[name="csrf-token"]').attr('content');
this.disableConfirmButton = true;
const data = JSON.stringify(this.currentChapter);
console.log(data);
Copy link
Member

Choose a reason for hiding this comment

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

purposefully leaving this logging?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops thanks, removed

Comment on lines 892 to 896
const GREEN = 'is-success';
const YELLOW = 'is-warning';
const RED = 'is-danger';
const GRAY = 'is-grey';
const BLACK = 'is-black';
Copy link
Member

Choose a reason for hiding this comment

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

nit: could move these to module scope. i would prob do smth like this fwiw:

const Colors = {
  GREEN: "is-success",
  YELLOW: "is-warning",
  ...
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

} else if (time.isAfter(dayjs().subtract(30 * 3.5, 'day'))) {
return YELLOW;
} else if (time.isAfter(dayjs().subtract(30 * 4 + 1, 'day'))) {
// + 1 becauase "black" means the chapter should be offboarded, but
Copy link
Member

Choose a reason for hiding this comment

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

nit: typo

Suggested change
// + 1 becauase "black" means the chapter should be offboarded, but
// + 1 because "black" means the chapter should be offboarded, but

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Updated color ranges based on request from IC (Michelle) and add
tooltips for days since last action / days remaining before offboarding.
@alexsapps alexsapps force-pushed the alex/last-action-color branch from 92cdeed to 5392cc3 Compare March 23, 2025 23:24
@alexsapps alexsapps merged commit fd75de3 into main Mar 23, 2025
1 check passed
@alexsapps alexsapps deleted the alex/last-action-color branch March 23, 2025 23:41
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.

2 participants