Skip to content

Conversation

@melitele
Copy link
Contributor

@melitele melitele commented Nov 3, 2025

Launch Checklist

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Write tests for all new functionality.
  • Document any changes to public APIs.
  • Add an entry to CHANGELOG.md under the ## main section.

@HarelM
Copy link
Collaborator

HarelM commented Nov 3, 2025

Is this considered a style spec change?
Cc: @louwers

@louwers
Copy link
Member

louwers commented Nov 3, 2025

Native doesn't support this yet so as far as Native is concerned changes are not a problem.

@HarelM
Copy link
Collaborator

HarelM commented Nov 4, 2025

There should probably a design proposal issue instead of this PR to discuss this, but as far as I understand this change, it might mean that every feature can change the visibility of a layer?
If so, it's problematic.
This is not a minor change to the spec to change how visibility is behaving, so I think a proper discussion (design proposal issue) is needed here.

@melitele
Copy link
Contributor Author

melitele commented Nov 4, 2025

... every feature can change the visibility of a layer?

Of course not, this is what filters are for.

This PR makes visibility dependent only on global state as per #6495

@hiddewie
Copy link
Contributor

hiddewie commented Nov 8, 2025

I wrote a design proposal in #1364

@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.76%. Comparing base (ec30d56) to head (f4d4007).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1359      +/-   ##
==========================================
+ Coverage   93.73%   93.76%   +0.03%     
==========================================
  Files         111      112       +1     
  Lines        4626     4654      +28     
  Branches     1557     1565       +8     
==========================================
+ Hits         4336     4364      +28     
  Misses        290      290              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@melitele melitele force-pushed the global-state-visibility branch from 4f83103 to 9778bc2 Compare November 9, 2025 17:21
@melitele melitele force-pushed the global-state-visibility branch 2 times, most recently from 1d676f5 to 795fea9 Compare December 6, 2025 00:10
@melitele melitele marked this pull request as ready for review December 6, 2025 00:20
@HarelM
Copy link
Collaborator

HarelM commented Dec 6, 2025

Looks good in general, added a minor comment related to tests.
Also check out the coverage report, it's a bit "off".

@melitele melitele force-pushed the global-state-visibility branch 2 times, most recently from 578d778 to d8aaf06 Compare December 6, 2025 08:00
@melitele
Copy link
Contributor Author

melitele commented Dec 6, 2025

... Also check out the coverage report, it's a bit "off".

wrong file extension - fixed now

@melitele melitele force-pushed the global-state-visibility branch from d8aaf06 to 763650e Compare December 6, 2025 22:23
@melitele melitele force-pushed the global-state-visibility branch 2 times, most recently from 648b854 to 9380c58 Compare December 8, 2025 08:20
@melitele
Copy link
Contributor Author

melitele commented Dec 8, 2025

@HarelM I incidentally deleted one of your review comments about making VisiblityExpression a class, sorry.

@melitele melitele force-pushed the global-state-visibility branch 2 times, most recently from a507ef6 to 1c90299 Compare December 8, 2025 11:06
@melitele melitele force-pushed the global-state-visibility branch 2 times, most recently from 8ce57d8 to 2368fa6 Compare December 8, 2025 21:54
@HarelM
Copy link
Collaborator

HarelM commented Dec 9, 2025

Thanks! This looks great now.
Can you fix the lint warning about tsdocs?
Once fixed I'll merge this.

@melitele melitele force-pushed the global-state-visibility branch from 2368fa6 to bbf8559 Compare December 10, 2025 02:05
@melitele melitele force-pushed the global-state-visibility branch from e7952b7 to 2edb6e5 Compare December 10, 2025 02:18
@melitele
Copy link
Contributor Author

Can you fix the lint warning about tsdocs?

done 7b0678b

@HarelM HarelM merged commit 84c6c2e into maplibre:main Dec 10, 2025
8 checks passed
@hiddewie
Copy link
Contributor

Thanks both for the effort implementing this 🎉!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants