-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
frontend/ChapterList.vue
Outdated
@@ -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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
purposefully leaving this logging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops thanks, removed
frontend/ChapterList.vue
Outdated
const GREEN = 'is-success'; | ||
const YELLOW = 'is-warning'; | ||
const RED = 'is-danger'; | ||
const GRAY = 'is-grey'; | ||
const BLACK = 'is-black'; |
There was a problem hiding this comment.
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",
...
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
frontend/ChapterList.vue
Outdated
} 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo
// + 1 becauase "black" means the chapter should be offboarded, but | |
// + 1 because "black" means the chapter should be offboarded, but |
There was a problem hiding this comment.
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.
92cdeed
to
5392cc3
Compare
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.