Skip to content

Disengage Farm Update from Project#594

Merged
vincent-olivert-riera merged 5 commits intoline:masterfrom
hoangpn:feature/disengage_farm_update_from_project
May 29, 2025
Merged

Disengage Farm Update from Project#594
vincent-olivert-riera merged 5 commits intoline:masterfrom
hoangpn:feature/disengage_farm_update_from_project

Conversation

@hoangpn
Copy link
Contributor

@hoangpn hoangpn commented May 22, 2025

Farms are standalone objects. They just happen to be linkable to Projects. Therefore, I made some changes on Promgen UI to disengage Farm Update from Project.

The Project Detail Page:

Farm editable:
AS-IS:
image
TO-BE:
image
Farm non-editable:
AS-IS:
image
TO-BE:
image

The Farm Detail Page:

Farm editable:
AS-IS:
image
TO-BE:
image

Farm non-editable:
AS-IS:
image
TO-BE:
image

The Farm Register page:

AS-IS:
image
TO-BE:
image

The Farm Update page:

AS-IS:
image
TO-BE:
image

hoangpn added 3 commits May 22, 2025 14:07
We made some changes to the Farm Detail Page to improve UI/UX.
- Move the Delete button to the page header from the Hosts table using a template
similar to the Service detail page.
- Shorten the Hosts table name.
- Make the Delete host button smaller to fit within a single row in the table.
We added an 'Edit Farm' button on the Farm Detail Page, enabling users to update
all the farm details from this page.
We changed the farm_form.html of the Farm Update page to improve UI/UX and to align it
with other forms, such as the Service and Project Update pages.
@hoangpn hoangpn requested a review from a team as a code owner May 22, 2025 09:37
@hoangpn hoangpn force-pushed the feature/disengage_farm_update_from_project branch from 708e53e to eb2d548 Compare May 22, 2025 09:37
hoangpn added 2 commits May 27, 2025 08:08
In Promgen, Farms are standalone objects. They just happen to be linkable to Projects.
Therefore, we have disengaged actions such as Edit Farm, Delete Farm, Add Hosts, and
Delete Host from the Project Detail Page. Now, these actions can only be performed
through the Farm Detail Page. After successfully completing these actions, users will
also be redirected to the Farm Detail Page instead of the Project Detail Page as before.
For the same reason, the breadcrumbs of some forms have been changed to no longer
display the project name.
These changes also fixed a bug related to accessing the Farm Update Page or
Host Register Page of a Farm that isn't linked to any Project.
We have created a separate template named farm_register.html specifically for
the case of creating a new Farm. Currently, to avoid creating a new Farm not linked to
any Project, a Farm can only be created through the Farm Register button on
the Project Detail Page. To facilitate the creation of a new Farm, we allow users
to enter hosts at the same time when creating the Farm. The old template will be
renamed to farm_update.html to match its intended use.
@hoangpn hoangpn force-pushed the feature/disengage_farm_update_from_project branch from eb2d548 to 2710ca0 Compare May 27, 2025 01:09
@hoangpn
Copy link
Contributor Author

hoangpn commented May 27, 2025

I've force pushed to fix a minor bug on UI found when I do self-testing.

Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@vincent-olivert-riera vincent-olivert-riera merged commit a2cca9e into line:master May 29, 2025
5 checks passed
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.

2 participants