Skip to content

Heatmap graph styling pr#1102

Closed
EngCaioFonseca wants to merge 3 commits intodevfrom
heatmap_refactor_pr
Closed

Heatmap graph styling pr#1102
EngCaioFonseca wants to merge 3 commits intodevfrom
heatmap_refactor_pr

Conversation

@EngCaioFonseca
Copy link
Copy Markdown
Contributor

@EngCaioFonseca EngCaioFonseca commented Mar 16, 2026

Generative AI disclosure

Please select one option:

  • This contribution was NOT assisted or created by Generative AI tools.
  • This contribution was assisted or created by Generative AI tools.

If AI tools were used, please provide details below:
- What tools were used? Claude
- How were these tools used? Initial Draft
- Did you review these outputs before submitting this PR? Yes, reviewed, tested.

- Add heatmap_color_scale in graph_utils (light-to-dark blue)
- Replace px.colors.sequential.deep with heatmap_color_scale in all three
  heatmaps (contribution, contributor, reviewer file heatmaps)
- Aligns heatmap colors with app theme and other visualizations

Made-with: Cursor
- Replace raw layout dict updates with fig.update_layout()
- Add font=dict(size=14), axis titles to match other visualizations
- Style coloraxis colorbar (tick/title font white) for dark theme

Made-with: Cursor
- Add create_heatmap_figure() in graph_utils for common imshow + layout
- Refactor all three heatmaps to use helper; remove duplicated layout code
- Drop unused plotly.express import from heatmap modules

Made-with: Cursor
from dateutil.relativedelta import * # type: ignore
import plotly.express as px
from pages.utils.graph_utils import get_graph_time_values, color_seq
from pages.utils.graph_utils import create_heatmap_figure, get_graph_time_values, color_seq
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0611: Unused get_graph_time_values imported from pages.utils.graph_utils (unused-import)

from dateutil.relativedelta import * # type: ignore
import plotly.express as px
from pages.utils.graph_utils import get_graph_time_values, color_seq
from pages.utils.graph_utils import create_heatmap_figure, get_graph_time_values, color_seq
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0611: Unused color_seq imported from pages.utils.graph_utils (unused-import)

from dateutil.relativedelta import * # type: ignore
import plotly.express as px
from pages.utils.graph_utils import get_graph_time_values, color_seq
from pages.utils.graph_utils import create_heatmap_figure, get_graph_time_values, color_seq
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0611: Unused get_graph_time_values imported from pages.utils.graph_utils (unused-import)

from dateutil.relativedelta import * # type: ignore
import plotly.express as px
from pages.utils.graph_utils import get_graph_time_values, color_seq
from pages.utils.graph_utils import create_heatmap_figure, get_graph_time_values, color_seq
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[pylint] reported by reviewdog 🐶
W0611: Unused color_seq imported from pages.utils.graph_utils (unused-import)

@EngCaioFonseca EngCaioFonseca self-assigned this Mar 16, 2026
@EngCaioFonseca EngCaioFonseca moved this from Backlog to Testing | Waiting on PR response | Blocked in Aspen Project Board Mar 16, 2026
@EngCaioFonseca EngCaioFonseca linked an issue Mar 16, 2026 that may be closed by this pull request
@EngCaioFonseca EngCaioFonseca marked this pull request as ready for review March 16, 2026 14:07
@EngCaioFonseca EngCaioFonseca requested a review from cdolfi March 18, 2026 12:59
@MoralCode MoralCode changed the title Heatmap refactor pr Heatmap graph styling pr Mar 20, 2026
@MoralCode
Copy link
Copy Markdown
Contributor

updated title so its clear that this isnt a conflict with #1087

@MoralCode
Copy link
Copy Markdown
Contributor

it seems like this PR doesnt have a lot of details in the PR description, but the commits make it fairly clear that its meant to be a styling PR for the figures and graphs for the heatmap.

Im generally okay with the concept, although I'd be curious to learn more about why the decision was made to refactor some of the figure creation into a shared function between these two graphs. Is this done in other places in the code? or do we want to keep each visualization largely independent from a code-imports standpoint?

Copy link
Copy Markdown
Contributor

@MoralCode MoralCode left a comment

Choose a reason for hiding this comment

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

left general comments above

@cdolfi
Copy link
Copy Markdown
Collaborator

cdolfi commented Mar 31, 2026

@EngCaioFonseca Does this pr need to be merged before #1106 ?

@EngCaioFonseca
Copy link
Copy Markdown
Contributor Author

Closed due to #1106

@github-project-automation github-project-automation bot moved this from Testing | Waiting on PR response | Blocked to Done in Aspen Project Board Apr 1, 2026
@cdolfi cdolfi moved this from Done to Sprint 51 in Aspen Project Board Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Sprint 51

Development

Successfully merging this pull request may close these issues.

Visualization Refactor of Heatmap

3 participants