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

Job anon reports #679

Merged
merged 4 commits into from
Apr 24, 2024
Merged

Job anon reports #679

merged 4 commits into from
Apr 24, 2024

Conversation

Btxgear
Copy link
Contributor

@Btxgear Btxgear commented Apr 23, 2024

Added Anonymous Reporting !

  • New Job
  • New elements in the doc
  • New params in daikoku settings

@Btxgear Btxgear requested a review from quentinovega April 23, 2024 13:15
@Btxgear Btxgear added UI Issue related with Daikoku UI documentation Improvements or additions to documentation enhancement New feature or request translation priority: low size/S labels Apr 23, 2024
# Conflicts:
#	daikoku/app/storage/drivers/postgres/PostgresDataStore.scala
#	daikoku/javascript/src/apps/DaikokuApp.tsx
#	daikoku/javascript/src/components/frontend/team/MyHome.tsx
#	daikoku/javascript/src/locales/en/translation.json
#	daikoku/javascript/src/locales/fr/translation.json
#	daikoku/javascript/src/services/index.ts
#	manual/docs/01-getstarted/05-firstrun/configfile.md
@@ -1,15 +1,24 @@
import { useQuery } from '@tanstack/react-query';
import { useContext } from 'react';
import {useContext, useEffect, useState} from 'react';
import { useDispatch, useSelector } from 'react-redux';
Copy link
Contributor

Choose a reason for hiding this comment

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

???

const [daikokuId, setDaikokuId] = useState<string>()
const [lastResponseDate, setLastResponseDate] = useState<number>()
const currentDate = new Date();
const sixMonthsAgo = new Date(new Date().setMonth(currentDate.getMonth() - 6));
Copy link
Contributor

Choose a reason for hiding this comment

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

import {subMonths} from 'date-fns'

const sixMonthAgo = subMonths(currentDate, 6);

@quentinovega quentinovega merged commit 6000e0e into master Apr 24, 2024
0 of 2 checks passed
@quentinovega quentinovega deleted the jobAnonReports branch April 24, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request priority: low size/S translation UI Issue related with Daikoku UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants