\clearpage \section{Reviewed Sidebar and Creation Design}\label{Section:SidebarDesign} \index{workspace sidebar}\index{shape catalogue}\index{creation} The November 21--22 discussion supplied the reviewed design. On November 23, Vincent authorized the bounded \texttt{0.1.3-alpha} sidebar shell below. A \gls{shapecatalogue} supplies offered types; the \gls{workspacesidebar} hosts their presentation. A \gls{placementanchor} positions default geometry. Catalogue/creation and shared-service ownership remain planned; the shell does not implement them. The older \texttt{0.1.2-alpha} package is preserved and the scene still owns its plugin store. This section adapts the report's linked UML and interface views; obligations remain in the registers rather than a second narrative contract. \subsection{Implemented Sidebar Shell}\label{Section:CurrentSidebarShell} \texttt{tkrWorkspaceSidebar} provides a persistent Shapes/Files icon strip, tab selection, an explicit collapse button and click-selected-tab collapse/reopen. It retains the selected page and expanded splitter width during the window session. Icons come from Qt's standard style; no external icon/theme package is adopted. \texttt{tkrShapePalette} displays the currently loaded rectangle provider summary and a disabled Create rectangle button with an explanation. This is fixed-provider status, not a new provider-enumeration or creation API. \texttt{tkrFolderBrowser} is a placeholder page with Open document; its request reuses the same Save/Discard/Cancel guard and dialog as File > Open. The main window owns the sidebar/pages through the central widget's Qt parent tree. The sidebar owns its content and page widgets; it copies provider summary text. It holds no source bindings and cannot edit a document. Current scene-owned plugin services remain separate from the planned shared ownership below. \TestCaseRef{TC-079} and \TestCaseRef{TC-082} have bounded shell evidence in Section~\ref{Section:SidebarShellCheck}; catalogue alternatives, shared services, creation and stakeholder validation remain unexecuted. \begin{landscape} \begin{figure}[ht] \centering \resizebox{!}{13.8cm}{\input{../assets/design-diagrams/current-sidebar-classes.tex}} \caption[Current sidebar shell classes]{Implemented sidebar shell: current responsibilities, public operation names and Qt ownership. Names summarize source signatures; constructor defaults and types remain in the headers.\label{Figure:CurrentSidebarClasses}} \end{figure} \end{landscape} \small \begin{tabularx}{\linewidth}{@{}L{3.1cm}YL{3.0cm}@{}} \caption{Sidebar and Creation Decisions\label{Table:SidebarDecisions}}\\ \toprule\textbf{Concern} & \textbf{Reviewed direction / boundary} & \textbf{Controlled trace}\\\midrule \endfirsthead \toprule\textbf{Concern} & \textbf{Reviewed direction / boundary} & \textbf{Controlled trace}\\\midrule\endhead\bottomrule\endfoot Catalogue & Describe offered shape types separately from existing instances; associate provider identity/version in the host. & \RequirementRef{REQ-F-033}; \RequirementRef{REQ-D-018}\\ Sidebar & Shapes and planned Files pages; distinct icons and readable labels, persistent collapsed strip and retained session page/width. & \RequirementRef{REQ-I-015}; \RequirementRef{REQ-I-018}--\RequirementRef{REQ-I-020}\\ Placement & Click for provider defaults; rectangle drag defines opposite corners. Centre a clicked rectangle where valid; shift inward to fit without changing size. If the default cannot fit, explain unavailability and preserve source. & \RequirementRef{REQ-F-035}; \RequirementRef{REQ-I-013}\\ Tool completion & One accepted placement selects the new element and returns to selection. Escape cancels; a rejected attempt reports once and retains the tool. & \RequirementRef{REQ-I-021}; \RequirementRef{REQ-I-006}; \RequirementRef{REQ-I-007}\\ Ownership & Main window assembles/owns shared host services and sidebar; bounded collaborators perform their work. Consumers borrow and finish first. & \RequirementRef{REQ-A-024}; \RequirementRef{REQ-A-021}\\ Styling & Retain default Qt styling; Qlementine is deferred. No external theme or icon library is adopted. The shell uses Qt standard-style icons; final icon selection remains open. & \hyperref[Section:SidebarWireframes]{planned UI views}\\ \end{tabularx} \normalsize Provider defaults and shape minima remain named, unit-bearing values. A $2\,\mathrm{cm}\times1\,\mathrm{cm}$ rectangle is a proposed starting default, not a permanently accepted size or implemented creation feature. Existing independent $0.01$ cm rectangle minima are the resize baseline; creation must honour the provider's reviewed valid geometry and document constraints. \UseCaseRef{UC-009} and \TestCaseRef{TC-080} retain insertion/New prerequisites. \clearpage \begin{landscape} \subsection{Planned Ownership and Collaborators}\label{Section:SidebarOwnership} The shared-service/catalogue extension and future APIs below remain planned. The three UI class names already have limited shell implementations in Figure~\ref{Figure:CurrentSidebarClasses}; these broader collaborators are not their current declarations. Current code has a scene-owned store (Figure~\ref{Figure:CurrentProviderClasses}). Composition indicates ownership; associations/dependencies indicate borrowed access or use. \begin{figure}[ht] \centering \resizebox{0.98\linewidth}{!}{\input{../assets/design-diagrams/sidebar-classes.tex}} \caption[Planned shared-service ownership]{Planned UML sidebar/shared-service composition and borrowed access. Window ownership does not transfer catalogue, module or view work into the window. \label{Figure:SidebarClasses}} \end{figure} \end{landscape} \clearpage \subsection{Proposed Responsibilities and Method Roles}\label{Section:SidebarMethods} This table describes the broader planned roles and APIs, not a frozen ABI. Only the sidebar collapse/page operations already exist; current palette status and Files Open-request operations are documented in the implemented shell view. \small \begin{tabularx}{\linewidth}{@{}L{3.7cm}YY@{}} \caption{Planned Sidebar Collaborator Roles\label{Table:SidebarMethods}}\\ \toprule\textbf{Class} & \textbf{Bounded responsibility/state} & \textbf{Operation / signal roles}\\\midrule \endfirsthead \toprule\textbf{Class} & \textbf{Bounded responsibility/state} & \textbf{Operation / signal roles}\\\midrule\endhead\bottomrule\endfoot \texttt{tkrWorkspace\allowbreak{}Sidebar} & Own page widgets; track collapsed state, selected page and expanded width for this session. & \texttt{setCollapsed(...)}; \texttt{activatePage(...)}.\\ \texttt{tkrShapePalette} & Present catalogue values, selection and availability; emit chosen shape/provider identity. & \texttt{setEntries(...)}; \texttt{shapeChosen(...)} signal.\\ \texttt{tkrFolderBrowser} & Present the working-folder tree using a Qt model/view; request opening through the shared guard. Root/filter/activation rules are open. & \texttt{setRootFolder(...)}; \texttt{openFileRequested(...)} signal.\\ \texttt{tkrShapeCatalogue} & Maintain offered-type entries and host provider associations; borrow the module store. No document-instance ownership. & \texttt{entries()}; \texttt{refresh(...)} roles; provider enumeration extension remains open.\\ \texttt{tkrMainWindow} & Assemble/own and connect requests. Existing document and controller responsibilities remain bounded. & Proposed shared \texttt{requestOpenDocument(...)} routes dialog and Files requests through Save/Discard/Cancel before controller opening.\\ \end{tabularx} \normalsize Pending dependent work and consuming views must be released before their host services; the catalogue must finish using the store before the store is released. Document/provider dependencies in \RequirementRef{REQ-A-021} still apply. Shell Qt-parent construction and teardown are implemented and tested; concrete shared-service/catalogue wiring still requires implementation review. Shared window ownership does not authorize hot unload or an updater. \begin{figure}[ht] \centering \resizebox{\linewidth}{!}{\input{../assets/design-diagrams/sidebar-mvc.tex}} \caption[Planned catalogue and creation MVC]{Planned UML package allocation for sidebar and shared services. MVC role and object ownership are separate views.\label{Figure:SidebarMVC}} \end{figure} \clearpage \subsection{Catalogue Types and Instance Boundary}\label{Section:CatalogueRecords} \RequirementRef{REQ-D-018} separates a type offered for creation from an accepted document element. Host provider identity includes declared ID/version and a runtime binding under the existing identity contract. A catalogue record has no accepted document-element identity or authoritative source ranges. \begin{figure}[ht] \centering \resizebox{\linewidth}{!}{\input{../assets/design-diagrams/catalogue-records.tex}} \caption[Planned catalogue records]{Planned UML data-type boundary for catalogue and document instances. Fields describe roles; exact schema, API signatures and compatibility version remain open.\label{Figure:CatalogueRecords}} \end{figure} The palette browses entries without changing source or an existing element's provider. Availability remains the intersection of provider, syntax-insertion and document-context support, checked again when executing. Creation supplies candidate interpreted geometry to the host; accepted identity follows document acceptance. The current API v1 has no catalogue/creation entry point. \clearpage \subsection{Planned Creation Activity}\label{Section:CreationActivity} \UseCaseRef{UC-009} is an actor goal; the activity below describes its reviewed interaction and acceptance boundary. Provider-default placement, preview and source insertion remain separate responsibilities. Generic history is still planned independently. \TestCaseRef{TC-080} cannot execute until insertion and new-document prerequisites are reviewed and implemented. \begin{figure}[ht] \centering \resizebox{!}{13.3cm}{\input{../assets/design-diagrams/creation-activity.tex}} \caption[Planned creation activity]{Planned UML creation flow with guarded acceptance, cancellation and retry. Failed preparation bypasses document acceptance. Preview changes no source; failure feedback occurs once per completed attempt.\label{Figure:CreationActivity}} \end{figure} \clearpage \subsection{Planned Sidebar Wireframes}\label{Section:SidebarWireframes} These editable UI sketches show expanded Shapes and the persistent collapsed strip. They are not application screenshots or UML relationship diagrams. Geometric tab icons and provider names are illustrative; icons receive readable tooltips and accessible names. No external artwork or icon library is selected. The Files page is a planned entry point whose folder-selection, filters and opening gestures require further review. \begin{figure}[ht] \centering \resizebox{\linewidth}{!}{\begin{minipage}{16cm} \input{../assets/design-diagrams/sidebar-expanded.tex}\par\medskip \input{../assets/design-diagrams/sidebar-collapsed.tex} \end{minipage}} \caption[Planned sidebar interface sketches]{Planned expanded and collapsed sidebar using the existing canvas/source split. Default Qt styling is retained; the selected page and width persist only within the window session.\label{Figure:SidebarWireframes}} \end{figure} Planned trace: \UserStoryRef{US-011}, \TestCaseRef{TC-079} and \ValidationRef{VAL-011}. Catalogue/creation implementation and usability validation remain pending; the bounded shell is shown in Figure~\ref{Figure:CurrentSidebarClasses}.