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

Feature: Apple-188 - Section Mapping Automations #1196

Merged
merged 24 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
40635bb
Update text domain
efuller Nov 14, 2024
118f041
Set up an admin menu page for section mappings
efuller Nov 14, 2024
9dc0523
Set up an entry point and get React wired up
efuller Nov 14, 2024
097cf63
Add section mappings entry point as a subfolder of admin settings
efuller Nov 14, 2024
dacf48f
Add in initial mappings layout
efuller Nov 15, 2024
5486fd5
Format markup
efuller Nov 15, 2024
afc622c
Add in a prop for hiding fields
efuller Nov 15, 2024
7fa3b21
Allow the value to be passed in when adding a rule
efuller Nov 15, 2024
4e4cbb8
Hide the field and value columns / fields
efuller Nov 15, 2024
fbed40e
Add a data attribute to each role that represents its current index
efuller Nov 18, 2024
f1ba582
Split up rules between section and non-section based rules
efuller Nov 18, 2024
b6cbad5
Add in ability to add new section rule
efuller Nov 18, 2024
a3ae2fe
Tweak height of table nav for sections
efuller Nov 18, 2024
ec45564
Rename row arrays to be more meaningful
efuller Nov 18, 2024
62901dc
Add in a check to make sure rows cannot be dragged into another table
efuller Nov 18, 2024
b3b226d
i18n headings
efuller Nov 18, 2024
37d86ed
Cast to and from to numbers
efuller Nov 18, 2024
fb33523
Remove section mapping config and files
efuller Nov 18, 2024
891b751
Remove hideFields prop
efuller Nov 18, 2024
9df0eb6
Add in the ability to hide field types from the field dropdown
efuller Nov 18, 2024
ca5d820
Refactor to remove forEach as well as param from generateRule function
efuller Nov 18, 2024
40da581
Chores: eslint
efuller Nov 18, 2024
c7208e9
Update docblock
efuller Nov 18, 2024
87b1b8c
Add in ability to hide columns
efuller Nov 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set up an entry point and get React wired up
  • Loading branch information
efuller committed Nov 14, 2024
commit 9dc0523ea79956391c4743a5d5f2facd17f72e2c
11 changes: 11 additions & 0 deletions assets/js/admin-section-mappings/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom';

const container = document.getElementById('apple-news-options__section-mappings');
const root = ReactDOM.createRoot(container);

root.render(
<StrictMode>
<h1>Section Mappings</h1>
</StrictMode>,
);
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = (env, { mode }) => ({
entry: {
pluginSidebar: './assets/js/pluginsidebar/index.jsx',
adminSettings: './assets/js/admin-settings/frontend.jsx',
sectionMappings: './assets/js/admin-section-mappings/index.jsx',
},

// Configure loaders based on extension.
Expand Down