From a7659184ca300ab863a14d54c18a14426ef34406 Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Tue, 6 Feb 2024 11:36:44 -0500 Subject: [PATCH 01/27] Add doc number logic to editable field --- web/app/components/document/sidebar.hbs | 2 ++ web/app/components/editable-field.hbs | 13 +++++++++++++ web/app/components/editable-field.ts | 7 +++++++ 3 files changed, 22 insertions(+) diff --git a/web/app/components/document/sidebar.hbs b/web/app/components/document/sidebar.hbs index d76f4eb56..f0a6c2d7d 100644 --- a/web/app/components/document/sidebar.hbs +++ b/web/app/components/document/sidebar.hbs @@ -85,6 +85,8 @@ data-test-editable={{this.isOwner}} @value={{this.title}} @onSave={{this.saveTitle}} + {{! provide for the docNumber }} + @document={{@document}} @isSaving={{this.saveIsRunning}} @isReadOnly={{this.editingIsDisabled}} @isRequired={{true}} diff --git a/web/app/components/editable-field.hbs b/web/app/components/editable-field.hbs index a8519dac4..72ac7880f 100644 --- a/web/app/components/editable-field.hbs +++ b/web/app/components/editable-field.hbs @@ -1,6 +1,8 @@
@@ -37,6 +39,8 @@ name={{@name}} as |F| > + {{! FIXME: }} + {{! need the height o;f this }} {{#if this.emptyValueErrorIsShown}} This field is required {{/if}} @@ -100,4 +104,13 @@ {{/if}} {{/if}} + + {{#if this.docNumberIsShown}} +
+ {{@document.docNumber}} +
+ {{/if}}
diff --git a/web/app/components/editable-field.ts b/web/app/components/editable-field.ts index 4fb555d3b..2459bc362 100644 --- a/web/app/components/editable-field.ts +++ b/web/app/components/editable-field.ts @@ -95,6 +95,13 @@ export default class EditableFieldComponent extends Component Date: Tue, 6 Feb 2024 12:40:50 -0500 Subject: [PATCH 02/27] Rearrange status --- web/app/components/doc/state.ts | 2 +- web/app/components/document/sidebar.hbs | 42 ++++++++++--------------- web/app/components/editable-field.hbs | 2 +- web/app/components/editable-field.ts | 3 +- web/app/styles/components/sidebar.scss | 9 +++--- 5 files changed, 25 insertions(+), 33 deletions(-) diff --git a/web/app/components/doc/state.ts b/web/app/components/doc/state.ts index 523d6cc63..06d137435 100644 --- a/web/app/components/doc/state.ts +++ b/web/app/components/doc/state.ts @@ -44,7 +44,7 @@ export default class DocStateComponent extends Component