Skip to content

Copy project from detail information page#1612

Merged
CalamityC merged 2 commits into
3.0.0/releasefrom
3.0.0/project/copy
May 21, 2026
Merged

Copy project from detail information page#1612
CalamityC merged 2 commits into
3.0.0/releasefrom
3.0.0/project/copy

Conversation

@CalamityC
Copy link
Copy Markdown
Collaborator

@CalamityC CalamityC commented May 13, 2026

No description provided.

@CalamityC CalamityC changed the base branch from main to 3.0.0/release May 13, 2026 15:26
@CalamityC CalamityC marked this pull request as ready for review May 13, 2026 15:41
@CalamityC CalamityC requested a review from jochenklar May 13, 2026 15:41
@coveralls
Copy link
Copy Markdown

coveralls commented May 13, 2026

Coverage Status

Coverage is 94.091%3.0.0/project/copy into 3.0.0/release. No base build found for 3.0.0/release.

@jochenklar jochenklar added this to the RDMO 3.0.0 milestone May 15, 2026
import CopyProjectModal from '../../../../common/components/CopyProjectModal'

const CopyProjectButton = ({ project }) => {
const [selectedProject, setSelectedProject] = useState(null)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this state is needed, there is only one project in the dashboard and nothing to select.

</div>
</form >

{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should be on a seperate card in the Information component, above "delete project".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

As discussed and decided today we add a link styled button next to the headline of this page; move it away from inside the ProjectForm


import CopyProjectModal from '../../../../common/components/CopyProjectModal'

const CopyProjectButton = ({ project }) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think CopyProject would be a better name, it would match more with the other components. It's contains a bit more than a button.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Most of the changes in this file are formatting, right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

As I added the button I had to add also a react fragment, so all code was indented additionally. Try watch this with "Hide whitespace" setting enabled and you'll see the real changes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I removed that button anyway, so should be no issue at all in this PR anymore

@CalamityC CalamityC force-pushed the 3.0.0/project/copy branch from dbf0603 to 19c4811 Compare May 19, 2026 12:43
@CalamityC CalamityC self-assigned this May 19, 2026
@CalamityC CalamityC requested a review from jochenklar May 19, 2026 15:19
@CalamityC CalamityC force-pushed the 3.0.0/project/copy branch from c0049eb to b6b34ec Compare May 19, 2026 16:37
Copy link
Copy Markdown
Member

@jochenklar jochenklar left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@CalamityC CalamityC merged commit 8ecee02 into 3.0.0/release May 21, 2026
18 checks passed
@CalamityC CalamityC deleted the 3.0.0/project/copy branch May 21, 2026 17:02
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