-
Notifications
You must be signed in to change notification settings - Fork 0
Split the UI to have list and add/edit as separate action, #PG-4995 #16
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bb1e555
Split the UI to have list and add/edit as separate action, #PG-4995
AltamashShaikh cd2bb3d
Updates UI screnshot
AltamashShaikh 3b38706
Fixes for UI test
AltamashShaikh 18441cf
Fixes UI test
AltamashShaikh 6bf0f06
UI screenshot updated
AltamashShaikh ae239df
Apply PO feedback
AltamashShaikh 3fa055e
More fixes
AltamashShaikh dd55258
Updates UI screenshot
AltamashShaikh c19bfeb
Fixes change of owner_login
AltamashShaikh 3984c1a
Adds license, change the text to OAuth 2.0 instead of OAuth2
AltamashShaikh 7548f9a
updates UI test
AltamashShaikh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /tests/System/processed/ | ||
| /tests/Integration/Importers/processed/ | ||
| /tests/UI/processed-ui-screenshots/ | ||
| /tests/UI/processed-ui-screenshots/ | ||
| .codex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * Matomo - free/libre analytics platform | ||
| * | ||
| * @link https://matomo.org | ||
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | ||
| */ | ||
|
|
||
| namespace Piwik\Plugins\OAuth2\Activity; | ||
|
|
||
| class SetClientActive extends BaseActivity | ||
| { | ||
| protected $eventName = 'API.OAuth2.setClientActive.end'; | ||
|
|
||
| public function extractParams($eventData) | ||
| { | ||
| if (!is_array($eventData) || count($eventData) < 2) { | ||
| return false; | ||
| } | ||
|
|
||
| list($result) = $eventData; | ||
| $client = $result['client'] ?? null; | ||
|
|
||
| if (empty($client['client_id'])) { | ||
| return false; | ||
| } | ||
|
|
||
| return [ | ||
| 'version' => 'v1', | ||
| 'client' => $this->formatClientData($client), | ||
| 'action' => !empty($client['active']) ? 'resumed' : 'paused', | ||
| ]; | ||
| } | ||
|
|
||
| public function getTranslatedDescription($activityData, $performingUser) | ||
| { | ||
| $client = $activityData['client'] ?? []; | ||
| $isActive = !empty($client['active']); | ||
|
|
||
| if ($isActive) { | ||
| return sprintf('resumed OAuth 2.0 client "%s"', $this->getClientLabel($client)); | ||
| } | ||
|
|
||
| return sprintf('paused OAuth 2.0 client "%s"', $this->getClientLabel($client)); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * Matomo - free/libre analytics platform | ||
| * | ||
| * @link https://matomo.org | ||
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | ||
| */ | ||
|
|
||
| namespace Piwik\Plugins\OAuth2\Activity; | ||
|
|
||
| class UpdateClient extends BaseActivity | ||
| { | ||
| protected $eventName = 'API.OAuth2.updateClient.end'; | ||
|
|
||
| public function extractParams($eventData) | ||
| { | ||
| if (!is_array($eventData) || count($eventData) < 2) { | ||
| return false; | ||
| } | ||
|
|
||
| list($result) = $eventData; | ||
| $client = $result['client'] ?? null; | ||
|
|
||
| if (empty($client['client_id'])) { | ||
| return false; | ||
| } | ||
|
|
||
| return [ | ||
| 'version' => 'v1', | ||
| 'client' => $this->formatClientData($client), | ||
| 'action' => 'updated', | ||
| ]; | ||
| } | ||
|
|
||
| public function getTranslatedDescription($activityData, $performingUser) | ||
| { | ||
| $client = $activityData['client'] ?? []; | ||
|
|
||
| return sprintf('updated OAuth 2.0 client "%s"', $this->getClientLabel($client)); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.