Skip to content

Commit

Permalink
Fix JS loading, add overview variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Taylor committed Sep 27, 2023
1 parent d71f21a commit 8f7c74e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: release.zip
files: pantheon-secrets-explorer.zip
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Pantheon Secrets Explorer

A WordPress plugin that integrates with the Pantheon Secrets API, allowing administrators to view secrets and map them to environment variables within WordPress.

https://www.loom.com/share/50a38c32fffc4d4687e2d0b5687b6576

Features
--------

Expand All @@ -13,20 +15,20 @@ Features
Installation
------------

1. Install the plugin using Composer:
1. Install the plugin using Composer:

```bash
composer require pantheon-se/pantheon-secrets-explorer
```

1. Activate the plugin in the WordPress admin dashboard.
2. Activate the plugin in the WordPress admin dashboard.

Usage
-----

1. Secrets Explorer: In the WordPress admin dashboard, navigate to the "Pantheon Secrets" submenu under "Tools". This will display all secrets from the Pantheon Secrets API.
1. Secrets Explorer: In the WordPress admin dashboard, navigate to the "Pantheon Secrets" submenu under "Tools". This will display all secrets from the Pantheon Secrets API.

1. Environment Variables Mapper: In the WordPress admin dashboard, navigate to the "Env Variables" submenu under "Pantheon Secrets". Here, you can define new environment variables and map them to a secret. Existing mappings can be viewed and deleted.
2. Environment Variables Mapper: In the WordPress admin dashboard, navigate to the "Env Variables" submenu under "Pantheon Secrets". Here, you can define new environment variables and map them to a secret. Existing mappings can be viewed and deleted.

Developer Notes
---------------
Expand Down
6 changes: 3 additions & 3 deletions src/Admin/AdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function init() {
public static function registerAdminPages() {
add_menu_page(
'Pantheon Secrets Explorer',
'Pantheon Secrets',
'Secrets Explorer',
'manage_options',
'pantheon-secrets-explorer',
[self::class, 'displaySecretsPage'],
Expand All @@ -40,7 +40,7 @@ public static function registerAdminPages() {
'Environment Variables',
'Env Variables',
'manage_options',
'pantheon-env-variables',
'pantheon-secrets-explorer-env-variables',
[self::class, 'displayEnvVariablesPage']
);
}
Expand Down Expand Up @@ -142,7 +142,7 @@ public static function displaySecretsPage() {
}

public function enqueueAdminScripts($hook) {
if ('settings_page_pantheon-secrets-explorer' !== $hook) {
if (strpos($hook, 'pantheon-secrets-explorer') < 0) {
return;
}

Expand Down

0 comments on commit 8f7c74e

Please sign in to comment.