Skip to content

[IMP] chart: add geo chart region selector#7958

Closed
pro-odoo wants to merge 1 commit intomasterfrom
master-add-geo-region-pro
Closed

[IMP] chart: add geo chart region selector#7958
pro-odoo wants to merge 1 commit intomasterfrom
master-add-geo-region-pro

Conversation

@pro-odoo
Copy link
Copy Markdown
Collaborator

@pro-odoo pro-odoo commented Feb 18, 2026

This commit adds a region selector to the geo charts in dashboard mode.

Task-5048552

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Feb 18, 2026

Pull request status dashboard

@pro-odoo pro-odoo force-pushed the master-add-geo-region-pro branch from 0bae966 to e71747b Compare February 18, 2026 12:25
@pro-odoo pro-odoo changed the title wip [IMP] chart: add geo chart region selector Feb 18, 2026
@pro-odoo pro-odoo force-pushed the master-add-geo-region-pro branch 3 times, most recently from a201a45 to 5db5d7e Compare February 20, 2026 08:19
Copy link
Copy Markdown
Contributor

@hokolomopo hokolomopo left a comment

Choose a reason for hiding this comment

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

👋

Comment thread packages/o-spreadsheet-engine/src/plugins/ui_feature/geo_features.ts Outdated
export interface UpdateChartRegionCommand {
type: "UPDATE_CHART_REGION";
chartId: UID;
region: string;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

don't know if it's worth listing the exact regions that we support ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think no, the regions are given from the geoJsonService

return [];
}
const allRegions = getAvailableRegions();
return allRegions.filter((r) => r.id !== "usa");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

random thought: this looks a bit magic, I got the idea that you either group by countries or states but rejecting 'usa' looks weird out of context. In the future, we could think of categories (or trees) to filter out the kind of regions we can switch against.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes we could, but it's inside the geoJsonService so I wouldn't do something generic for that

@pro-odoo pro-odoo force-pushed the master-add-geo-region-pro branch from 5db5d7e to 37de771 Compare March 10, 2026 07:32
@rrahir rrahir force-pushed the master-add-geo-region-pro branch from 37de771 to efa154f Compare March 18, 2026 09:31
This commit adds a region selector to the geo charts in dashboard mode.

Task: 5048552
@rrahir rrahir force-pushed the master-add-geo-region-pro branch from efa154f to 3f4f044 Compare March 18, 2026 11:38
@rrahir
Copy link
Copy Markdown
Collaborator

rrahir commented Mar 18, 2026

robodoo r+

robodoo pushed a commit that referenced this pull request Mar 18, 2026
This commit adds a region selector to the geo charts in dashboard mode.

closes #7958

Task: 5048552
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
@robodoo robodoo added the 19.3 label Mar 18, 2026
@robodoo robodoo closed this Mar 18, 2026
@fw-bot fw-bot deleted the master-add-geo-region-pro branch March 25, 2026 11:52
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.

4 participants