Skip to content

Conversation

@didoda
Copy link
Member

@didoda didoda commented Jan 28, 2025

With BEdita API https://github.com/bedita/bedita/releases/tag/v5.37.0, API provides slugs for tree paths.

This lets edit slug in tree view.

This provides the possibility to enable specific preview links in the tree, using the new configuration TreePreview.

An example follows:

'TreePreview' => [
    '123' => [
        [
            'title' => 'Staging site',
            'url' => 'https://staging-site.example.com',
            'color' => 'orange', // facultative: default value is 'white'
        ],
        [
            'title' => 'Production site',
            'url' => 'https://site.example.com',
            'color' => 'red',
        ],
    ],
    // ...
],

When an object is inside a position whose root folder is in TreePreview configuration, the anchor(s) are visible in the tree.

image

@didoda didoda added the feature New feature or request label Jan 28, 2025
@didoda didoda added this to the 5.x milestone Jan 28, 2025
@codecov
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (366016e) to head (ffe790f).
Report is 34 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##              master     #1222    +/-   ##
============================================
  Coverage     100.00%   100.00%            
- Complexity      1352      1369    +17     
============================================
  Files             97        97            
  Lines           5315      5423   +108     
============================================
+ Hits            5315      5423   +108     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@didoda didoda changed the title Tree preview anchors Tree preview links Jan 28, 2025
@didoda didoda changed the title Tree preview links Tree preview links + Tree Slug Mar 17, 2025
@didoda didoda marked this pull request as draft March 17, 2025 11:18
@didoda didoda marked this pull request as ready for review March 26, 2025 09:01
@didoda didoda merged commit 606c626 into bedita:master Mar 27, 2025
9 checks passed
@didoda didoda deleted the feat/position-preview-link branch March 27, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants