Closed Bug 50063 Opened 24 years ago Closed 15 years ago

Ability to enter custom URL for sidebar tab

Categories

(SeaMonkey :: Sidebar, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: thedannunn, Unassigned)

Details

(Keywords: helpwanted)

Attachments

(4 files, 7 obsolete files)

It sure would be nice to be able to add any URL to the sidebar panel. What I
mean by this is, in the Customize Sidebar dialog, somewhere there would be a
button (or anything else deemed appropriate) to add any URL (and title) to the
sidebar, manually. Sure, this can be easily done using the Javascript call, but
not everyone (read: end-users) knows of this. Besides, it'd be handy. Any thoughts?
Agreed, good idea.
Advantages:
- Users couls use a normal (slim) webpage as sidebar.
- User could write their own local sidebar panel without having to write the JS
function.
- It would be easier to fix bad JS from the content provider (just occured for
me with Dino! <http://dino.mozdev.org>).

-> default owner. slamm is gone (I've been told).
Assignee: slamm → matt
Keywords: helpwanted
This looks like it could be implemented with a fairly simple patch.

However, what should the UI be for this feature? Should there be two textboxes
(Title, URL) and a button (Add this URL) on the "Customize Sidebar" window
(below "Available Tabes", maybe)? Or should "Customize Sidebar" have a button
"Add Specified URL", which brings up another window with the textboxes?
Adding mpt to cc list for opinions on UI issue (following advice on #mozillazine)
the easiest approach for a ui is to just make the sidebar a folder in 
bookmarks.  But that should be discussed in another bug.
> the easiest approach for a ui is to just make the sidebar a folder in
> bookmarks.

Good idea. Reuses code and UI patterns.

> But that should be discussed in another bug.

Why?
> Should there be two textboxes (Title, URL) and a button (Add this URL) on the
> "Customize Sidebar" window (below "Available Tabes", maybe)? Or should
> "Customize Sidebar" have a button "Add Specified URL", which brings up another
> window with the textboxes?

The latter, because users would naturally press Enter after entering the URL. So 
if you just put this UI into the `Customize Sidebar' dialog, where pressing 
`Enter' closes the Customize Sidebar dialog, users would keep closing the dialog 
by mistake (without adding the URL at all).

Also, you should be able to drag a link/URL to the tabs (as opposed to the 
sidebar content) in the open sidebar, to create a tab in the position you drop 
the URL.

> the easiest approach for a ui is to just make the sidebar a folder in
> bookmarks.

Tempting, but bookmarks and sidebar panels are conceptually very different things 
-- having to go to `Manage Bookmarks' in order to customize sidebar panels would 
make about as much sense as having to go to `Start' in order to Shut Down.
>Also, you should be able to drag a link/URL to the tabs (as opposed to the 
>sidebar content) in the open sidebar, to create a tab in the position you drop 
>the URL.

I've split off as bug 67175.
I believe the attached files add this functionality. Apologies for the two
separate files, I couldn't get "cvs diff" to list the contents of the new file.

Comments welcome.
+    <button id="add-url" value="Add specified URL" 
oncommand="OpenAddURLWindow()"/>
please use:
value="&sidebar.customize.addurl;"

new files should be under the MPL unless you are employed by netscape, see 
www.mozilla.org/MPL/boilerplate-1.1/

<script language="javascript" src="chrome://global/content/strres.js"/>
<script language="javascript" 
src="chrome://communicator/content/utilityOverlay.js"/>

<html:script>

don't use <html:script>, instead use <script>
don't use language="javascript", instead use type="text/javascript"

in the future, with cvs privs, you can do: cvs add file && cvs diff -N -u file 
to get diffs for new files.

for now, you can either attach diffs against your new file or attach a 
replacement.

Thanks for working on this.
Keywords: patch
spam : changing qa to sujay (New Sidebar QA)
QA Contact: shrir → sujay
While you're putting the button text into a properties file, please change it 
from `Add specified URL' to `Add Address as Tab...'
Why Address and not URL?

I'd argue for "Add tab from URL...", since you are not adding the URL, but the
*page* at the URL, as tab.
why not Make tab from URL?
> Why Address and not URL?

Because the overwhelming majority of the Web browser users I talk to know what an 
address is (in relation to the Web), but have no idea what an URL is.

The `From' suggestion is valid -- but on reflection I think the button would be 
most obvious if it just said `New ...'.
Sorry, but I'm not convinced that "New..." can be described as obvious.
mpt, I presume you would also prefer "Address for new sidebar panel" instead of
"URL for new sidebar panel" on the window?
Correct.
Attached patch Revised patch (obsolete) — Splinter Review
Attached file Revised new file addurl.xul (obsolete) —
For the addurl.xul patch, <textfield> should now be <textbox>
Keywords: review
Matthew,

The code looks fine.  Make sure you have the right makefiles for this.
I saw your comments about not putting it in the customize dialog.  What happens 
if we put it in a dialog. that inserts it into the RDF on the right tree.  That 
will be more work though.

r=matt
please use type="application/x-javascript"
r=timeless for that change

did no one object to this:
  <separator/>
timeless, would you prefer <separator orient="horizontal" class="thin"/> ? Or
are you saying it is unnecessary?
the latter? however perhpas you could attach a picture?
Matt, I think the makefiles (included in the patch) are OK.

timeless, including <separator> gives more spacing between the input fields and
the OK/Cancel buttons (which I prefer). What do you think?

And (oops) in the attached patch,
+    <button id="add-url" value="&sidebar.customize.addurl;" ...

should be
+    <button id="add-url" label="&sidebar.customize.addurl;" ...

in the change to customize.xul. New patch to follow.

Sorry for chiming in late but I don't think this is a very suitable solution 
for Netscape users, but probably more for the Mozilla type tinkerer. Two 
thoughts:
- Typing in a URL is a very inconvenient thing to (especially without 
autocomplete etc). Most content for sidebar is/will be offered through a button 
on a page
- I understand the desire to have custom content at the user's discretion above 
and beyond what's offered, but content added that way has never been designed 
for the sidebar (width, structure, interaction). I think something like 
http://www.livesidebar.com is a better solution to this problem, letting users 
pick snippets of a page and adding those to the sidebar.
Thinking this further I can see a day where users would simply select a portion 
of an arbitrary page on the web, and we'd extrapolate structure and location 
using the good old DOM, and adding that to the sidebar.
<title>Create Sidebar Tab</title>
<label>Name:</label><editbox/><br/>
<label>Address:</label><urlbar/>
<p><ok><cancel></p>
[Yes, this is not valid xml xul or html, but it should be human readable]
You're right about the space between the address and the buttons.

However, the ? icon doesn't seem useful.  The ellipsis do _not_ belong in the 
dialog title -- they would belong in the menu item/button that creates the 
dialog.

German is right that we should use the autocomplete widget.

Personally, you're duplicating way to many words, please consider my wording.  
I would make the dialog narrower (and my changes make it shorter).
New files attached, I note however that autocomplete is broken at the moment 
(bug 78771)
Target Milestone: --- → Future
Attachment #33851 - Attachment is obsolete: true
Attachment #23992 - Attachment is obsolete: true
Attachment #23993 - Attachment is obsolete: true
Attachment #24306 - Attachment is obsolete: true
Attachment #24307 - Attachment is obsolete: true
Attachment #32859 - Attachment is obsolete: true
Attachment #33160 - Attachment is obsolete: true
in the meantime, use this bookmarklet... I do and it works just dandy.

I've changed by normal "start page" to have target="_content" so I don't have to
drag links from the sidebar to the main page, and now I've got my own sidebar
without having to know how to create sidebars.

forget where I found this bookmarklet, or I'd give credit. I leave it in my
personal toolbar labeld "grab" ...

javascript:(function(){var x; x=prompt('Sidebar title:', document.title); if (x
!= null) { window.sidebar.addPanel(x,location.href,''); } })();

-matt
The patch in this bug does not apply cleanly... any chance of getting an updated
patch out?  Is the addurl.xul current with XUL syntax?  :)

If you update the patch, please add this bug as a dependency to bug 123569
reassigning matt's old bugs.
Assignee: matt → sgehani
MSIE on Mac already does this, and perfectly, via its Page Holder feature. The
UI is simplicity itself: Click page holder tab on left, the sidebar opens. Three
buttons: "Add page to holder" "Show links" "Favourites". 

Clicking "add page to holder" copies the currently viewed page into the sidebar,
Showlinks lists only the links on the page, and the favourites is a sub menu of
bookmarks, plus an "add page to pageholder favourites" entry.  

They're stored as a sub-folder of the main bookmarks. It doesn't matter what the
content of the page is, it's reformatted to the (resizable) bar, and its links
re-targeted to the main window.

I love this, and it's all that keeps using MSIE. Can it be done?
Summary: [RFE] Ability to enter custom URL for sidebar tab → Ability to enter custom URL for sidebar tab
Does this RFE deal also with editing/revising existing Sidebar urls/titles?
Product: Browser → Seamonkey
Assignee: samir_bugzilla → nobody
Priority: P3 → --
QA Contact: sujay → sidebar
Target Milestone: Future → ---
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
Status: NEW → UNCONFIRMED
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
Status: UNCONFIRMED → NEW
I don't see the SeaMonkey team working on this in anything but my wildest dreams where we have hundreds of people working on the code, so I'll be honest and WONTFIX this. Please work on this as a SeaMonkey 2 add-on and ask for inclusion in the main code only if that if getting widely adopted.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: