From 558d5b38841982ed810242863a0ae1dafbe0ed71 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Wed, 14 Apr 2021 18:45:53 -0400 Subject: [PATCH] Update ItemMetadataView stories --- .../ItemMetadataView.stories.mdx | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/src/components/ItemMetadataView/ItemMetadataView.stories.mdx b/src/components/ItemMetadataView/ItemMetadataView.stories.mdx index f14d6ad..47f9953 100644 --- a/src/components/ItemMetadataView/ItemMetadataView.stories.mdx +++ b/src/components/ItemMetadataView/ItemMetadataView.stories.mdx @@ -1,15 +1,42 @@ -import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; +import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks'; import ItemMetadataView from "./ItemMetadataView"; -The ItemMetadataView displays the metadata for an item as part of the [ItemView](?path=/docs/components-itemview--with-item). + - +Displays an Item's metadata. Used in the [ItemView](?path=/docs/components-itemview). - "}, {"type": "Message-ID", "content": "<911CE050-3240-4980-91DD-9C3EBB8DBCF8@purdue.edu>"}, {"type": "Subject", "content": "Beepboop"}, {"type": "To", "content": "cesite@ecn.purdue.edu"}, {"type": "Content-Type", "content": "text/plain; charset=\"utf-8\""}, {"type": "X-ECN-Queue-Original-Path", "content": "/home/pier/e/queue/Attachments/inbox/2020-06-23/208-original.txt"}], "content": ["Testtest\n", "\n", "*** Status updated by: campb303 at: 6/23/2020 13:26:55 ***\n", "Dont Delete\n", "*** Edited by: campb303 at: 06/23/20 13:27:56 ***\n", "\n", "This be an edit my boy\n", "\n", "\n", "\n", "*** Replied by: campb303 at: 06/23/20 13:28:18 ***\n", "\n", "This be a reply my son\n", "\n", "Justin\n", "ECN\n", "\n", "=== Additional information supplied by user ===\n", "\n", "Subject: Re: Beepboop\n", "From: Justin Campbell \n", "Date: Tue, 23 Jun 2020 13:30:45 -0400\n", "X-ECN-Queue-Original-Path: /home/pier/e/queue/Attachments/inbox/2020-06-23/212-original.txt\n", "X-ECN-Queue-Original-URL: https://engineering.purdue.edu/webqueue/Attachments/inbox/2020-06-23/212-original.txt\n", "\n", "Huzzah!\n", "\n", "===============================================\n"], "isLocked": "ce 100 is locked by knewell using qvi", "userEmail": "campb303@purdue.edu", "userName": "Justin Campbell", "userAlias": "campb303", "assignedTo": "campb303", "subject": "Beepboop", "status": "Dont Delete", "priority": "", "department": "", "building": "", "dateReceived": "Tue, 23 Jun 2020 13:25:51 -0400"} - }}> - {args => } + "}, {"type": "Subject", "content": "Autocad installation"}, {"type": "To", "content": "cesite@ecn.purdue.edu"}, {"type": "Content-Type", "content": "text/plain; charset=\"utf-8\""}, {"type": "X-ECN-Queue-Original-Path", "content": "/home/pier/e/queue/Attachments/inbox/2020-03-16/187-original.txt"}, {"type": "X-ECN-Queue-Original-URL", "content": "https://engineering.purdue.edu/webqueue/Attachments/inbox/2020-03-16/187-original.txt"}], "content": [{"type": "directory_information", "Name": "Nestor Fabian Rodriguez Buitrago", "Login": "rodri563", "Computer": "ce-205-38 (128.46.205.67)", "Location": "HAMP G230", "Email": "rodri563@purdue.edu", "Phone": "7654766893", "Office": "HAMP G230", "UNIX Dir": "/home/bridge/b/rodri563", "Zero Dir": "U=\\\\bridge.ecn.purdue.edu\\rodri563", "User ECNDB": "http://eng.purdue.edu/jump/2e8399a", "Host ECNDB": "http://eng.purdue.edu/jump/2e83999", "Subject": "Autocad installation"}, {"type": "initial_message", "datetime": "2020-03-16T10:41:10-0400", "from_name": "", "from_email": "rodri563@purdue.edu", "to": [{"name": "", "email": "cesite@ecn.purdue.edu"}], "cc": [], "subject": "Autocad installation", "content": ["I want to know if it's possible to install Autocad on the computer\n", "I've been assigned and if it does generates any cost for me or my\n", "advisor.\n"]}, {"type": "reply_to_user", "by": "schmid22", "datetime": "2020-03-16T10:46:56-0400", "content": ["Fabian,\n", "\n", "We have this software and we can push it to your machine. This will not \n", "cost anything for you or your advisor. We'll need to know what machine \n", "you would like it installed on and we'll need a time when all users will \n", "be signed-out. Please let us know.\n", "\n", "Thanks,\n", "\n", "Steven\n", "ECN\n"]}, {"type": "status", "by": "schmid22", "datetime": "2020-03-16T10:48:22-0400", "content": ["Waiting for reply\n"]}, {"type": "assignment", "datetime": "2020-03-16T10:48:28-0400", "by": "schmid22", "to": "schmid22"}, {"type": "edit", "by": "jgfranks", "datetime": "2020-03-16T10:58:48-0400", "content": ["User was moving a bunch of files of the c drive. Will push at 11:30.\n"]}, {"type": "edit", "by": "jgfranks", "datetime": "2020-03-16T11:58:21-0400", "content": ["Pushed AutoCad\n"]}, {"type": "status", "by": "jgfranks", "datetime": "2020-03-16T11:58:37-0400", "content": ["Waiting on push\n"]}, {"type": "assignment", "datetime": "2020-03-23T08:09:11-0400", "by": "jgfranks", "to": "schmid22/jgfranks"}, {"type": "assignment", "datetime": "2020-03-27T11:49:40-0400", "by": "harley", "to": "schmid22"}, {"type": "parse_error", "datetime": "2021-04-14T18:21:34-0400", "file_path": "/home/pier/e/campb303/webqueue2/q-snapshot/ce/10", "expected": "Did not encounter a reply-from-user ending delimiter", "got": "\n", "line_num": 346}], "isLocked": false, "userEmail": "rodri563@purdue.edu", "userName": "", "userAlias": "rodri563", "assignedTo": "schmid22", "subject": "Autocad installation", "status": "Fix DNS Issue", "priority": "covid", "department": "", "building": "", "dateReceived": "2020-03-16T10:41:10-0400"} + }} + > + { args => } +If an Item is locked, a warning will be displayed showing this. + + + "}, {"type": "Message-ID", "content": "<911CE050-3240-4980-91DD-9C3EBB8DBCF8@purdue.edu>"}, {"type": "Subject", "content": "Beepboop"}, {"type": "To", "content": "cesite@ecn.purdue.edu"}, {"type": "Content-Type", "content": "text/plain; charset=\"utf-8\""}, {"type": "X-ECN-Queue-Original-Path", "content": "/home/pier/e/queue/Attachments/inbox/2020-06-23/208-original.txt"}, {"type": "X-ECN-Queue-Original-URL", "content": "https://engineering.purdue.edu/webqueue/Attachments/inbox/2020-06-23/208-original.txt"}], "content": [{"type": "initial_message", "datetime": "2020-06-23T13:25:51-0400", "from_name": "Justin Campbell", "from_email": "campb303@purdue.edu", "to": [{"name": "", "email": "cesite@ecn.purdue.edu"}], "cc": [], "subject": "Beepboop", "content": ["Testtest\n"]}, {"type": "status", "by": "campb303", "datetime": "2020-06-23T13:26:55-0400", "content": ["Dont Delete\n"]}, {"type": "assignment", "datetime": "2020-06-23T13:27:00-0400", "by": "campb303", "to": "campb303"}, {"type": "edit", "by": "campb303", "datetime": "2020-06-23T13:27:56-0400", "content": ["This be an edit my boy\n"]}, {"type": "reply_to_user", "by": "campb303", "datetime": "2020-06-23T13:28:18-0400", "content": ["This be a reply my son\n", "\n", "Justin\n", "ECN\n"]}, {"type": "reply_from_user", "subject": "Re: Beepboop", "from_name": "Justin Campbell", "from_email": "campb303@purdue.edu", "datetime": "2020-06-23T13:30:45-0400", "content": ["Huzzah!\n"], "headers": [{"type": "Subject", "content": "Re: Beepboop\n"}, {"type": "From", "content": "Justin Campbell \n"}, {"type": "Date", "content": "Tue, 23 Jun 2020 13:30:45 -0400\n"}, {"type": "X-ECN-Queue-Original-Path", "content": "/home/pier/e/queue/Attachments/inbox/2020-06-23/212-original.txt\n"}, {"type": "X-ECN-Queue-Original-URL", "content": "https://engineering.purdue.edu/webqueue/Attachments/inbox/2020-06-23/212-original.txt\n"}]}], "isLocked": "ce 100 is locked by knewell using qvi", "userEmail": "campb303@purdue.edu", "userName": "Justin Campbell", "userAlias": "campb303", "assignedTo": "campb303", "subject": "Beepboop", "status": "Dont Delete", "priority": "", "department": "", "building": "", "dateReceived": "2020-06-23T13:25:51-0400"} + }} + > + { args => } + + + + \ No newline at end of file