Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plcaes tab - use different colour for the individual's own events #4999

Merged
merged 8 commits into from
Jul 8, 2024

Conversation

arbor95
Copy link
Contributor

@arbor95 arbor95 commented Jun 21, 2024

change the color of the icon on map for birth and christening of the selected individuum to red.

change the color of the icon on map for birth and christening of the selected individuum to red.
change the color of the icon on map for birth and christening of the selected individuum to red.
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 33.85%. Comparing base (f8d2a25) to head (dccf224).

Files Patch % Lines
app/Module/PlacesModule.php 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4999      +/-   ##
============================================
- Coverage     33.85%   33.85%   -0.01%     
- Complexity    11399    11400       +1     
============================================
  Files          1178     1178              
  Lines         47558    47561       +3     
============================================
  Hits          16103    16103              
- Misses        31455    31458       +3     

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

change the color of the icon on map for birth and christening of the selected individuum to red.

blank char line 154 after closing brace
change the color of the icon on map for birth and christening of the selected individuum to red.

remove blank at end of line 154
@arbor95
Copy link
Contributor Author

arbor95 commented Jun 21, 2024

hi Greg
perhaps you can help resolving the unsuccessful checks.
thanks Franz

@fisharebest
Copy link
Owner

The code-check is complaining that you have elseif at the start of a line. It should be on the previous line, after the }.

Would this be a simpler approach? It makes it easy to modify all the icons for the individual.

    protected const OWN_ICONS = [
        'INDI:BIRT' => ['color' => 'red', 'name' => 'baby-carriage fas'],
        'INDI:CHR'  => ['color' => 'red', 'name' => 'water fas'],
    ] + self::ICONS;
                $icons = $fact->record() === $indi ? static::OWN_ICONS : static::ICONS;
                        'icon'    => $icons[$fact->tag()] ?? static::DEFAULT_ICON,

with Gregs modifications
@arbor95
Copy link
Contributor Author

arbor95 commented Jun 26, 2024

what to do to handle the remaining unsuccessful check?

@arbor95
Copy link
Contributor Author

arbor95 commented Jul 3, 2024

How to handle:
Added line #L153 was not covered by tests
and the others "Added line"

@fisharebest
Copy link
Owner

How to handle:
Added line #L153 was not covered by tests
and the others "Added line"

You can ignore this.

It says that there are no tests that use these lines of the code.

But none of this module has any tests yet.

@fisharebest fisharebest changed the title Update PlacesModule.php Plcaes tab - use different colour for the individual's own events Jul 8, 2024
@fisharebest fisharebest merged commit 5b8403d into fisharebest:main Jul 8, 2024
12 of 13 checks passed
@fisharebest
Copy link
Owner

Thanks!

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.

2 participants