Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

View: New views
7 Messages — Rating Filter:   Alert me  

Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Oliver Charles-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Sep 4, 2009 at 5:35 PM, Aurélien Mino<aurelien.mino@...> wrote:

> On Fri, Sep 4, 2009 at 5:31 PM, <root@...> wrote:
>>
>> Author: acid2
>> Date: 2009-09-04 15:31:00 +0000 (Fri, 04 Sep 2009)
>> New Revision: 12052
>>
>> Added:
>>   mb_server/trunk/root/layout/sidebar/properties.tt
>>   mb_server/trunk/root/layout/sidebar/property.tt
>>   mb_server/trunk/root/layout/sidebar/sidebar-lastupdate.tt
>>   mb_server/trunk/root/layout/sidebar/sidebar-rating.tt
>>   mb_server/trunk/root/layout/sidebar/sidebar-tags.tt
>>   [...]
>> Removed:
>>   mb_server/trunk/root/components/sidebar-lastupdate.tt
>>   mb_server/trunk/root/components/sidebar-rating.tt
>>   mb_server/trunk/root/components/sidebar-tags.tt
>>   [...]
>> Log:
>> Merge Brian's work on the sidebar in the release editor.
>>
>> See review 370.
>>
>
> These changes (move sidebar-*.tt from root/components/ to
> root/layout/sidebar/) were not in
> http://codereview.musicbrainz.org/r/370/diff/ as far as I can tell.
>
> That breaks a few templates:

Indeed, they were in the release-editor branch that brian was working
on. I knew about the breaking changes, I could have sworn I commited
that as well. I'll fix that now, sorry for the break!

--
    Oliver Charles / aCiD2

_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Bugzilla from lalinsky@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Sep 4, 2009 at 7:28 PM, Oliver
Charles<oliver.g.charles@...> wrote:

> On Fri, Sep 4, 2009 at 5:35 PM, Aurélien Mino<aurelien.mino@...> wrote:
>> On Fri, Sep 4, 2009 at 5:31 PM, <root@...> wrote:
>>>
>>> Author: acid2
>>> Date: 2009-09-04 15:31:00 +0000 (Fri, 04 Sep 2009)
>>> New Revision: 12052
>>>
>>> Added:
>>>   mb_server/trunk/root/layout/sidebar/properties.tt
>>>   mb_server/trunk/root/layout/sidebar/property.tt
>>>   mb_server/trunk/root/layout/sidebar/sidebar-lastupdate.tt
>>>   mb_server/trunk/root/layout/sidebar/sidebar-rating.tt
>>>   mb_server/trunk/root/layout/sidebar/sidebar-tags.tt
>>>   [...]
>>> Removed:
>>>   mb_server/trunk/root/components/sidebar-lastupdate.tt
>>>   mb_server/trunk/root/components/sidebar-rating.tt
>>>   mb_server/trunk/root/components/sidebar-tags.tt
>>>   [...]
>>> Log:
>>> Merge Brian's work on the sidebar in the release editor.
>>>
>>> See review 370.
>>>
>>
>> These changes (move sidebar-*.tt from root/components/ to
>> root/layout/sidebar/) were not in
>> http://codereview.musicbrainz.org/r/370/diff/ as far as I can tell.
>>
>> That breaks a few templates:
>
> Indeed, they were in the release-editor branch that brian was working
> on. I knew about the breaking changes, I could have sworn I commited
> that as well. I'll fix that now, sorry for the break!

I don't think it was a good idea to get this in without a review.
There are still problems:
 - recording length in sidebar is formatted incorrectly
("<dt>Length:</dt><dd>225266</dd> ms")
 - release labels and catalog numbers disappeared from the release page
 - there is a gap between barcode and other release attributes on the
release page

There are also some changes that I don't like functionally. For
example "return unless $self->form;" in FormRendered->_lookup_field is
just masking a problem, we should never have form renderer without a
form. Or that:

            <script type="text/javascript">
                var MusicBrainz = {};
                $(function ($) {
                    [%#- Hide the edit tab from any browser that
doesn't have javascript enabled (or which is broken for jQuery). -%]
                    $("#editToggle").show();
                });
            </script>

should not be in the global template header (or at least returned
conditionally), as it's useful only on release pages.

I also don't like the visual changes in sidebar, but that's subjective
and I can live with them.

--
Lukas Lalinsky
lalinsky@...

_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Brian Schweitzer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

form. Or that:

           <script type="text/javascript">
               var MusicBrainz = {};
               $(function ($) {
                   [%#- Hide the edit tab from any browser that
doesn't have javascript enabled (or which is broken for jQuery). -%]
                   $("#editToggle").show();
               });
           </script>

should not be in the global template header (or at least returned
conditionally), as it's useful only on release pages.

At the moment, yes, but is the intent really to have inline editing on the release page, but not other pages?  (The functionality will all be 99% there; after the release page, all but the AR page are pretty much a piece of cake.)  We could move this to a release-specific page, but long-term, we'll need it back on just about a global basis, for the same reasons the ratings code is in global.js.

Brian

_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Bugzilla from lalinsky@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Sep 5, 2009 at 3:01 PM, Brian
Schweitzer<brian.brianschweitzer@...> wrote:

>> form. Or that:
>>
>>            <script type="text/javascript">
>>                var MusicBrainz = {};
>>                $(function ($) {
>>                    [%#- Hide the edit tab from any browser that
>> doesn't have javascript enabled (or which is broken for jQuery). -%]
>>                    $("#editToggle").show();
>>                });
>>            </script>
>>
>> should not be in the global template header (or at least returned
>> conditionally), as it's useful only on release pages.
>
> At the moment, yes, but is the intent really to have inline editing on the
> release page, but not other pages?

Yes. Which is also a reason why I didn't like the current approach
where release editing happens "on the web page", while any other
editing happens in a specialized form.

--
Lukas Lalinsky
lalinsky@...

_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Oliver Charles-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/5 Lukáš Lalinský <lalinsky@...>:
> Yes. Which is also a reason why I didn't like the current approach
> where release editing happens "on the web page", while any other
> editing happens in a specialized form.

Well I really don't know what to do now :(

We can continue working on what we'e doing at the moment, or I can
throw it out and write a much simpler editor, with JavaScript in just
a few places (artist lookup etc) and have this done by the 15th...

Shame Rob isn't back yet, could really do with his input here!

--
    Oliver Charles / aCiD2

_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

Parent Message unknown Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Brian Schweitzer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Sep 4, 2009 at 12:35 PM, Aurélien Mino <aurelien.mino@...> wrote:
On Fri, Sep 4, 2009 at 5:31 PM, <root@...> wrote:
Author: acid2
Date: 2009-09-04 15:31:00 +0000 (Fri, 04 Sep 2009)
New Revision: 12052

Added:
  mb_server/trunk/root/layout/sidebar/properties.tt
  mb_server/trunk/root/layout/sidebar/property.tt
  mb_server/trunk/root/layout/sidebar/sidebar-lastupdate.tt
  mb_server/trunk/root/layout/sidebar/sidebar-rating.tt
  mb_server/trunk/root/layout/sidebar/sidebar-tags.tt
  [...]
Removed:
  mb_server/trunk/root/components/sidebar-lastupdate.tt
  mb_server/trunk/root/components/sidebar-rating.tt
  mb_server/trunk/root/components/sidebar-tags.tt
  [...]
Log:
Merge Brian's work on the sidebar in the release editor.

See review 370.


These changes (move sidebar-*.tt from root/components/ to root/layout/sidebar/) were not in http://codereview.musicbrainz.org/r/370/diff/ as far as I can tell.

That breaks a few templates:

mbserver@brainzvm:~/svn/trunk/root$ grep -R "components/sidebar-" * | grep -v ".svn"

artist/layout.tt:    [%- INCLUDE "components/sidebar-rating.tt" entity=artist -%]
artist/layout.tt:    [%- INCLUDE "components/sidebar-tags.tt" entity=artist tags=top_tags tag_this_text=l('Tag this artist') -%]
artist/layout.tt:    [%- INCLUDE "components/sidebar-lastupdate.tt" entity=artist -%]
label/layout.tt:    [%- INCLUDE "components/sidebar-rating.tt" entity=label -%]
label/layout.tt:    [%- INCLUDE "components/sidebar-tags.tt" entity=label tags=top_tags tag_this_text=l('Tag this label') -%]
label/layout.tt:    [%- INCLUDE "components/sidebar-lastupdate.tt" entity=label -%]
recording/layout.tt:    [%- INCLUDE "components/sidebar-rating.tt" entity=recording -%]
recording/layout.tt:    [%- INCLUDE "components/sidebar-tags.tt" entity=recording tags=top_tags tag_this_text=l('Tag this recording') -%]
recording/layout.tt:    [%- INCLUDE "components/sidebar-lastupdate.tt" entity=recording -%]
release_group/layout.tt:    [%- INCLUDE "components/sidebar-rating.tt" entity=rg -%]
release_group/layout.tt:    [%- INCLUDE "components/sidebar-tags.tt" entity=rg tags=top_tags tag_this_text=l('Tag this release group') -%]
release_group/layout.tt:    [%- INCLUDE "components/sidebar-lastupdate.tt" entity=rg -%]
work/layout.tt:    [%- INCLUDE "components/sidebar-rating.tt" entity=work -%]
work/layout.tt:    [%- INCLUDE "components/sidebar-tags.tt" entity=work tags=top_tags tag_this_text=l('Tag this work') -%]
work/layout.tt:    [%- INCLUDE "components/sidebar-lastupdate.tt" entity=work -%]

- Aurélien


I can confirm they weren't in there.  I only noticed them after the commit to svn, they went in with the commit adding my js work, but they did not stem from my github branch, so I'm not sure where they actually came from.

Brian

_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel

Re: [mb-commits] r12052 - in mb_server/trunk: lib/MusicBrainz/Server/Controller lib/MusicBrainz/Server/Plugin root root/components root/layout root/layout/sidebar root/release root/scripts root/static/scripts root/static/scripts/jquery roo

by Robert Kaye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 5, 2009, at 7:45 AM, Oliver Charles wrote:

> We can continue working on what we'e doing at the moment, or I can
> throw it out and write a much simpler editor, with JavaScript in just
> a few places (artist lookup etc) and have this done by the 15th...
>
> Shame Rob isn't back yet, could really do with his input here!


I don't have a problem with having in-place editing for the release  
editor and not in other places. Once we get further down the road,  
we'll realize that we either love or hate this approach. If we love  
it, then we should gradually change the other edit types to use in-
place editing as well.

The new site will have many many inconsistencies fixed that having one  
inconsistency like this will not make people too pissed off at us.

--

--ruaok      A village in Texas has its idiot back!

Robert Kaye     --     rob@...     --    http://mayhem-chaos.net


_______________________________________________
MusicBrainz-devel mailing list
MusicBrainz-devel@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel