magento / magento/community-features

Prevent extension developers creating a tab with a sort order of 100 or below, causing their tab to become the default

Open
#93 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Priority: P3
Dominant language
No language data
Stars
46
Forks
14
PR merge metrics
No merged PRs in 30d

Description

The default General tab which ought to always be seen first has a sort order of 100:

<tab id="general" translate="label" sortOrder="100">

This allows extension developers to easily place tabs for their modules first, therefore becoming the default:

<tab id="obnoxious_inc_extensions" translate="label" sortOrder="1">
    <label>Obnoxious Inc Extenions</label>
</tab>

So when you go to Stores > Config you're taken to the first config section in that tab by default:

screen shot 2018-10-09 at 14 23 59

I feel, and wonder if others agree, that this shouldn't be allowed. Perhaps the Magento codebase should ensure General > General should always be the first tab seen by default, instead of a third parties module's tab?

A pretty minor issue but I do feel it detracts from the generally nice UX of store management.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the Magento configuration tab handling described in the issue and review how the General tab's sortOrder is applied. Done should ensure General > General remains the first default section and prevents extension tabs with sort orders of 100 or below from taking precedence.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.