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: issue attachments feature #717

Merged
merged 21 commits into from
Apr 6, 2023
Merged

feat: issue attachments feature #717

merged 21 commits into from
Apr 6, 2023

Conversation

anmolsinghbhatia
Copy link
Collaborator

  • 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.

@vercel
Copy link

vercel bot commented Apr 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2023 7:33am
plane-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2023 7:33am
plane-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2023 7:33am

@vihar vihar changed the title feat : issue attachments feature feat: issue attachments feature Apr 5, 2023
@@ -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) => {
Copy link
Collaborator

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.

@@ -32,6 +32,51 @@ class FileServices extends APIService {
super(NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000");
}

async uploadIssueAttachment(
Copy link
Collaborator

@aaryan610 aaryan610 Apr 6, 2023

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

@aaryan610 aaryan610 merged commit 14dd498 into develop Apr 6, 2023
@anmolsinghbhatia anmolsinghbhatia deleted the feat/attachments branch April 8, 2023 10:27
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