Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337443 - [client] consolidating login info in the UI
Summary: [client] consolidating login info in the UI
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 09:31 EST by Susan McCourt CLA
Modified: 2011-09-01 11:41 EDT (History)
2 users (show)

See Also:


Attachments
screenshot (7.70 KB, image/png)
2011-02-17 09:31 EST, Susan McCourt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2011-02-17 09:31:57 EST
Created attachment 189186 [details]
screenshot

See attached screenshot.
We are currently showing the user name and the login time in the banner area of our pages.  This can take up quite a bit of room, more room than the search bar.

Short run:  Can we put the login time in a hover rather than show it in the banner?
Slightly longer run: I'd like to build commands for login/logout and rearrange the login information under a menu. (see bug 334191 comment 5).  In fact, I'd like to have freedom to play around with this without having to touch too much code.  What can we do to get the user display info all in one place?  If you show me where it is, I can convert this stuff to commands and register the commands.  Then I could independently play with the rendering of them (layout, whether they are in a menu, etc.)
Comment 1 Szymon Brandys CLA 2011-02-17 13:28:05 EST
(In reply to comment #0)
> Slightly longer run: I'd like to build commands for login/logout and rearrange
> the login information under a menu. (see bug 334191 comment 5).  In fact, I'd
> like to have freedom to play around with this without having to touch too much
> code.  

Go to org.eclipse.orion.server.authentication.form and authentication.formopenid and find xhrAuth.js. This is where we add these things to the toolbar.
Comment 2 Susan McCourt CLA 2011-02-23 23:45:47 EST
I'll take this because I'm in the process of generating all banner code from one place...
Comment 3 Susan McCourt CLA 2011-02-24 03:58:18 EST
fixed.  (It would be useful if someone more familiar with the code could double check that I covered all the login provider cases, as there is code duplicated across different providers.)

The good news is that I've consolidated everything into utility methods so I should be able to tweak the UI without having to go back and touch the various files again.  I didn't move the login stuff to commands per se, just to a utility method that creates a login menu.  When we get to the point that we want to allow plug-ins to add commands to this menu, I can define it using the command framework.