[Script] URComments-Enhanced (URC-E)

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderators: Unholy, bextein, Glodenox, JustinS83

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

[Script] URComments-Enhanced (URC-E)

Postby dBsooner » Fri Jan 25, 2019 3:57 pm

WME URComments-Enhanced (URC-E)

Version: 2019.10.11.01

Greasyfork: https://greasyfork.org/en/scripts/37543 ... s-enhanced

Description: URComments-Enhanced (URC-E) allows Waze editors to handle WME update requests more quickly and efficiently. Also adds many UR filtering options, ability to change the markers, plus much, much, more! (See next post for full feature list)

Developer(s): dBsooner through WazeDev. WazeDev owns the script and all information attached to it.

Note: URC-E is a replacement for URC and URC companion add-on scripts. With URC-E you no longer need URC or any of the different comment list add-on scripts. All current add-on scripts have been ported and work natively within URC-E. You may disable and/or remove URC and the add-on scripts. However, if you use your own "Custom" local list, you will still need to keep that add-on installed and enabled to use the "Custom" drop down. Hey, this could be a time to discuss converting to the new system? *wink* *wink*

Note 2: All features that URO+ applies to URs (filtering, map marker replacement, mouseover tooltip popup, etc.) have been included in URC-E.

CALLING COMMENT LIST OWNERS: All the URC comment lists have been ported to URC-E. They are now manageable through the below Google Sheet link. If you are the original owner of the list, please contact me via PM or Discord DM. If you no longer wish to maintain the list, I need to know that as well. If you would like to maintain a list, please also contact me and I can try to get in touch with the owner.

NEW LISTS: If you are interested in having your own list included, please contact me. The best scenario would be to have lists for states / regions or countries. I am working with several regions currently and they are following a model I have created in the SCR that allows for a group of editors to combine their ideas together to create a region list.

Current comment lists:
  • Bahasa Indonesia: projectronic
  • CommentTeam: CommentTeam (See list below) - Initial DEFAULT list
  • Custom (for use by those that still have an addon static "custom" list)
  • Custom G Sheet (for using your own custom comment list hosted in a Google Sheet)
  • Dutch - Belgium: WimVandierendonck
  • Dutch - Netherlands: moweez
  • English - India: moweez
  • English - International: moweez
  • Estonian: matsalka
  • French: Corentin-48, asph4lt
  • German: Iridium1
  • German - Austria: fuchserl
  • Israeli Hebrew
  • Italian: m4rc072
  • Lithuanian: moweez
  • Malaysia (en-zh-ms) - Rising_Sun
  • Persian: babak_khd, BehnamNHappy, Shrm75
  • Polish: mdymek
  • Portuguese - Brazil: GibiruX_ - AUTOSWITCH for country Brazil
  • Portuguese - Portugal
  • Romanian: spookyx
  • South Africa: adrianvrsa
  • Spanish - Bolivia: crotalo
  • Spanish - Chile: Gasparfox
  • Spanish - Colombian: mincho77
  • Spanish - Dominican: RafaCintron, mincho77
  • Spanish - Ecuador: aamazotr
  • Spanish - Mexico: arielorellana
  • Spanish - Puerto Rico: cotero2002 - AUTOSWITCH for country Puerto Rico
  • Spanish - Spain: huakayo
  • Spanish - Venezuela: moweez
  • Switzerland - DE: vince1612 (Auto-switch for states with DE language)
  • Switzerland - FR: vince1612 (Auto-switch for states with FR language)
  • Switzerland - IT: vince1612 (Auto-switch for states with IT language)
  • USA - SCR: SCR CommentTeam - AUTOSWITCH for states Arkansas, Louisiana, Mississippi, Oklahoma and Texas
  • USA - SER: itzwolf - AUTOSWITCH for states Alabama, Florida and Georgia
  • USA - NOR: NOR CommentTeam
  • USA - MAR: MAR CommentTeam
  • User: PesachZ: PezachZ

CommentTeam List Representatives:

Restriction system enforcements:
  • No autosend reminders
    • USA - SAT Region (All States)
    • USA - SCR Region (All States)
    • USA - West Virginia

Changelog:
Code: Select all
2019.10.11.01: NEW: Filter icon in tab title bar to quickly toggle UR filtering.
               NEW: New spinner icon in URC-E tab title bar to indicate when URC-E is
                    actively processing something.
               BUGFIX: UR ID not being detected correctly in certain situations.
2019.09.25.01: NEW: Remember collapsed state of More Information box in UR Panel.
               NEW: Unknown venue name (no name on venue / place) is now translatable
                    to locale(s).
               NEW: Unknown road name (no name on road / segment) is now translatable
                    to locale(s).
               BUGFIX: Translations not loading correctly in certain situations.
               BUGFIX: Variable detection improvement.
               BUGFIX: Variables slipping through auto-post reminder routine in certain
                       situations.
2019.08.30.01: CHANGE: Changed restrictions applied to be a warning icon in
                       settings and comment list.
               BUGFIX: Another fix for the restrictions alert.
2019.08.28.01: CHANGE: Shortcuts in UR are now collapsible, with state retained in settings.
               BUGFIX: Shortcuts not correctly initiating other events.
               BUGFIX: Country and state being re-added multiple times by WME. (workaround)
2019.08.27.01: NEW: New comment box will have a peachish background color
                    if append mode is enabled.
               CHANGE: Major overhaul of output text to limit number of jQuery operations.
                       BIG speed increase.
               CHANGE: Removed automated custom sheet creation / conversion.
               CHANGE: Added manual custom sheet creation / conversion (conversion will
                       still work).
               CHANGE: Alert box completely removed in favor of WazeWrap alerts (missed one
                       or two).
               CHANGE: Ability to translate intersection / segment naming to locales.
               CHANGE: Catch if row 25 is not set to "GROUP TITLE" and report gracefully.
               CHANGE: Queue auto-sent reminders info box and display after completion of
                       routine.
               CHANGE: Better handle carriage returns during shortcut insertion.
               BUGFIX: Restoring settings would inadvertantly get overwritten by WazeWrap
                       backups.
               BUGFIX: Better handling of errors in processing so mask boxes get removed.
               BUGFIX: Improper handling of mouse events in some browsers.
2019.08.16.01: NEW: Custom text replace variables via sheets.
               NEW: Custom tagline setting. (Per comment list or "master")
               NEW: More shortcuts: current date, current date casual, current day of week,
                    current time, current time casual, custom tagline, place address, place
                    name, UR type. (Available via UR panel and variable in comments)
               NEW: $SELSEGS_WITH_CITY$ : Same as $SELSEGS$, except includes 'in CITY' if
                    selected segment(s) have a matching primary city, or only one has a
                    primary city.
               NEW: Link to enable / disable URCE UR filtering added to comment tab.
               BUGFIX: Per comment list text boxes not saving correctly.
               BUGFIX: Check for ALL $$ in comment before automatically clicking send.
               BUGFIX: Selected segments variable replacement could show undefined.
2019.07.24.01: BUGFIX: Further refinement of unstacking and selection.
               CHANGE: Future deprecation of properties for countries and states.
2019.07.23.01: NEW: WazeWrap settings storage ability.
               CHANGE: Compatibility with latest WME release.
               CHANGE: Cleanup of mutation processing.
               BUGFIX: Per comment list settings toggles.
2019.05.04.01: CHANGE: Using WazeWrap alert system.
               BUGFIX: Restrictions not updating correctly on map move in certain situations.
               BUGFIX: Need translation message box not displayed correctly.
               BUGFIX: Last comment more than days old filter.
2019.04.30.01: NEW: Filter by closed by (comma separated list of usernames).
               NEW: Link to Custom Google Spreadsheet on settings tab.
               CHANGE: Filter by keyword is now regex compatible.
               REMOVED: Filter by type Waze automatic (deprecated).
               BUGFIX: Check restrictions and load comment list failed to run during mode
                       change.
               BUGFIX: Re-initialization of background tasks failed to run when returning from
                       events mode.
               BUGFIX: Alignment of "Use URC-E Master Settings setting" in different locales.
               BUGFIX: Zoom out links did not work.
               BUGFIX: Switching comment lists could result in incorrect default comments.
2019.04.12.02: BUGFIX: 2019.04.12.01 had issue with new fully casual shortcut.
2019.04.12.01: NEW: Casual day and time shortcut and variable for use in custom comments. (See
                    tooltip)
               NEW: Invert filters.
               NEW: Filter URs with / without comments from specified user(s).
               CHANGE: Slight change to casual times. Afternoon now lasts until 1759 instead of
                       1359.
               CHANGE: $SELSEGS$ no longer gives popup.
               CHANGE: New comment box detects variables (text wrapped with $\'s) and disables
                       the send button until they are no longer present.
               CHANGE: UR Overflow handling now obeys WME layer setting for show/hide closed.
               ENHANCEMENT: Longer wait for Waze model to populate countries data.
               ENHANCEMENT: Background tasks are temporarily disabled during overflow so data
                            from overflow can be reused for speed.
               ENHANCEMENT: Complete overhaul to conform with stricter eslint rules.
               ENHANCEMENT: UR marker mouseover now wraps long descriptions at 80 characters to
                            prevent extremely wide popups.
               BUGFIX: Loading fails if comment list contains empty row. (again)
               BUGFIX: Hard fail changed to Soft fail for UR in URL when UR Panel never appears.
               BUGFIX: Username was being added to pill even if the setting was disabled.
               BUGFIX: Certain old URC custom addons threw an error due to formatting.
2019.03.29.01: NEW: Restriction system for use by region / country leadership!
               NEW: Backup URC-E settings to JSON.
               NEW: Restore URC-E settings from backup JSON file.
               NEW: Reset URC-E settings to default.
               NEW: Create your own Custom List with a Google Spreadsheet!
               NEW: Convert your current custom list to a Google Spreadsheet!
               ENHANCEMENT: Moved all timeouts into an object.
               ENHANCEMENT: Combined banners and panel alerts into single function.
               ENHANCEMENT: Append mode / shortcuts / insert comment / etc. now return focus to
                            the new comment box.
               ENHANCEMENT: Append mode now ensures there is a blank line before and after the
                            inserted comment.
               CHANGE: Auto zoom in on new UR only zooms in for URs with zero comments and you
                       are zoomed out beyond zoom level 5.
               CHANGE: Auto center on UR will now recenter the map for ALL URs at the current
                       zoom level.
               CHANGE: Auto zoom out after comment will zoom you back to the zoom level you were
                       at when the UR Panel opened.
               BUGFIX: Hide without description failed to filter in some instances.
               BUGFIX: Some timeouts needed indexing. Now indexed based on random ID generated
                       at time of timeout call.
               BUGFIX: Comments erroneously inserted into map comment new comment box as well.
               BUGFIX: Pill colors not applying correctly. New color added (see forum thread).
               BUGFIX: Custom marker by custom text not working correctly.
2019.03.06.01: NEW: Per comment list settings!
               ENHANCEMENT: Handle changing to MTE mode and back cleanly.
               ENHANCEMENT: Append mode now inserts new comment at cursor position.
               ENHANCEMENT: Customizable unstack sensitivity and disable above zoom (zoomed out
                            beyond) level.
               ENHANCEMENT: Unstack markers now temporarily hides markers not involved in the
                            unstacking.
               ENHANCEMENT: Split Auto set new UR comment (with description) out to not insert
                            on SLURs and added a new setting of Auto set new UR Comment (SLUR).
               ENHANCEMENT: Better overflow handling. Now queues sub-quadrants to get ALL URs.
               ENHANCEMENT: Improved center on UR (popup link), UR Panel crosshairs click and
                            center on UR function.
               ENHANCEMENT: Added dismiss button for over limit message and need translation
                            message.
               ENHANCEMENT: Removed unnecessary logging.
               BUGFIX: Popup prevented selecting unstacked UR in some situations.
               BUGFIX: Unstack / restack routine sometimes flickered the UR markers involved.
               BUGFIX: Default comment with $SELSEGS$ did not give popup alert.
2019.03.03.01: Incorrect version # released for version 2019.03.01.01.
2019.03.01.01: NEW: UR overflow handling (aka "backfill").
               NEW: Warning for more than 499 URs on screen when UR overflow is not enabled.
               NEW: Auto refresh setting on zoom / pan.
               CHANGE: Auto center on UR now automatically centers at current zoom level for all
                       levels.
               ENHANCE: Debug logging for marker manipulation now queues into single per
                        manipulation type log message.
               BUGFIX: Filtering intermittent during zooms and other functions.
2019.02.21.01: NEW: Added shortcuts for text insertion to UR Panel.
               NEW: Added "expand all" and "collapse all" links to settings and comment list.
               NEW: Need translation banner for languages (locales) without a translation.
               NEW: Switched to using WazeWrap for WME event hooks.
               BUGFIX: Auto set comment issue when UR created with LiveMap.
               ENHANCED: With new shortcuts, dependency on panel swap for segment name insertion
                         is removed.
2019.02.18.01: NEW: Added text replacement options in comment lists for drive date and time.
               ENHANCED: Auto set new UR comment split into two settings (with and without
                         description).
               ENHANCED: Title differentiation for beta script.
               BUGFIX: Entering event mode and back to default caused duplication of tab icon
                       and random marker issues.
2019.02.08.01: NEW: Ability to append a comment (Append mode).
               NEW: Switch comment lists from the comment list tab.
                    Note: This does not change your default list and is not saved.
               BUGFIX: Selecting a MP caused URC-E to inadvertently process.
2019.02.06.02: CHANGE: Auto Close UR Panel now closes the UR panel on any comment send.
               BUGFIX: Parsing of old static list failed for some users.
2019.02.04.02: NEW: WazeWrap update integration.
               BUGFIX: Not able to change lists in some situations.
               BUGFIX: ZoomIn on new.
               BUGFIX: WME bug workaround.
               BUGFIX: AutoCenter on commented.
               BUGFIX: Last Comment By in popup.-
               Other slight changes to prevent future bugs.
2019.02.01.01: UPDATE: Additional comment replacement text.
2019.01.31.04: BUGFIX: Circumvent WME map marker bug.
2019.01.31.03: BUGFIX: Double click to dismiss didn't restack markers.
2019.01.31.02: NEW: Double click to dismiss UR marker tooltip
               NEW: UR marker tooltip delay.
2019.01.31.01: First public release of URC-E!


URC-E Google Sheet: Here

Special thanks:
  • WazeDev team! Specificaly MapOMatic and JustinS83. You all have helped me along this road and I greatly appreciate it! Both of you are directly responsible for several of the code inclusions in URC-E, so without you, it wouldn't have happened.
  • URC-E beta testers! Too many to name individually, but know each of you are important to this script!
  • RickZabel for the original URC code. Working URs was made so much easier once URC was created. Out went the copy / paste from our own text files and in came an automated system. I am grateful for this script and wanted to enhance it beyond what it did at the time. Hints the name: URComments-Enhanced.
  • The URO+ team. Their script truly has revolutionized what WME can do. It offers so many options and does so many different things! I took the UR portion of their script (all the options it does in respect to URs) and used these as a jumping point for the URC-E additional feature set.

TL;DR: The primary goal of the script was to increase efficiency and add the ability for states, regions and/or countries to be able to create and manage their own custom lists in a simple way. Then, I wanted to make sure these lists were known about and were utilized when working a UR in one of the custom list areas. Thus, I created an "auto-switch" option. So when you open a UR in an area that has a specific list, you are automatically switched to that list. Then the script really took off. I added many more features as well as made the interface a little more spiffy.

URC-E was written new from the ground-up, taking the basic look, feel and funcationality from URC and URO+. However, all underlying code was written with efficiency, speed, resource management, etc. in mind. Gone are the constant every 10ms-100ms running of functions. In are the way of the future: MutationObservers. What does this mean? URC-E doesn't do anything while WME is sitting idle. It only reacts to changes as they happen in WME, while retaining ALL the functionality of URC and URO+ (in regards to URs) and then some!

Want to know more or what certain features do? Read on below.

Thank you everyone! Enjoy!

Screenshots:
Animation GIFs:
[ img ][ img ][ img ]
Settings:
[ img ] [ img ] [ img ] [ img ]
UR Panel:
[ img ]
Pill color chart:
[ img ]
Last edited by dBsooner on Fri Oct 11, 2019 6:07 pm, edited 35 times in total.
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 12 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 593
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 360 times
Been thanked: 315 times

Re: [Script] URComments-Enhanced (URC-E)

Postby dBsooner » Fri Jan 25, 2019 3:58 pm

Feature list:
  • Primary Features:
    • Comment lists are maintained by list owners via a Google Sheet. Changes made are instantly live within URC-E. No need to update the script for a comment change.
    • 100% I18n translations compliant. NOTE: Translators needed! Please PM or Discord DM dBsooner if you are fluent in any language other than English and wish to help!
    • Auto switch comment list: Automatically switch to the comment list designated for the area the UR is in, if there is a list associated with the area. Opening a UR in an area that does not have a list associated will use the ""Comment List"" you have selected above.
    • Two UI styles: Default and UR Style
    • Tag email: Some comment lists have specific comments that use a replacement tag. The replacement tag is used to specify an email address to send correspondence to. If you are setup to use one of these email addresses, please specify it here. If not, leave it blank.
    • Comment List drop down on Comment list tab: You can change the currently loaded comment list using this drop down. Changing this drop down will not be saved as a setting and will not change your default list (located on the settings tab). This is only to allow you to quickly switch between lists.
    • Enable append comment mode: Enabling append comment mode will allow you to append a comment to the existing text in the new-comment box. The comment is appended with a blank line between the existing text and the new text. The status of the UR is set to the status of the new comment you clicked to append. If the comment would end up being longer than 2000 characters, append mode will give a warning and not alter the text in the comment box, but the status would have been changed.
    • Per comment list settings: The settings located in this box are customizable per comment list. By default, all comment lists use the "URC-E Master Settings" setting for each of the "Per comment list" settings. The box on the far right is the "Use URC-E Master Setting setting" for each given setting and list. (See more info below)
    • Restriction system: Gives the ability for region leadership to enforce certain features to be enabled or disabled. Region leadership has the option of enabling this system by state or country.
    • Tools tab:
      • Backup / restore / reset settings system - Backup your settings to a JSON file. Restore settings from this JSON file (do not modify the JSON file directly!). Reset URC-E back to default settings (pretty much everything disabled).
      • Create your own custom comment list with a Google spreadsheet!
      • Convert your current custom comment list to a Google spreadsheet!
    • Custom variables! See end of this post.
  • WME UI Tweaks:
    • Widen UR Panel to 300px to keep 'Submitted on' date from wrapping.
    • UR marker pill with # comments, # days ago, etc. (See Marker preferences)
    • UR marker replacement with URO+ style marker icons for tagged URs.
    • URO+ style marker mouse-over tooltip popup with some additions:
      • Added "First comment: X days ago by editor_name (rank)"
      • Added "Last comment: X days ago by editor_name (rank)"
      • Added "Reporter has commented: Yes/No
      • Changed line breaks and spacing.
    • Added (UR ID) to header title of UR panel.
    • Added (x days ago) to each comment in UR panel.
    • Replace Next UR with Done OR hide altogether (in UR panel).
    • Added shortcuts to UR Panel for text insertion. See the end of this post for list.
  • URC-E Preferences:
    • Auto center on UR: Auto center the map to the selected UR at the current map zoom level.
    • Auto click open, solved or not identified: Suppress the message about recent pending questions to the reporter and then, depending on the choice set for that comment, automatically select Open, Solved or Not Identified.
    • Auto close UR panel: Automatically close the UR panel after you click send on a comment.
    • Auto save after solved or NI comment: If 'Auto Click Open, Solved or Not Identified' is also checked, this will automatically click the save button after you click send on a comment that set the UR to Solved or Not Identified.
    • Auto send reminders: Automatically send the reminder comment to the URs in the map window (as you pan around) you were the last to comment on and it has reached the days specified in 'Reminder Days'. !!WARNING!! AUTOMATICALLY SEND REMINDERS at the reminder days setting. This only happens when they are visible on your screen. NOTE: When using this feature you should not leave URs open unless you asked a questionthat needs a response from the reporter, as this script will send reminders to all open URs after 'Reminder days'.
    • Auto set new UR comment (without description): Automatically set the default UR comment for the UR type on new (do not already have comments) URs that do not have descriptions.
    • Auto set new UR comment (SLURs): Automatically set the default UR comment for new (do not already have comments) SLURs.
    • Auto set new UR comment (with description): Automatically set the default UR comment for the UR type on new (do not already have comments) URs that do have descriptions.
    • Auto set reminder UR comment: Automatically set the UR reminder comment for URs that are older than the 'Reminder days' setting and have only one comment.
    • Auto switch to the URC-E tab: Automatically switch to the URComments-Enhanced tab when opening a UR. When the UR panel is closed you will be switched back to your previous tab.
    • Auto zoom in on new UR: Automatically zoom in when opening new (no comments) URs.
    • Auto zoom out after comment: Automatically zoom the map back to the previous zoom after clicking clicking send on a UR comment.
    • Disable Done / Next UR button: Disable the done / next buttons at the bottom of the UR panel.
    • Replace Next UR button with Done: Replace the Next Update Request button with a Done button.
    • Double click link - Not Identified comments: Add an image (extra link) to the 'not identified' comments. When double clicked it will automatically set and send the UR comment of the one you double clicked, and then launch all of the other options that are enabled.
    • Double click link - Open comments: Add an image (extra link) to the 'open' comments. When double clicked it will automatically set and send the UR comment of the one you double clicked, and then launch all of the other options that are enabled.
    • Double click link - Solved comments: Add an image (extra link) to the 'solved' comments. When double clicked it will automatically set and send the UR comment of the one you double clicked, and then launch all of the other options that are enabled.
    • Hide zoom out links: Hide the zoom out links on the comments tab.
    • Unfollow UR after send: Unfollow the UR after sending a comment.
    • Enable UR overflow handling: If this setting is enabled and there are more than 499 URs on the screen, URC-E will attempt to gather more URs and add them to the map, if they do not already exist. WME does not display more than 500 URs on a single screen on its own. This setting follows the WME Layer setting for hide / show closed URs.
    • Enable auto refresh on zoom / pan: Reloads the map data when zooming or panning to show URs that may have been missed due to WME's 500 UR limit. Will only reload if the zoom level is between 3 and 10, there are not pending edits, and there are more than 499 URs loaded.
    • Tag email: Some comment lists have specific comments that use a replacement tag. The replacement tag is used to specify an email address to send correspondence to. If you are setup to use one of these email addresses, please specify it here. If not, leave it blank.
    • Reminder days: Number of days to use when calculating UR filtering and when setting and/or sending the reminder comment. This is the number of days since the first comment. Set to 0 if you do not use reminders.
    • Close days: Number of days to use when calculating UR filtering. This is the number of days since the last comment. Example: If you close 4 days after the last comment, set to 4. Anything less than this time will be considered 'waiting' as long as there is at least one comment already.
    • Custom tagline:This is to allow users to have a single "tagline" that can be added to the end of each comment they want. A managed list might use this and tell you what to do. An example of a custom tagline: "If you still have issues after this report is closed. Please feel free to email me at my@email.com." Then a comment would have the variable $CUSTOMTAGLINE$ in it and would insert your tagline there. The custom tagline is a "per comment list" setting. Meaning you can have a different one for each comment list, or have them use the "master" setting.
  • UR Marker Preferences:
    • Enable UR pill counts: Enable or disable the pill with UR counts on the map marker.
    • Disable UR marker popup: Do not show the UR popup tooltip when you mouse over a UR marker.
    • UR marker popup delay: The number of milliseconds (* 100) to delay before the UR marker tooltip will be displayed.
    • UR marker popup timeout: Specify the number of seconds to leave the UR marker tooltip displayed, while hovering over the marker. Leaving the marker, unless to the tooltip itself, will cause the tooltip to close. Entering the tooltip will cancel the timer and leaving the tooltip will close the tooltip. Double click to quickly close.
    • Don't show tag name on pill: Do not show the tag name on the pill where there is a tag. Example: [NOTE]
    • Replace tag name with editor name: When a UR has the logged in editors name in the description or any of the comments of the UR (not the name Waze automatically adds when commenting), replace the tag type with the editors name.
    • Unstack markers: Attempt to unstack markers by offsetting them. Similar to how URO+ unstacks markers. Markers not involved in the current "stack" will be temporarily hidden until restacking.
      • Unstack sensitivity: Specify the sensitivity for which markers are considered stacked. Default: 15.
      • Unstack disable when zoom level <: Disabled unstacking when zoomed out wider than the specified zoom. Default: 3.
    • Use Custom Markers for: Replace default UR marker with custom marker for the URs with these tags in the description or comments:
      Code: Select all
      [BOG] / [BOTG]
      [CLOSURE]
      [CONSTRUCTION]
      [DIFFICULT]
      [EVENT]
      [NOTE]
      [ROADWORKS]
      [WSLM]
      Native speed limits
      Custom: You specify.
  • UR Filtering Preferences:
    • Enable URC-E UR filtering: Enable or disable URComments-Enhanced built-in UR filtering.
    • Invert filters: When enabled, changes all filters to be "show" instead of "hide".
    • Hide outside editable area: Hide URs outside your editable area.
    • Do not filter tagged URs: Do not filter URs that are tagged with a [] tag. Example: [NOTE]
    • Do not hide selected UR: Do not hide a UR if it is currently being selected.
    • Disable filtering when zoom level <: Disabled UR filtering when zoomed out wider than the specified zoom level. Set to '0' to enable all filtering.
    • Disable filtering when zoom level >: Disable UR filtering when zoomed in tighter than the specified zoom level. Set to '10' to enable all filtering.
    • Hide/show by lifecycle status:
      • Waiting: If you use reminders (Reminder days > 0), waiting is any UR with more than 1 comment and less than the close days from the last comment. I.E. The URs that do not need work.
      • Close needed: Any UR with more than 1 comment (if using reminders) or at least 1 comment (if not using reminders) and last comment is older than close days ago.
      • Reminders needed: If using reminders, any UR with only 1 comment and that comment was greater than reminder days ago.
    • Hide/show by status: Hide/show URs by their current status.
      • Open
      • Closed
      • Not identified
      • Solved
      • Closed by: Command separated listed of username(s).
    • Hide/show by type: Hide/show URs based on their Waze UR type (note some of these are not used by Waze at the moment).
      • Closed road
      • General error
      • Incorrect address
      • Incorrect junction
      • Incorrect route
      • Incorrect street prefix or suffix
      • Incorrect turn
      • Missing bridge overpass
      • Missing exit
      • Missing Place
      • Missing or invalid speed limit
      • Missing road
      • Missing roundabout
      • Missing street name
      • Turn not allowed
      • Undefined
      • Waze automatic
      • Improper / Poor navigation instructions
    • Hide/show by tagged: Hide/show all URs with the specified TAG in description or comments.
      Code: Select all
      [BOG] / [BOTG]
      [CLOSURE]
      [CONSTRUCTION]
      [DIFFICULT]
      [EVENT]
      [NOTE]
      [ROADWORKS]
      [WSLM]
    • Hide/show by age of submission:
      • Less than days: Hide/show URs that were originally created less than specified number of days ago.
      • More than days: Hide/show URs that were originally created more than specified number of days ago.
    • Hide/show by description, comment, following:
      • Following / Not following: Hide/show URs you are following or not following.
      • Description With / Without: Hide/show URs with or without descriptions.
      • Comments from me With / Without: Hide/show URs with or without comments from you.
      • First comment by me Yes / No: Hide/show URS where the first comment was by you or not by you.
      • Last comment by me Yes / No: Hide/show URs where the last comment was by you or not by you.
      • Last comment by reporter Yes / No: Hide/show URs where the last comment was by the reporter or not.
      • Less than comments: Hide/show URs that contain less comments than the number specified.
      • More than comments: Hide/show URs that contain more comments than the number specified.
      • First comment less than days: Hide/show URs where the first comment is less than the days specified ago.
      • First comment more than days: Hide/show URs where the first comment is more than the days specified ago.
      • Last comment less than days: Hide/show URs where the last comment is less than the days specified ago.
      • Last comment more than days: Hide/show URs where the last comment is more than the days specified ago.
      • Including keyword: Hide/show URs that include the custom word / text specified.
      • Not including keyword: Hide/show URs that do not include the custom word / text specified.
      • Case-insensitive keyword matches: If enabled, searching for the above including or not including keywords will be done using case insensitive searching.
      • With comment by: Hide/show URs that have been commented on by the specified user(s). Use a comma (",") to separate usernames.
      • Without comment by: Hide/show URs that have note been commented on by the specified user(s). Use a comma (",") to separate usernames.

The per comment list settings additionally have the following occurring on them:
  1. When you check / uncheck the "Use URC-E Master Settings setting" checkbox for a given per comment list setting, URC-E will update that per-comment list setting to match what is currently set for the URC-E Master Settings setting.
  2. When you change a per comment list setting, it is only changed for the currently loaded / selected comment list. These settings are saved with all other settings.
  3. When you change one of the URC-E Master Settings settings that also have a matching per comment list setting, URC-E will go through all your "per comment list" settings and update the changed setting for any lists that have the given setting set to "Use URC-E Master Settings setting".

Custom variables: Allows you to create your own custom variables to use throughout your comments. Custom variables can be nested. If you are a URC-E master control comment list maintainer, your tab has already been setup to allow for this. If you have your own custom sheet, you will need to modify your "Data validation" for column C (URSTATUS) to allow "CUSTOM VAR" to be a valid option.
To use:
  1. Set the title (column A) to the variable name you would like to use. WITHOUT the $'s.
    Ex: CUSTOM_GREETING
  2. Set the "Comment" (column B) to be the replace text you would like to use.
    Ex: Good $CURRENTDATE_TIME_CASUAL$! I am a fellow Wazer like you!
  3. Set the "URSTATUS" (column C) to be "CUSTOM VAR".
  4. Wherever you want to use this variable in your other comments, simply place the name wrapped in $'s in the comment.
    Ex: $CUSTOM_GREETING$ I see you reported a $URTYPE$ issue near $SELSEGS_WITH_CITY$. Would you mind telling me more information that might help me assist with solving the issue? ...
Custom tagline: This is to allow users to have a single "tagline" that can be added to the end of each comment they want. A managed list might use this and tell you what to do. An example of a custom tagline: "If you still have issues after this report is closed. Please feel free to email me at my@email.com." Then a comment would have the variable $CUSTOMTAGLINE$ in it and would insert your tagline there. The custom tagline is a "per comment list" setting. Meaning you can have a different one for each comment list, or have them use the "master" setting.

Shortcuts in the UR Panel (and their variables to use in sheets):
  • Current date (Calendar icon (left side) or variable $CURRENTDATE_DATE$): Inserts the current date with 2-digit day, 2 digit month and 4 digit year in the current locale format.
  • Current date casual (Calendar icon (right side) or variable $CURRENTDATE_DATE_CASUAL$): Inserts the current date as full month name and 2 digit day in the current locale format.
  • Current day of week (Sun icon or variable $CURRENTDATE_DAY_OF_WEEK$): Inserts the current day of the week in the current locale language.
  • Current time (Clock icon (left side) or variable $CURRENTDATE_TIME$): Inserts the current time in 2 digit hour, 2 digit minute and abbreviated timezone, in the current locale.
  • Current time casual (Clock icon (right side) or variable $CURRENTDATE_TIME_CASUAL$): Inserts current time in casual, translated in current locale if available, according to:
    • 04:00am-11:59am: morning
    • 12:00pm-05:59pm: afternoon
    • 06:00pm-08:59pm: evening
    • 09:00pm-03:59am: night
  • Custom tagline (Tag icon or variable $CUSTOMTAGLINE$): Inserts the custom tagline for the currently loaded comment list, or replaces it with nothing if blank.
  • Drive date (Calendar icon (left side) or variable $DRIVEDATE_DATE$): Insert the drive date into the new comment box at the cursor position (2-digit month, 2-digit day, 4-digit year in locale format).
  • Drive date casual (Calendar icon (right side) or variable $DRIVEDATE_DATE_CASUAL$): Insert the drive date into the new comment box at the cursor position (full month name, 2-digit day in locale format).
  • Drive date full casual (Calendar with + icon (right side) or variable $DRIVEDATE_TIME_CASUALMODE$): Insert the drive date into the new comment box at the cursor position with the following table as a reference (in locale translation):
    • 0 days: this morning, this afternoon, this evening, tonight
    • 1 days: yesterday morning, yesterday afternoon, yesterrday evening, last night
    • 2-6 days: Day_of_Week morning/afternoon/evening/night
    • 7-13 days: last Day_of_Week morning/afternoon/evening/night
    • 14-20 days: Day_of_Week before last
    • 21-27 days: three weeks ago
    • 28-60 days: a few weeks ago
    • 61-120 days: a couple months back
    • 121+ days: a while ago
  • Drive day of week (Sun icon or variable $DRIVEDATE_DAY_OF_WEEK): Insert the drive date day of the week into the new comment box at the cursor position (full day of week name in locale language).
  • Drive time (Clock icon (left side) or variable $DRIVEDATE_TIME$): Insert the drive date time of day into the new comment box at the cursor position (2-digit hour, 2-digit minute in locale format).
  • Drive time casual (Clock icon (right side) or variable $DRIVEDATE_TIME_CASUAL$) : Insert the drive date time of day into the new comment box at the cursor position (in locale language).
    • 04:00am-11:59am: morning
    • 12:00pm-05:59pm: afternoon
    • 06:00pm-08:59pm: evening
    • 09:00pm-03:59am: night
  • Place address (Pin icon or variable $PLACE_ADDRESS$): Inserts the address, with city and state (as appropriate) for the currently select place.
  • Place name (House icon or variable $PLACE_NAME$): Inserts the name of the currently selected place, or "residential place" (in the current language) if it is an RPP.
  • Selected segments (Road icon or variable $SELSEGS$): Either replaces '$SELSEGS$' (or '$SELSEGS)' with the name of the currently selected segment(s), or it will insert the name of the currently selected segment(s) into the comment box at the cursor position.
  • Selected segments with city (Road icon with + or variable $SELSEGS_WITH_CITY$): Same as $SELSEGS$, except includes the city name if 1) one selected segment and it contains a primary city 2) two selected segments and 2a) both have the same city as their primary OR 2b) one has a primary city and the other is set to "no city".
  • UR description (Paragraph icon or variable $URD$): Insert the UR description into the new comment box at the cursor position.
  • UR type: (Info icon or variable $URTYPE$): Inserts the UR type of the currently selected UR.
  • Waze username (User icon or variable $USERNAME$): Insert your Waze username into the new comment box at the cursor position.
Last edited by dBsooner on Fri Aug 16, 2019 11:32 pm, edited 8 times in total.
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 12 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 593
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 360 times
Been thanked: 315 times

Re: [Script] URComments-Enhanced (URC-E)

Postby dBsooner » Fri Feb 01, 2019 11:21 pm

URC-E has officially been released! I have updated the first and second post with all the information. :)

Enjoy!

P.S. I am in need of translators!!I need assistance in translating the text used throughout URC-E (not the comment lists). These are handled on the same Google Sheet as the comment lists, so editing them is super easy. I have translations for:
  • Belgium Dutch (nl): Half complete.
  • English (en and en-US): Complete.
  • Estonian (et): Half complete.
  • French (fr): Complete.
  • German (de): Complete.
  • Italian (it): Complete.
  • Persian (fa-IR): None.
  • Spanish - Latin American (es-419): Mostly complete.
If you can assist with translations, please send me a PM or DM on Discord. If your language locale isn't listed, but is available in WME, we can get it added! If the translation is listed, then someone has started working on it, but we could always use more help!

P.S.S. I need all comment list owners to contact me either via PM or DM on Discord so I can verify contact information as well as know the status of the list. Also to give edit access to your tab on the spreadsheet so you can update your lists. Again, updates are instantly live in the sheet (just takes a WME page reload). No more waiting for a user to update their TamperMonkey scripts.
Last edited by dBsooner on Wed Apr 24, 2019 8:27 pm, edited 3 times in total.
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 12 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 593
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 360 times
Been thanked: 315 times

Re: [Script] URComments-Enhanced (URC-E)

Postby RichardPyne » Sat Feb 02, 2019 12:27 am

Can we still do local custom list(s)?
RichardPyne
Area Manager
Area Manager
 
Posts: 249
Joined: Sat Mar 12, 2016 6:05 pm
Location: Provo, Utah, USA
Has thanked: 279 times
Been thanked: 103 times

Re: [Script] URComments-Enhanced (URC-E)

Postby dBsooner » Sat Feb 02, 2019 12:34 am

RichardPyne wrote:Can we still do local custom list(s)?

Yes. As long as your list uses “Custom” as the variable name, then just load and enable that addon in TamperMonkey, then select “Custom” as your default list in URC-E.

I really hope more states, regions or countries get on board with developing a list for their respective state / region / country. Helps keep things unified and consistent amongst editors. I am more than willing to work with teams that use special text, like NOR and their addition of a line of text that gets added to specific comments. It includes an email address and subject line for the email. I will work with anyone that wants to develop a list, while keeping options for personalization (like the NOR thing).
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 12 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 593
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 360 times
Been thanked: 315 times

Re: [Script] URComments-Enhanced (URC-E)

Postby turbomkt » Sat Feb 02, 2019 12:35 am

I think that's coming...soon.
turbomkt
Country Manager
Country Manager
 
Posts: 1074
Joined: Thu Jan 22, 2015 1:05 am
Location: San Diego, Ca
Has thanked: 446 times
Been thanked: 294 times

Re: [Script] URComments-Enhanced (URC-E)

Postby jm6087 » Sat Feb 02, 2019 12:47 am

Yes, going the sheet route is the better way. Easier to make changes and don't have to involve the script writer.
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3477
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 589 times
Been thanked: 1417 times

Re: [Script] URComments-Enhanced (URC-E)

Postby ojlaw » Sat Feb 02, 2019 2:15 am

this looks awesome! thanks for the hard work on this :)
WI State Manager
IL Large Area Manager
CA, MN, ND, WA Area Manager
[ img ][ img ][ img ][ img ][ img ][ img ][ img ]
ojlaw
State Manager
State Manager
 
Posts: 122
Joined: Wed Jul 22, 2015 12:07 am
Has thanked: 61 times
Been thanked: 53 times

Re: [Script] URComments-Enhanced (URC-E)

Postby ojlaw » Sat Feb 02, 2019 2:42 am

i'm sure you have your hands full but if you ever have time it would be nice to have an option that unlinks the scrolling in URC-e and URMP. it's something that makes keeping track of the location you are at in the URMP list when you scroll in the URC comment list. for some reason the two panels are tied together when you scroll in either one. i probably did a really bad job of explaining that so if you're interested in looking into that and need more info please let me know.
WI State Manager
IL Large Area Manager
CA, MN, ND, WA Area Manager
[ img ][ img ][ img ][ img ][ img ][ img ][ img ]
ojlaw
State Manager
State Manager
 
Posts: 122
Joined: Wed Jul 22, 2015 12:07 am
Has thanked: 61 times
Been thanked: 53 times

Re: [Script] URComments-Enhanced (URC-E)

Postby RichardPyne » Sat Feb 02, 2019 6:01 am

dBsooner wrote:
RichardPyne wrote:Can we still do local custom list(s)?

Yes. As long as your list uses “Custom” as the variable name, then just load and enable that addon in TamperMonkey, then select “Custom” as your default list in URC-E.


Do you please have a sample Custom file or a description of the format? I am not a JavaScript programmer, but given time, I'm sure I could figure it out, but it would save me a lot of time to have a sample.

Thanks!
RichardPyne
Area Manager
Area Manager
 
Posts: 249
Joined: Sat Mar 12, 2016 6:05 pm
Location: Provo, Utah, USA
Has thanked: 279 times
Been thanked: 103 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users