From 0cf2b896101db0d7c84802594f208a5b4dc25f98 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 21 Dec 2023 12:40:01 -0400 Subject: [PATCH] feat: Real doc info / deadline (#82) * feat: Show real deadline * fix: Refresh after changing labels * feat: Fill in some real doc info * fix: grab stream when importing draft Still a hack... * fix: Clean up doc page layout --- client/pages/docs/[id].vue | 251 +++++++++++++++++++++++++------------ rpc/api.py | 4 +- 2 files changed, 175 insertions(+), 80 deletions(-) diff --git a/client/pages/docs/[id].vue b/client/pages/docs/[id].vue index 83a70e4..4f97436 100644 --- a/client/pages/docs/[id].vue +++ b/client/pages/docs/[id].vue @@ -24,11 +24,11 @@
+ class="mx-auto grid max-w-2xl grid-cols-1 grid-rows-1 place-items-stretch gap-x-8 gap-y-8 lg:mx-0 lg:max-w-none lg:grid-cols-3"> -
-

Status Summary (mockup)

+
+

Status Summary

Current Assignments

@@ -37,15 +37,17 @@ None
-
-
{{ people.find(p => p.id === assignment.person)?.name }}
-
-
+
+
{{ people.find(p => p.id === assignment.person)?.name }}
+
+ +
+
-
+

Queue Information (mocked)

@@ -53,9 +55,22 @@
Current State
EDIT-in-process
+
+ +
Deadline
+
+ + - +
+
Est. Completion
-
30 July 2024
+
+ + +
@@ -64,101 +79,180 @@
-
-

Document Info (mocked)

-
-
-
Issued on
- {{ ' ' }} -
- -
-
-
-
Due on
- {{ ' ' }} -
- -
+
+

Main panel

+
+
+

Document Info

+
+
+
+
Title
+
+ {{ draft?.title ?? '-' }} +
+
+
+
Authors
+
+ J. Doe (mocked) +
+
+
+
Submitted Pages
+
+ {{ draft?.pages ?? '-' }} +
+
+
+
Document Shepherd
+
+ Dolly Shepherd (mocked) +
+
+
+
Stream
+
+ {{ draft?.stream ?? '-' }} + + (submitted as {{ draft.submittedStream }}) + +
+
+
+
Stream Manager
+
+ Ari Drecker (mocked) +
+
+
+
Submitted Format
+
+ {{ draft?.submittedFormat ?? '-' }} +
+
+
+
Submitted Boilerplate
+
+ {{ draft?.intendedBoilerplate ?? '-' }} + + (submitted as {{ draft.submittedBoilerplate }}) + +
+
+
+
Standard Level
+
+ {{ draft?.intendedStdLevel ?? '-' }} + + (submitted as {{ draft.submittedStdLevel }}) + +
+
+
+
Disposition
+
+ {{ draft?.disposition ?? '-' }} +
+
+
+
-
+
-
- - -
-
-

Labels

-
-
- + +
+

Label panel

+
+
+

Labels

+
+
+ +
+
-
-
+
- -
-
-

History

-
- - - - - - - - - - - - - - - -
DateByDescription
{{ entry.date }} - - {{ entry.by.name }} - - - {{ entry.by?.name }} - - {{ entry.desc }}
+ +
+

History panel

+
+
+

History

+
+ + + + + + + + + + + + + + + +
DateByDescription
+ + + + {{ entry.by.name }} + + + {{ entry.by?.name }} + + {{ entry.desc }}
+
+
- diff --git a/rpc/api.py b/rpc/api.py index ded7fa4..22094b5 100644 --- a/rpc/api.py +++ b/rpc/api.py @@ -195,8 +195,8 @@ def import_submission(request, document_id, rpcapi: rpcapi_client.DefaultApi): intended_std_level=StdLevelNameFactory( slug="ps", name="Proposed Standard" ).pk, - submitted_stream=StreamNameFactory(slug="ietf", name="IETF").pk, - intended_stream=StreamNameFactory(slug="ietf", name="IETF").pk, + submitted_stream=StreamNameFactory(slug=draft.stream, name=draft.stream.upper()).pk, + intended_stream=StreamNameFactory(slug=draft.stream, name=draft.stream.upper()).pk, internal_goal=initial_data["external_deadline"], ) )