Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Add versioning to Link #90

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Sep 26, 2023

Issue #7

_config.php Outdated Show resolved Hide resolved
src/Models/Link.php Outdated Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/4/support-versioning branch 3 times, most recently from 66103e9 to b008bad Compare September 28, 2023 02:07
@emteknetnz emteknetnz changed the base branch from 3 to 4 September 28, 2023 06:06
@maxime-rainville maxime-rainville mentioned this pull request Dec 4, 2023
1 task
@emteknetnz emteknetnz force-pushed the pulls/4/support-versioning branch 7 times, most recently from a2b0cda to 09f0108 Compare December 5, 2023 02:53
@@ -250,14 +271,9 @@ public function linkTypeEnabledProvider(): array
*/
public function testGetUrl(string $identifier, string $class, string $expected): void
{
Versioned::withVersionedMode(function () use ($identifier, $class, $expected): void {
Versioned::set_stage(Versioned::LIVE);
Copy link
Member Author

@emteknetnz emteknetnz Dec 5, 2023

Choose a reason for hiding this comment

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

Versioning doesn't have any impact on this test (it's testing getURL()), and setting things to LIVE means we'd need to publish the Links before making assertions

@emteknetnz
Copy link
Member Author

emteknetnz commented Dec 7, 2023

Design feedback:

  • Keep icons as they are
  • Add versioned badges to the right of the descriptions, similar to what the site tree has
  • <span class="badge status-modified" title="Page has unpublished changes">Modified</span> #cf3f00 #fff2ea
  • Truncate title in PHP to a reasonable character limit (30?) and add '...' if needed
  • Raise a card to implement text badges in elemental

@emteknetnz emteknetnz force-pushed the pulls/4/support-versioning branch 2 times, most recently from 3f3483e to c2f8b7b Compare December 7, 2023 21:56
@emteknetnz
Copy link
Member Author

emteknetnz commented Dec 7, 2023

Design review has implemented and approved

@emteknetnz emteknetnz marked this pull request as ready for review December 7, 2023 22:03
Copy link
Contributor

@sabina-talipova sabina-talipova left a comment

Choose a reason for hiding this comment

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

Just tiny changes.

README.md Outdated Show resolved Hide resolved
client/src/components/LinkPicker/LinkPickerTitle.js Outdated Show resolved Hide resolved
client/src/components/LinkPicker/LinkPickerTitle.js Outdated Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/4/support-versioning branch from c2f8b7b to 4ef6633 Compare December 11, 2023 01:54
@emteknetnz emteknetnz force-pushed the pulls/4/support-versioning branch from 4ef6633 to ffb1ae0 Compare December 11, 2023 01:57
Copy link
Contributor

@sabina-talipova sabina-talipova left a comment

Choose a reason for hiding this comment

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

LGTM. Test locally. Works perfect.

@sabina-talipova sabina-talipova merged commit 9010e73 into silverstripe:4 Dec 11, 2023
10 checks passed
@sabina-talipova sabina-talipova deleted the pulls/4/support-versioning branch December 11, 2023 05:21
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.

3 participants