Closed
Bug 136413
Opened 22 years ago
Closed 22 years ago
publishing site name UI needs work
Categories
(SeaMonkey :: Composer, defect)
SeaMonkey
Composer
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: sujay, Assigned: cmanske)
References
Details
(Whiteboard: publish [adt2 RTM][fixed in branch],custrtm-)
Attachments
(2 files, 2 obsolete files)
17.34 KB,
image/gif
|
Details | |
13.18 KB,
patch
|
akkzilla
:
review+
hewitt
:
superreview+
|
Details | Diff | Splinter Review |
filing this bug per Kathy and also some usability feedback from Lisa. Site name field is causing some confusion in Publish dialog. One solution Kathy suggests is perhaps populating it with a recommended site name. Users have no idea that this site name field is just a mechanism to give your publish transfer a name that you can later refer to in the site settings.
Comment 1•22 years ago
|
||
The proposed fix is to create the site name as this: scheme host Here's an example: ftp marvin.mcom.com If that sitename is already in use, a number will be appended. -->brade
Assignee: cmanske → brade
Keywords: mozilla1.0,
nsbeta1
Whiteboard: publish
Target Milestone: --- → mozilla1.0
Updated•22 years ago
|
Status: NEW → ASSIGNED
adding Lisa's comments from another bug: ------- Additional Comments From lchiang@netscape.com 2002-04-10 11:53 ------- My initial confusion was with Site Names. I saw some URLs listed under site names and thought that this field was where I would specify the publishing URL. I didn't think of going to the Settings tab. I kept trying to figure out how to modify the site name since it's just a drop down list. I wanted to be able to type in it.
Comment 4•22 years ago
|
||
This should do it... feedback welcome.
Updated•22 years ago
|
Status: NEW → ASSIGNED
Whiteboard: publish → publish [FIX IN HAND] need r=, sr=, a=
Comment 5•22 years ago
|
||
This is a screenshot of the publish window when the patch is applied (in case you want to see the patch in action but don't want to go to the hassle of merging it into your tree). Note the site name text box is in the form "host (scheme)"
Comment 6•22 years ago
|
||
Ryan--does this patch work if you rename your site to something else? It looks like it always sets the sitename to the host (scheme) instead of setting it only when a new site is defined (perhaps I need more context)?
Comment 7•22 years ago
|
||
Brade, I tried the following: 1. Open the composer and bring up the Publishing Site Settings dialog 2. Create a new site with the following information: Site Name: Mozilla Publishing URL: http://www.mozilla.org/ HTTP address: http://www.mozilla.org 3. Click Ok 4. Go to File >> Open Web Location... 5. Open www.mozilla.org in a composer window 6. Once the page loads, go to File >> Publish As 7. Note the site name is "Mozilla" and the publishing url is "mozilla.org" (not http://www.mozilla.org like it is when you don't have a site defined). IIRC, a loop looking for a known site is run before we even get to the host (scheme) code. We should be okay :) Hope that clears it up!
Comment 8•22 years ago
|
||
OK, I actually looked at your patch along side the checked in version and saw the piece I was missing (more context in your patch is generally very useful). r=brade
Comment 9•22 years ago
|
||
Comment on attachment 78639 [details] [diff] [review] Fix, implemented as suggested r=brade (though I'd shorten the comment (remove example) so it's < 80 col)
Attachment #78639 -
Flags: review+
Comment 10•22 years ago
|
||
Comment on attachment 78639 [details] [diff] [review] Fix, implemented as suggested sr=kin@netscape.com
Attachment #78639 -
Flags: superreview+
Comment 11•22 years ago
|
||
I have checked this in on the trunk for Ryan. Hopefully we can land it on the branch later.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: publish [FIX IN HAND] need r=, sr=, a= → publish [FIX IN HAND] [adt3] [RTM]
Assignee | ||
Comment 12•22 years ago
|
||
Comment on attachment 78639 [details] [diff] [review] Fix, implemented as suggested Not complete. We also have to test for duplicates to existing sitenames and append something like a "-x" number as well.
Attachment #78639 -
Flags: needs-work+
Comment 13•22 years ago
|
||
reopen bug to address duplicate names and/or appending of numbers
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 14•22 years ago
|
||
I'm going to take this back since I've discovered a more serious, but related problem: When user changes the sitename, we create a new entry in the publishing database instead of simply changing the sitename. This will bloat and pollute the site database in prefs with lots of useless sites. I'll use the work that Ryan did for the new sitename creation algorithm. Thanks!
Assignee: rcassin → cmanske
Status: REOPENED → NEW
Assignee | ||
Comment 15•22 years ago
|
||
Adds "previousSiteName" variable to publishData so user can change sitename but we detect previous site in publish data saved to prefs and update that instead of adding a new site. These lines were deleted: - if (siteCount > 1) - siteNameList.sort(); because the siteNameList was already sorted when it was obtained by this existing code: // Array of site names - sorted, but don't put default name first var siteNameList = GetSiteNameList(true, false);
Attachment #78639 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Whiteboard: publish [FIX IN HAND] [adt3] [RTM] → publish [FIX IN HAND] [adt3] [RTM] need r=,sr=
Comment 16•22 years ago
|
||
Comment on attachment 80608 [details] [diff] [review] patch v2 >- if (selectedItem && selectedItem.getAttribute("label") != siteName) >+ var oldName = selectedItem.getAttribute("label"); >+ if (selectedItem && oldName != siteName) Most of it looks fine, but I don't understand this part. You used to be checking selectedItem before dereferencing it, but now you're dereferencing first, checking second. Why, and is that safe?
Assignee | ||
Comment 17•22 years ago
|
||
fixed issue found by akkana
Assignee | ||
Updated•22 years ago
|
Attachment #80608 -
Attachment is obsolete: true
Comment 18•22 years ago
|
||
Comment on attachment 80892 [details] [diff] [review] patch v3 r=akkana
Attachment #80892 -
Flags: review+
Assignee | ||
Updated•22 years ago
|
Whiteboard: publish [FIX IN HAND] [adt3] [RTM] need r=,sr= → publish [FIX IN HAND] [adt3] [RTM] need sr=
Comment 19•22 years ago
|
||
Comment on attachment 80892 [details] [diff] [review] patch v3 sr=hewitt
Attachment #80892 -
Flags: superreview+
Assignee | ||
Comment 20•22 years ago
|
||
checked into trunk new revision: 1.12; previous revision: 1.11
Status: ASSIGNED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → FIXED
Whiteboard: publish [FIX IN HAND] [adt3] [RTM] need sr= → publish [adt2 RTM]
Assignee | ||
Updated•22 years ago
|
Comment 22•22 years ago
|
||
adt1.0.0+ (on ADT's behalf) for approval to checkin to the 1.0 branch, pending Drivers approval. After, checking in, please add the fixed1.0 keyword.
Comment 23•22 years ago
|
||
Adding custrtm-; no impact on customization.
Whiteboard: publish [adt2 RTM] [Needs a=] → publish [adt2 RTM] [Needs a=],custrtm-
Assignee | ||
Updated•22 years ago
|
Keywords: mozilla1.0.1
Assignee | ||
Updated•22 years ago
|
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 24•22 years ago
|
||
a=chofmann for 1.0.1
Assignee | ||
Updated•22 years ago
|
Keywords: mozilla1.0.1 → mozilla1.0.1+
Whiteboard: publish [adt2 RTM] [Needs a=],custrtm- → publish [adt2 RTM] approved,custrtm-
Assignee | ||
Comment 25•22 years ago
|
||
checked into mozilla1.0.1 branch
Keywords: mozilla1.0.1+ → fixed1.0.1
Whiteboard: publish [adt2 RTM] approved,custrtm- → publish [adt2 RTM][fixed in branch],custrtm-
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•