<!-- 
RSS generated by JIRA (9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b) at Mon Feb 12 08:43:04 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Magnolia - Issue tracker</title>
    <link>https://jira.magnolia-cms.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-uk</language>    <build-info>
        <version>9.4.2</version>
        <build-number>940002</build-number>
        <build-date>19-01-2023</build-date>
    </build-info>


<item>
            <title>[MGNLUI-1071] Status bar, create default view</title>
                <link>https://jira.magnolia-cms.com/browse/MGNLUI-1071</link>
                <project id="10625" key="MGNLUI">Magnolia UI</project>
                    <description>&lt;p&gt;As specified in concept &lt;a href=&quot;http://wiki.magnolia-cms.com/display/DEV/Concept+-+Status+bar+in+subapps&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://wiki.magnolia-cms.com/display/DEV/Concept+-+Status+bar+in+subapps&lt;/a&gt;&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Create interface StatusBarView&lt;/li&gt;
	&lt;li&gt;Implement it as a simple vaadin CustomComponent&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="29334">MGNLUI-1071</key>
            <summary>Status bar, create default view</summary>
                <type id="5" iconUrl="https://jira.magnolia-cms.com/secure/viewavatar?size=xsmall&amp;avatarId=10896&amp;avatarType=issuetype">Sub-task</type>
                            <parent id="25158">MGNLUI-75</parent>
                                    <priority id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/priorities/neutral.gif">Neutral</priority>
                        <status id="6" iconUrl="https://jira.magnolia-cms.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="mgeljic">Mika&#235;l Gelji&#263;</assignee>
                                    <reporter username="mgeljic">Mika&#235;l Gelji&#263;</reporter>
                        <labels>
                            <label>statusbar</label>
                    </labels>
                <created>Tue, 9 Apr 2013 15:46:57 +0200</created>
                <updated>Fri, 26 Apr 2013 09:42:19 +0200</updated>
                            <resolved>Mon, 15 Apr 2013 08:25:40 +0200</resolved>
                                                    <fixVersion>5.0</fixVersion>
                                    <component>design</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="60502" author="dlipp" created="Wed, 17 Apr 2013 08:18:55 +0200"  >&lt;p&gt;StatusBarViewImpl would be more DRY when combining addComponent with getFirstAvailableRightIndex and getFirstAvailableLeftIndex to something like:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; void addComponent(Component c, Alignment align) {
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; index = 0;
        Iterator&amp;lt;Component&amp;gt; it = getComponentIterator();
        &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (it.hasNext()) {
            Alignment nextAlignment = getComponentAlignment(it.next());
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (align.isLeft() ? nextAlignment.isLeft() : nextAlignment.isRight()) {
                index++;
            }
        }
        addComponent(c, index);
        setComponentAlignment(c, align);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A UnitTest would be handy to verify refactoring doesn&apos;t break anything. &lt;br/&gt;
Although there might be one required change: looks suspicious that in getFirstAvailableRightIndex the getComponentAlignment(it.next()).isRight() is inverted by &apos;!&apos; but not in getFirstAvailableLeftIndex.&lt;/p&gt;</comment>
                            <comment id="60504" author="mgeljic" created="Wed, 17 Apr 2013 09:19:09 +0200"  >&lt;p&gt;&lt;tt&gt;#addComponent(Component, Alignment)&lt;/tt&gt; is specified in the concept such that first added is first aligned. For right-aligned components, that means we stack components starting from the right. Concretely though, in the end it extends the HorizontalLayout so it&apos;s just one series of indices, and we have to insert components at the right position in that series.&lt;/p&gt;

&lt;p&gt;For left alignment: we iterate as long as next component is left-aligned. New insertion position is after last left-aligned component. (LTR)&lt;br/&gt;
For right alignment: we iterate as long as next component is &lt;b&gt;not&lt;/b&gt; right-aligned. New insertion position is before first right-aligned component. (RTL)&lt;br/&gt;
For center alignment: same inserting point as for right alignment. New insertion position is after last centered component. (LTR)&lt;/p&gt;

&lt;p&gt;I actually have the test already and that was omitted in the commit, so it&apos;s easy to test the proposal but I doubt it works, when these two methods make it more legible. Then I will at least add javadoc in impl to give those missing details.&lt;/p&gt;</comment>
                            <comment id="60616" author="dlipp" created="Thu, 18 Apr 2013 07:56:48 +0200"  >&lt;p&gt;I like the new imp &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.magnolia-cms.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10111" key="com.atlassian.jira.toolkit:reporterdomain">
                        <customfieldname>Company</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>magnolia-cms.com</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10031" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 17 Apr 2013 08:18:55 +0200</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12730" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14151" key="com.atlassian.jira.toolkit:message">
                        <customfieldname>Docu info</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10061" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comm is not jira-dev</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10071" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last participant</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ajones</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_13136" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 44 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10020" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10150" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dlipp</customfieldvalue>
            <customfieldvalue>mgeljic</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10833" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i006o7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10244" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1109</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10245" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3">Iteration 2013-13</customfieldvalue>
    <customfieldvalue id="4">Iteration 2013-14</customfieldvalue>
    <customfieldvalue id="5">Iteration 2013-15</customfieldvalue>
    <customfieldvalue id="6">Iteration 2013-16</customfieldvalue>
    <customfieldvalue id="7">Iteration 2013-17</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14145" key="com.intenso.jira.issue-templates:issue-templates-customfield">
                        <customfieldname>Template</customfieldname>
                        <customfieldvalues>
                            


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15131" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Time in Discovery</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>