Skip to content

Update property list of Map component#2733

Merged
tina-ahm merged 4 commits intomasterfrom
feature/map-centerLocation-expression
Mar 26, 2026
Merged

Update property list of Map component#2733
tina-ahm merged 4 commits intomasterfrom
feature/map-centerLocation-expression

Conversation

@tina-ahm
Copy link
Copy Markdown
Contributor

@tina-ahm tina-ahm commented Feb 23, 2026

Updates the property list of the Map component after changes made in this PR.

Summary by CodeRabbit

  • Documentation
    • Updated Map component reference documentation with explicit property tables listing component properties including id, data model bindings, text resource bindings, grid configuration, display options, and layout controls. Changes applied to both English and Norwegian documentation versions.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 23, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'auto_resolve_threads'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
📝 Walkthrough

Walkthrough

Documentation reference pages for the Map component have been updated across English and Norwegian Bokmål versions. Autogenerated property sections were replaced with explicit static Markdown tables enumerating Map component attributes, including id, dataModelBindings, textResourceBindings, grid, hidden, pageBreak, renderAsSummary, centerLocation, layers, and zoom. Minor formatting adjustments were applied to configuration notices and comment blocks.

Changes

Cohort / File(s) Summary
Map Component Documentation
content/altinn-studio/v8/reference/ux/components/Map/_index.en.md, content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md
Replaced autogenerated component properties sections with static Markdown tables detailing Map component attributes, descriptions, and types. Removed dynamic shortcode generators and updated configuration notice formatting across English and Norwegian Bokmål documentation pages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

📍 The map speaks clear, no shortcuts now,
Static tables show the way,
Properties laid bare and bright,
From dynamic mist to structured light,
Documentation finds its sight! 🗺️

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: updating the Map component's property list documentation in both English and Norwegian Bokmål files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/map-centerLocation-expression

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🧹 Nitpick comments (2)
content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md (1)

117-117: "bli laget" er lite idiomatisk norsk i denne sammenhengen

"skal bli laget som en oppsummering" lyder unaturlig. "Rendres" eller "vises" er mer naturlige valg i teknisk dokumentasjon.

✏️ Forslag til retting
-| `renderAsSummary`                  | boolean   | Boolean eller uttrykk som indikerer om komponenten skal bli laget som en oppsummering. Standard er `false`.
+| `renderAsSummary`                  | boolean   | Boolean eller uttrykk som indikerer om komponenten skal rendres som en oppsummering. Standard er `false`.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md` at line
117, Oppdater beskrivelsen for feltet `renderAsSummary` slik at den erstatter
den lite idiomatiske frasen "skal bli laget som en oppsummering" med et mer
naturlig teknisk uttrykk, for eksempel "rendres som en oppsummering" eller
"vises som en oppsummering", og behold informasjonen om at standardverdien er
`false` og at feltet kan være et uttrykk eller boolean.
content/altinn-studio/v8/reference/ux/components/Map/_index.en.md (1)

123-123: Repetitive "will be replaced" in the same sentence

The layers.url description uses "will be replaced" twice in adjacent clauses. Consider rephrasing the second occurrence.

✏️ Suggested rewrite
-| `layers.url`                       | string    | The URL to a map tile. `{z}/{x}/{y}` will be replaced with tile coordinates, `{s}` will be replaced with a random subdomain if subdomains are given.
+| `layers.url`                       | string    | The URL to a map tile. `{z}/{x}/{y}` will be replaced with tile coordinates; `{s}` with a random subdomain if subdomains are given.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@content/altinn-studio/v8/reference/ux/components/Map/_index.en.md` at line
123, The description for layers.url repeats "will be replaced" twice; update the
text for the `layers.url` property so the first clause keeps "The URL to a map
tile." and the second clause is rephrased to remove the duplicate phrasing
(e.g., "where `{z}/{x}/{y}` are replaced with tile coordinates and `{s}` is
substituted with a random subdomain if subdomains are provided"), ensuring it
still references `{z}/{x}/{y}` and `{s}` and preserves meaning.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@content/altinn-studio/v8/reference/ux/components/Map/_index.en.md`:
- Line 108: The description for the `readOnly` property uses "read only" without
a hyphen; update the text in the `readOnly` property description (the line
containing `readOnly`) to use the compound adjective "read-only" everywhere
(e.g., "presented as read-only" and "read-only fields") so the phrasing conforms
to standard English hyphenation rules.

In `@content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md`:
- Line 102: The Norwegian doc for Map component notes that
dataModelBindings.simpleBinding must be a string but the English version
(_index.en.md) lacks this restriction; update _index.en.md to mirror the NB text
by adding the phrase that the bound data model field must be of type string
(referencing dataModelBindings.simpleBinding) OR, if there is no actual schema
constraint, remove the sentence from _index.nb.md so both language files match;
ensure the change mentions dataModelBindings.simpleBinding explicitly for
clarity.
- Around line 115-116: The descriptions for pageBreak.breakAfter and
pageBreak.breakBefore use the incorrect neuter article "et sidebrytning"; update
both strings to use the correct common/gendered article "en sidebrytning" so the
sentences read "...indikerer om en sidebrytning skal legges til etter
komponenten" and "...indikerer om en sidebrytning skal legges til før
komponenten" respectively.
- Line 111: Oppdater beskrivelsen for grid.innerGrid slik at teksten får korrekt
konjunksjon og samskriving: endre "så som input felt dropdown" til "så som
inputfelt og dropdown" i dokumentasjonsteksten for grid.innerGrid (se
beskrivelsen i Map/_index.nb.md), slik at både ordet "inputfelt" er skrevet som
ett ord og "og" legges til mellom eksemplene.

---

Nitpick comments:
In `@content/altinn-studio/v8/reference/ux/components/Map/_index.en.md`:
- Line 123: The description for layers.url repeats "will be replaced" twice;
update the text for the `layers.url` property so the first clause keeps "The URL
to a map tile." and the second clause is rephrased to remove the duplicate
phrasing (e.g., "where `{z}/{x}/{y}` are replaced with tile coordinates and
`{s}` is substituted with a random subdomain if subdomains are provided"),
ensuring it still references `{z}/{x}/{y}` and `{s}` and preserves meaning.

In `@content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md`:
- Line 117: Oppdater beskrivelsen for feltet `renderAsSummary` slik at den
erstatter den lite idiomatiske frasen "skal bli laget som en oppsummering" med
et mer naturlig teknisk uttrykk, for eksempel "rendres som en oppsummering"
eller "vises som en oppsummering", og behold informasjonen om at standardverdien
er `false` og at feltet kan være et uttrykk eller boolean.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8875d31 and 25a2744.

📒 Files selected for processing (2)
  • content/altinn-studio/v8/reference/ux/components/Map/_index.en.md
  • content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md

Comment thread content/altinn-studio/v8/reference/ux/components/Map/_index.en.md
Comment thread content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md Outdated
Comment thread content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md Outdated
Comment thread content/altinn-studio/v8/reference/ux/components/Map/_index.nb.md Outdated
Copy link
Copy Markdown
Contributor

@Magnusrm Magnusrm left a comment

Choose a reason for hiding this comment

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

🥳

@tina-ahm tina-ahm merged commit d3e6170 into master Mar 26, 2026
7 checks passed
@tina-ahm tina-ahm deleted the feature/map-centerLocation-expression branch March 26, 2026 09:02
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