-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: issue attachments feature #717
Conversation
anmolsinghbhatia
commented
Apr 5, 2023
- attachment functionality added in issue detail page.
- toast alert on add or remove of attachment.
- loading & deleting state added.
- file validation added.
- dynamic file icon added.
- mutation improvement.
- responsiveness improvement.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/app/helpers/date-time.helper.ts
Outdated
@@ -173,3 +176,37 @@ export const renderShortTime = (date: string | Date) => { | |||
|
|||
export const isDateRangeValid = (startDate: string, endDate: string) => | |||
new Date(startDate) < new Date(endDate); | |||
|
|||
export const formatDateLong = (dateString: string) => { |
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.
Change the function name according to the convention we're following.
apps/app/services/file.service.ts
Outdated
@@ -32,6 +32,51 @@ class FileServices extends APIService { | |||
super(NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000"); | |||
} | |||
|
|||
async uploadIssueAttachment( |
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.
Move the services to issue.service
file