Skip to content

Add buttons for editing the name and description in the list item. - #2819

Merged
GspikeHalo merged 3 commits into
masterfrom
list-item-edit-button
Sep 7, 2024
Merged

GspikeHalo merged 3 commits into
masterfrom
list-item-edit-button

Conversation

@GspikeHalo

@GspikeHalo GspikeHalo commented Sep 6, 2024 •

Copy link
Copy Markdown
Contributor

Purpose:
Add functionality to the list item that allows users to directly edit the name and description.

Changes:

  1. Two buttons have been added to the list item, one for editing the name and the other for editing the description. The buttons will appear when the user hovers over the card.
  2. The layout has been adjusted to separate the ID into one column and the name and description into another column.
  3. The ID has been aligned to the right.

Demo:
old list item
old

old list item when hovers on it:
old list item

new list item:
new

new list item hovers on it:
new list item

@GspikeHalo
GspikeHalo requested review from YS0meone and aglinxinyuan and removed request for YS0meone September 6, 2024 19:30
@GspikeHalo
GspikeHalo marked this pull request as ready for review September 6, 2024 19:32
@GspikeHalo GspikeHalo changed the title Added buttons for editing the name and description in the list item. Add buttons for editing the name and description in the list item. Sep 6, 2024

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@GspikeHalo
GspikeHalo merged commit 63cafc0 into master Sep 7, 2024
@GspikeHalo
GspikeHalo deleted the list-item-edit-button branch September 7, 2024 06:34
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
…2819)

**Purpose:**
Add functionality to the list item that allows users to directly edit
the name and description.

**Changes:**
1. Two buttons have been added to the list item, one for editing the
name and the other for editing the description. The buttons will appear
when the user hovers over the card.
2. The layout has been adjusted to separate the ID into one column and
the name and description into another column.
3. The ID has been aligned to the right.

**Demo:**
old list item

![old](https://github.com/user-attachments/assets/66d7cd0c-e105-49ed-9f82-ab1d3a04235c)

old list item when hovers on it:
![old list
item](https://github.com/user-attachments/assets/9d493433-be1f-46cb-833b-2bf56633814e)

new list item:

![new](https://github.com/user-attachments/assets/61ab5910-0012-4f1c-9e4a-16b8c1a1e3a7)


new list item hovers on it:
![new list
item](https://github.com/user-attachments/assets/166673ea-2c27-42c3-9f91-7c78b4e95ea5)
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
…pache#2819)

**Purpose:**
Add functionality to the list item that allows users to directly edit
the name and description.

**Changes:**
1. Two buttons have been added to the list item, one for editing the
name and the other for editing the description. The buttons will appear
when the user hovers over the card.
2. The layout has been adjusted to separate the ID into one column and
the name and description into another column.
3. The ID has been aligned to the right.

**Demo:**
old list item

![old](https://github.com/user-attachments/assets/66d7cd0c-e105-49ed-9f82-ab1d3a04235c)

old list item when hovers on it:
![old list
item](https://github.com/user-attachments/assets/9d493433-be1f-46cb-833b-2bf56633814e)

new list item:

![new](https://github.com/user-attachments/assets/61ab5910-0012-4f1c-9e4a-16b8c1a1e3a7)


new list item hovers on it:
![new list
item](https://github.com/user-attachments/assets/166673ea-2c27-42c3-9f91-7c78b4e95ea5)
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…pache#2819)

**Purpose:**
Add functionality to the list item that allows users to directly edit
the name and description.

**Changes:**
1. Two buttons have been added to the list item, one for editing the
name and the other for editing the description. The buttons will appear
when the user hovers over the card.
2. The layout has been adjusted to separate the ID into one column and
the name and description into another column.
3. The ID has been aligned to the right.

**Demo:**
old list item

![old](https://github.com/user-attachments/assets/66d7cd0c-e105-49ed-9f82-ab1d3a04235c)

old list item when hovers on it:
![old list
item](https://github.com/user-attachments/assets/9d493433-be1f-46cb-833b-2bf56633814e)

new list item:

![new](https://github.com/user-attachments/assets/61ab5910-0012-4f1c-9e4a-16b8c1a1e3a7)


new list item hovers on it:
![new list
item](https://github.com/user-attachments/assets/166673ea-2c27-42c3-9f91-7c78b4e95ea5)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 26, 2026
### What changes were proposed in this PR?
Removes the `.resource-description-edit-textarea` rule in
`list-item.component.scss`. **+0/-15 lines.** There is no behaviour
change. No template in the repo uses the class since the inline
description textarea was replaced by the Markdown editor.

| | PR |
| --- | --- |
| Introduced by | apache#2819 (2024-09-06) Add buttons for editing the name
and description in the list item |
| Usage removed by | apache#4212 (2026-02-18) feat: add Markdown editor for
dataset/workflow descriptions |

It has been dead for about 8 months.

### Any related issues, documentation, discussions?
Closes apache#9137.

### How was this PR tested?
Stylesheet-only deletion. `yarn format:ci` and `npx ng build` pass from
`frontend/`.
To re-check: `git grep -n "resource-description-edit-textarea" --
frontend/src` returns no hits.

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity (Claude Opus 5.5)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Nov 26, 2026
…9706)

### What changes were proposed in this PR?

Remove code that nothing uses, or that repeats what the code next to it
already does, from the workflow version service, the versions list, the
workspace menu, the dashboard list item, the computing-unit picker and
the image build workflow (**+42/−165 lines**). There is no behavior
change.

- **Version history:** `WorkflowVersionService.displayWorkflowVersions`
and its only caller, `MenuComponent.onClickGetAllVersions`, which no
template has bound since apache#2500 removed the button's click handler. Their
two spec cases go with them.
- **Version differences:** `getWorkflowsDifference` loops over a
configurable list of element types that has held only `operators` since
apache#1503 added it, with an ID-field map that names a type the loop never
visits. It now compares operators directly.
- The bracket highlighting for links of deleted operators, written
twice, becomes one helper.
- The versions list's two expand loops, identical but for the value they
set, become one.
- The unused `Element` and `WorkflowContentKeys` aliases go, and the URL
constant that only the spec imported becomes file-local.
- **List item:** `ListItemComponent` only ever sets `editingDescription`
to false, and its template has had no `#descriptionInput` since apache#4212
replaced the inline editor. The flag, its class binding and style, and
the view query go. `CardItemComponent` keeps its own, live copy.
- **Computing-unit picker:** three pieces go.
- An unused `ShareAccessComponent` import; its dialog left this
component in apache#4331.
  - A doubled `userPackages` assignment.
- A `skippedMessages` list that nothing fills, with the block that would
print it.
- **Image builds:** the AMD64 and ARM64 jobs build inside Docker, so
their JDK, sbt launcher and coursier cache setup and their
`JAVA_OPTS`/`JVM_OPTS` go. The JOOQ job, which does run sbt, keeps its
setup.

| Event | PR / Commit |
| --- | --- |
| Introduced by | Version history: apache#1343 (2021-09-28); version
differences: apache#1503 (2022-06-07), the second bracket block apache#5285
(2026-06-05), the versions list apache#1444 (2022-02-15); list item: apache#2819
(2024-09-07); picker: apache#3508 (2025-07-07) and apache#4902 (2026-05-12); image
builds: apache#4055 (2025-11-21) |
| Usage removed by | Version history: apache#2500 (2024-03-24) removed the
button that called it. List item: apache#4212 (2026-02-18) replaced the inline
description editor. Picker import: apache#4331 (2026-04-09) moved the share
dialog out. Everything else: unused since introduction. |

As of 2026-11-25:
- The element-type list has held a single type for over 4 years.
- The version-history handler has had no caller for over two and a half
years.
- The image jobs have set up a JDK they never use for a year.
- The list item's edit state has been unreachable for 9 months, and the
picker's import has been unused for over 7 months.
- The skipped-message list has stayed empty for the 6 months since it
was added.

### Any related issues, documentation, discussions?

Closes apache#9705.

### How was this PR tested?

Ran on this branch and on `main` at `fd0e2d5338` (Windows 11; Node 24
with Yarn 4.14.1):

```bash
cd frontend
npx ng test --watch=false --include='**/workflow-version.service.spec.ts' --include='**/menu.component.spec.ts' --include='**/versions-list.component.spec.ts' --include='**/list-item.component.spec.ts' --include='**/computing-unit-selection.component.spec.ts'
npx tsc --noEmit -p src/tsconfig.app.json
npx tsc --noEmit -p src/tsconfig.spec.json
npx ngc -p src/tsconfig.app.json --noEmit
yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src)
yarn eslint $(git diff --name-only --relative origin/main -- src | grep -E '\.(ts|html)$')
```

- **Frontend:** the five specs run 478 tests on this branch and 480 on
`main`, all passing. The two extra on `main` are the deleted methods'
own cases; every other test keeps its name and outcome. Both typechecks,
the AOT compile, prettier-eslint and ESLint pass.
- **Workflow:** `build-and-push-images.yml` parses, both image jobs keep
their Docker steps, and only the JOOQ job sets up a JDK. The image jobs
themselves run only after merge.

To re-check, both commands return no hits on this branch:

```bash
git grep -nwE "displayWorkflowVersions|onClickGetAllVersions|skippedMessages|ELEMENT_TYPES_IN_WORKFLOW_DIFF_CALC|ID_FILED_FOR_ELEMENTS_CONFIG" -- frontend/src
git grep -nw editingDescription -- frontend/src/app/dashboard/component/user/list-item/list-item.component.ts frontend/src/app/dashboard/component/user/list-item/list-item.component.html
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)
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