Skip to content

PB-1784: Use eye for KML description visibility and add tooltip for other buttons#1377

Merged
ismailsunni merged 10 commits intodevelopfrom
feat-pb-1784-kml-toggle-visibility
Jul 10, 2025
Merged

PB-1784: Use eye for KML description visibility and add tooltip for other buttons#1377
ismailsunni merged 10 commits intodevelopfrom
feat-pb-1784-kml-toggle-visibility

Conversation

@ismailsunni
Copy link
Contributor

@ismailsunni ismailsunni commented Jul 9, 2025

Test link

  • Use eye/slash for text visibility toggle
  • Move the visibility button to near the label
  • Add tooltips for buttons in the form
  • Add needed translation, handle different geometry

To be discussed:

  • Do we need to show the text style for line and polygon and measurement? Or is it hidden by purpose?

Test link

@cypress
Copy link

cypress bot commented Jul 9, 2025

web-mapviewer    Run #5518

Run Properties:  status check passed Passed #5518  •  git commit ce9b7dba23: PB-1784: Put tooltip above.
Project web-mapviewer
Branch Review feat-pb-1784-kml-toggle-visibility
Run status status check passed Passed #5518
Run duration 05m 32s
Commit git commit ce9b7dba23: PB-1784: Put tooltip above.
Committer Ismail Sunni
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 20
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 254
View all changes introduced in this branch ↗︎

@ismailsunni ismailsunni requested a review from Copilot July 9, 2025 10:34
@ismailsunni ismailsunni marked this pull request as ready for review July 9, 2025 10:34

This comment was marked as outdated.

@ismailsunni ismailsunni requested a review from Copilot July 9, 2025 10:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the KML description toggle and adds tooltips to various styling buttons, along with the necessary icon and translation updates.

  • Registers new FontAwesome icons (eye/eye-slash, chevrons, etc.)
  • Wraps feature-style controls with GeoadminTooltip and updates the description toggle UI
  • Adds new i18n keys for line, polygon, marker, and text style tooltips

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

File Description
setup-fontawesome.js Added and reordered icons in the library
FeatureStyleEdit.vue Imported GeoadminTooltip, replaced switch with icon button, wrapped controls in tooltips, and renamed a computed prop
rm.json, it.json, fr.json, en.json, de.json (i18n) Added translation keys for new style tooltips
Comments suppressed due to low confidence (2)

packages/mapviewer/src/modules/infobox/components/styling/FeatureStyleEdit.vue:143

  • [nitpick] The name isLine is a bit generic. Consider renaming to isGeometryLine or isLineString for clarity.
const isLine = computed(() => feature.geometry.type === 'LineString')

packages/mapviewer/src/modules/infobox/components/styling/FeatureStyleEdit.vue:264

  • [nitpick] Since you've introduced a new eye/eye-slash toggle button inside a tooltip, consider adding or updating unit/visual regression tests to cover its existence and behavior.
                        <button

@ismailsunni ismailsunni requested review from ltkum and pakb July 9, 2025 11:08
{{ t('modify_description') }}
</label>
<GeoadminTooltip
placement="left"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd set it to placement="top", being placed left covers the "Description" text/title (so default value, no need to set a placement)

@pakb
Copy link
Contributor

pakb commented Jul 9, 2025

Do we need to show the text style for line and polygon and measurement? Or is it hidden by purpose?

It's on purpose, we don't want text on the map for line and/or polygon, so no need to let the user style them.
Can you hide the eye for line/polygon/measure? I thought it was the case but it's visible for these types (it shouldn't 🙈 )

@ismailsunni ismailsunni force-pushed the feat-pb-1784-kml-toggle-visibility branch from b0e2cf6 to ce9b7db Compare July 10, 2025 06:49
@ismailsunni ismailsunni merged commit 0771fb6 into develop Jul 10, 2025
6 checks passed
@ismailsunni ismailsunni deleted the feat-pb-1784-kml-toggle-visibility branch July 10, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants