Skip to content

Commit 4df611e

Browse files
Copilotcubap
andauthored
Add Manage Columns interface with proper structure and permalink (#380)
* Initial plan * Create manage-columns interface with proper structure and CSS variables Co-authored-by: cubap <1119165+cubap@users.noreply.github.com> * Address code review feedback - remove duplicate indexOf calls and use constants Co-authored-by: cubap <1119165+cubap@users.noreply.github.com> * Add README documentation for manage-columns interface Co-authored-by: cubap <1119165+cubap@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
1 parent f2578cb commit 4df611e

3 files changed

Lines changed: 833 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Manage Columns Interface
2+
3+
This interface provides core functionality for managing columns on a page, which is essential for setting up Lines on a Page in TPEN.
4+
5+
## Access
6+
7+
The interface is available at `/manage-columns` with the following required URL parameters:
8+
9+
- `projectID` - The ID of the project
10+
- `pageID` - The ID of the annotation page (without the RERUM URL prefix)
11+
12+
Example:
13+
```
14+
/manage-columns?projectID=12345&pageID=abc123def456
15+
```
16+
17+
## Features
18+
19+
### Create New Column
20+
1. Click on annotations in the image to select them
21+
2. Use Shift+Click to select a range of annotations
22+
3. Use Ctrl/Cmd+Click to toggle individual annotations
23+
4. Enter a column title
24+
5. Click "Create Column" to save
25+
26+
### Merge Columns
27+
1. Check the "Merge Columns Mode" checkbox
28+
2. Select the columns you want to merge by clicking their buttons
29+
3. Enter a new column label
30+
4. Click "Merge Columns"
31+
32+
### Extend Column
33+
1. Check the "Extend Column Mode" checkbox
34+
2. Select the column you want to extend
35+
3. Click on annotations to add to the column
36+
4. Click "Extend Column"
37+
38+
### Clear All
39+
Click "Clear All" to remove all columns from the page.
40+
41+
## Technical Details
42+
43+
- Custom element: `<tpen-manage-columns>`
44+
- Uses TPEN authentication
45+
- Integrates with TPEN services API
46+
- Uses CSS variables for theming
47+
- Stores selection state in localStorage for convenience
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Manage Columns
3+
permalink: /manage-columns
4+
---
5+
6+
<!DOCTYPE html>
7+
<html lang="en">
8+
<head>
9+
<meta charset="UTF-8">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
<title>Manage Columns</title>
12+
<script type="module" src="/components/gui/site/index.js"></script>
13+
<script type="module" src="/interfaces/manage-columns/index.js"></script>
14+
</head>
15+
<body>
16+
<tpen-page>
17+
<tpen-manage-columns></tpen-manage-columns>
18+
</tpen-page>
19+
</body>
20+
</html>

0 commit comments

Comments
 (0)