Data Tab Title Customisation

Open
#9,473 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
postgresql, python
Domain
database

Research direction

The request concerns the title shown on View/Edit data tabs and the existing %SCHEMA%, %TABLE%, %DATABASE%, %USERNAME%, and %SERVER% pattern. Start by locating the code that builds this tab title and determine how a configurable transformation pattern could be specified; done means a short customized title such as ApiKey-stu is applied reliably.

Written by the indexing model from the issue text.

Description

Feature

When I View/Edit data it shows with a tab with default title:
%SCHEMA%.%TABLE%/%DATABASE%/%USERNAME%@%SERVER%

so for a table named api_key this comes as public.api_key/students/postgres@porestres

but I wanted the tab title to be ApiKey-stu, this is short and doesn't get cut when tab is not selected

I tried changing to %TABLE%-%DATABASE%
But it still is too long in some cases, for these to work either I would have to change all my table name and also my DB name

But instead if there was a feature to customize the tab title with a pattern like:
removes underscores and capitalized table name - database name first 3 letters
then this would be very handy.

Dominant language
Python
Stars
3.9k
Forks
922
Avg merge
2d 3h
Merged PRs (30d)
33

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pgadmin-org/pgadmin4

All issues in pgadmin-org/pgadmin4

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.